/** * Constructor * * @param ObjectConfig $config Configuration options */ public function __construct(ObjectConfig $config) { parent::__construct($config); // Set the view identifier $this->_view = $config->view; //Set the supported formats $this->_formats = ObjectConfig::unbox($config->formats); }
/** * Constructor * * @param ObjectConfig $config An optional ObjectConfig object with configuration options. */ public function __construct(ObjectConfig $config) { parent::__construct($config); //Force the view to the information found in the request $this->_view = $config->view; // Mixin the toolbar if ($config->dispatch_events) { $this->mixin('lib:controller.toolbar.mixin', $config); } }
/** * Constructor * * @param ObjectConfig $config An optional ObjectConfig object with configuration options. */ public function __construct(ObjectConfig $config) { parent::__construct($config); //Force the view to the information found in the request $this->_view = $config->view; // Mixin the toolbar if ($config->dispatch_events) { $this->mixin('lib:controller.toolbar.mixin'); //Attach the toolbars $this->registerCallback('before.render', array($this, 'attachToolbars'), array($config->toolbars)); } }
/** * Constructor. * * @param ObjectConfig $config An optional ObjectConfig object with configuration options. */ public function __construct(ObjectConfig $config) { parent::__construct($config); //Set the controller $this->_controller = $config->controller; //Set the controller action $this->_controller_action = $config->controller_action; //Resolve the request $this->addCommandCallback('before.dispatch', '_resolveRequest'); //Register the default exception handler $this->getObject('exception.handler')->addExceptionCallback(array($this, 'fail')); }
public function __construct(Security $security) { parent::__construct($security); }
public function __construct($action = null, $id = null) { parent::__construct($action); $this->_videosFolder = APP_ROOT . DS . "videos" . DS; }
/** * Constructor. * * @param ObjectConfig $config An optional ObjectConfig object with configuration options. */ public function __construct(ObjectConfig $config) { parent::__construct($config); //Set the controller $this->_controller = $config->controller; }