当前位置: 首页>>代码示例>>PHP>>正文


PHP Croogo::applyHookProperties方法代码示例

本文整理汇总了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);
     }
 }
开发者ID:Tamsmiranda,项目名称:croogo,代码行数:18,代码来源:app_controller.php

示例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');
         }
     }
 }
开发者ID:Demired,项目名称:CakeWX,代码行数:26,代码来源:CroogoAppController.php

示例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();
 }
开发者ID:linksgo2011,项目名称:croogo,代码行数:16,代码来源:CroogoAppController.php

示例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);
 }
开发者ID:ricardobylife,项目名称:croogo,代码行数:12,代码来源:app_model.php

示例5: __construct

 /**
  * Constructor
  *
  * @access public
  */
 public function __construct($request = null, $response = null)
 {
     Croogo::applyHookProperties('Hook.controller_properties', $this);
     parent::__construct($request, $response);
 }
开发者ID:romaing,项目名称:croogo-rg,代码行数:10,代码来源:AppController.php


注:本文中的Croogo::applyHookProperties方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。