本文整理汇总了PHP中Croogo::applyHookProperties方法的典型用法代码示例。如果您正苦于以下问题:PHP Croogo::applyHookProperties方法的具体用法?PHP Croogo::applyHookProperties怎么用?PHP Croogo::applyHookProperties使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Croogo
的用法示例。
在下文中一共展示了Croogo::applyHookProperties方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Constructor
*
* @access public
*/
public function __construct()
{
Croogo::applyHookProperties('Hook.controller_properties');
parent::__construct();
if ($this->name == 'CakeError') {
$this->_set(Router::getPaths());
$this->params = Router::getParams();
$this->constructClasses();
$this->Component->initialize($this);
$this->beforeFilter();
$this->Component->triggerCallback('startup', $this);
}
}
示例2: afterConstruct
/**
* afterConstruct
*
* called when Controller::__construct() is complete.
* Override this method to perform class configuration/initialization that
* needs to be performed earlier from Controller::beforeFilter().
*
* You still need to call parent::afterConstruct() method to ensure correct
* behavior.
*/
public function afterConstruct()
{
Croogo::applyHookProperties('Hook.controller_properties', $this);
if (isset($this->request->params['admin'])) {
$this->helpers[] = 'Croogo.Croogo';
if (empty($this->helpers['Html'])) {
$this->helpers['Html'] = array('className' => 'Croogo.CroogoHtml');
}
if (empty($this->helpers['Form'])) {
$this->helpers['Form'] = array('className' => 'Croogo.CroogoForm');
}
if (empty($this->helpers['Paginator'])) {
$this->helpers['Paginator'] = array('className' => 'Croogo.CroogoPaginator');
}
}
}
示例3: afterConstruct
/**
* afterConstruct
*
* called when Controller::__construct() is complete.
* Override this method to perform class configuration/initialization that
* needs to be performed earlier from Controller::beforeFilter().
*
* You still need to call parent::afterConstruct() method to ensure correct
* behavior.
*/
public function afterConstruct()
{
Croogo::applyHookProperties('Hook.controller_properties', $this);
$this->_setupComponents();
$this->_setupTheme();
}
示例4: __construct
/**
* Constructor
*
* @param mixed $id Set this ID for this model on startup, can also be an array of options, see above.
* @param string $table Name of database table to use.
* @param string $ds DataSource connection name.
*/
public function __construct($id = false, $table = null, $ds = null)
{
Croogo::applyHookProperties('Hook.model_properties');
parent::__construct($id, $table, $ds);
}
示例5: __construct
/**
* Constructor
*
* @access public
*/
public function __construct($request = null, $response = null)
{
Croogo::applyHookProperties('Hook.controller_properties', $this);
parent::__construct($request, $response);
}