本文整理匯總了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);
}