Source of file PathfinderControllerExtension.php
Size: 0,982 Bytes - Last Modified: 2021-12-24T06:40:50+00:00
/var/www/docs.ssmods.com/process/src/src/Extension/PathfinderControllerExtension.php
12345678910111213141516171819202122232425262728293031323334 | <?php namespace CodeCraft\Pathfinder\Extension; use CodeCraft\Pathfinder\Control\PathfinderPageController; use CodeCraft\Pathfinder\Model\Pathfinder; use CodeCraft\Pathfinder\Model\Question; use CodeCraft\Pathfinder\Model\Store\ProgressEntry; use CodeCraft\Pathfinder\Model\Store\ProgressStore; use SilverStripe\Control\HTTPResponse; use SilverStripe\Core\Extension; use SilverStripe\Core\Injector\Injector; /** * Extend a controller to support an interactive Pathfinder * * Let's also typehint the model, because SS doesn't that inherently yet * * @property \Controller|PathfinderDataExtension owner */ class PathfinderControllerExtension extends Extension { /** * Because {@see Pathfinder} is has a request handler, we can allow requests * directly to the page's Pathfinder relation data object for it to handle * itself (similar to a {@see Form}) * * @var array */ private static $allowed_actions = [ 'Pathfinder', ]; } |