當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。