當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Helper::__construct方法代碼示例

本文整理匯總了PHP中Helper::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP Helper::__construct方法的具體用法?PHP Helper::__construct怎麽用?PHP Helper::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Helper的用法示例。


在下文中一共展示了Helper::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct(View $view, $settings = array())
 {
     parent::__construct($view, $settings);
     foreach ($this->uses as $model) {
         $this->{$model} = ClassRegistry::init($model);
     }
 }
開發者ID:Asdafers,項目名稱:MyAL,代碼行數:7,代碼來源:AppHelper.php

示例2: __construct

 public function __construct(View $View, $settings = array())
 {
     parent::__construct($View, $settings);
     $View->element('Pannel.blocks/title');
     $View->element('Pannel.blocks/user');
     $View->element('Pannel.blocks/menu');
 }
開發者ID:andrecavallari,項目名稱:pannel,代碼行數:7,代碼來源:PannelblocksHelper.php

示例3: __construct

 public function __construct($client, $resource_type, $path, $hash = null)
 {
     Helper::__construct();
     $that =& $this;
     // fix exceptional resource types
     if (array_key_exists($singular = self::get_singular($resource_type), $this->INCONSISTENT_RESOURCE_TYPES)) {
         $resource_type = $this->INCONSISTENT_RESOURCE_TYPES[$singular];
     }
     $this->client = $client;
     $this->resource_type = $resource_type;
     $this->path = $path;
     $this->resources = array();
     $this->methods->index = function ($params = null) use(&$that, &$client, $resource_type, $path) {
         if ($resource_type == "session") {
             list($resource_type, $path, $hash) = $client->do_get($path, $params);
             return new ResourceDetail($client, $resource_type, $path, $hash);
         }
         list($resource_type, $path, $hash) = $client->do_get($path, $params);
         $that->resources = Resource::process($client, $resource_type, $path, $hash);
         return $that;
     };
     $this->methods->create = function ($params = null) use(&$client, $path) {
         return $client->do_post($path, $params);
     };
     if (isset($this->RESOURCE_SPECIAL_ACTIONS[$resource_type])) {
         foreach ($this->RESOURCE_SPECIAL_ACTIONS[$resource_type] as $meth => $action) {
             $action_path = Helper::insert_in_path($path, $meth);
             $this->methods->{$meth} = function ($params = null) use(&$client, $action, $action_path) {
                 return $client->{$action}($action_path, $params);
             };
         }
     }
 }
開發者ID:raventools,項目名稱:rightscaleapiclient,代碼行數:33,代碼來源:Resources.php

示例4: __construct

 public function __construct(View $view, $settings = array())
 {
     parent::__construct($view, $settings);
     $this->appKey = Configure::read('Pusher.credentials.appKey');
     $this->Js->buffer('var pusher = new Pusher(\'' . $this->appKey . '\');');
     $this->Js->buffer('Pusher.channel_auth_endpoint = \'' . $this->url(Configure::read('Pusher.channelAuthEndpoint')) . '\'');
 }
開發者ID:reydajp,項目名稱:Pusher,代碼行數:7,代碼來源:PusherHelper.php

示例5:

 function __construct($params = "")
 {
     parent::__construct($params);
     /**
      * Salva configurações desta paginação
      */
 }
開發者ID:kurko,項目名稱:acidphp,代碼行數:7,代碼來源:Paginator.php

示例6: __construct

 public function __construct($obj)
 {
     parent::__construct($obj);
     $this->fc = FrontController::getInstance();
     $this->error = '';
     $this->isLoggedIn = $this->isLoggingOut = false;
 }
開發者ID:TheSoul75,項目名稱:time-tracking,代碼行數:7,代碼來源:auth.php

示例7: __construct

 public function __construct($View = null, $settings = array())
 {
     if (class_exists('Packages')) {
         Packages::initialize($this, __CLASS__);
     }
     parent::__construct($View, $settings);
 }
開發者ID:robksawyer,項目名稱:grabitdown,代碼行數:7,代碼來源:MyHelper.php

示例8: __construct

 public function __construct($databasename)
 {
     try {
         parent::__construct($databasename);
     } catch (Exception $e) {
         echo $e->errorMessage();
     }
 }
開發者ID:AjinkyaBhosale,項目名稱:CIECM,代碼行數:8,代碼來源:Helper_page.php

示例9: __construct

 /**
  * Constructor.
  *
  * @return	void
  * @access	public
  */
 public function __construct(View $View, $settings = array())
 {
     parent::__construct($View, $settings);
     if (get_class($this) == 'BcHtmlHelper' || get_class($this) == 'HtmlHelper') {
         $this->_tags['checkboxmultiple'] = '<input type="checkbox" name="%s[]"%s />&nbsp;';
         $this->_tags['hiddenmultiple'] = '<input type="hidden" name="%s[]" %s />';
     }
 }
開發者ID:naow9y,項目名稱:basercms,代碼行數:14,代碼來源:BcAppHelper.php

示例10:

 /**
  * The constructor at this point initializes the
  * all the required code for Wiki Help initialization.
  */
 function __construct()
 {
     $this->isHelpInitialized = false;
     $this->localizationdata = NULL;
     $this->back_params = NULL;
     $this->script = NULL;
     parent::__construct();
 }
開發者ID:yakar,項目名稱:yioop,代碼行數:12,代碼來源:helpbutton_helper.php

示例11: __construct

 /**
  * Constructor
  */
 public function __construct(View $View, $settings = array())
 {
     $settings = Hash::merge(array('pathWhitelist' => $this->_pathWhitelist), $settings);
     parent::__construct($View, $settings);
     $plugin = Configure::read('Site.acl_plugin');
     App::uses('AclPermission', $plugin . '.Model');
     $this->AclPermission = ClassRegistry::init($plugin . '.AclPermission');
 }
開發者ID:saydulk,項目名稱:croogo,代碼行數:11,代碼來源:AclHelper.php

示例12: __construct

 /**
  * construct
  *
  * @param View $View
  */
 public function __construct(View $View)
 {
     parent::__construct($View);
     if (ClassRegistry::isKeySet('Page')) {
         $this->Page = ClassRegistry::getObject('Page');
     } else {
         $this->Page = ClassRegistry::init('Page', 'Model');
     }
 }
開發者ID:baserproject,項目名稱:basercms,代碼行數:14,代碼來源:BcPageHelper.php

示例13: __construct

 public function __construct($label, $iso_lang, $country, $ps_version)
 {
     parent::__construct();
     $this->base_folder = 'helpers/help_access/';
     $this->tpl = $this->createTemplate('button.tpl');
     $this->label = $label;
     $this->iso_lang = $iso_lang;
     $this->country = $country;
     $this->ps_version = $ps_version;
 }
開發者ID:jicheng17,項目名稱:vipinsg,代碼行數:10,代碼來源:HelperHelpAccess.php

示例14: __construct

 public function __construct(View $View, $settings = array())
 {
     parent::__construct($View, $settings);
     if (array_key_exists('defaultTheme', $settings) && in_array($settings['defaultTheme'], $this->themes)) {
         $this->defaultTheme = $settings['defaultTheme'];
     }
     if (array_key_exists('secure', $settings)) {
         $this->secure = filter_var($secure, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE);
     }
 }
開發者ID:rintaun,項目名稱:Recaptcha,代碼行數:10,代碼來源:RecaptchaHelper.php

示例15: strtolower

 function __construct()
 {
     parent::__construct();
     if (Configure::read('UrlCache.pageFiles')) {
         $view =& ClassRegistry::getObject('view');
         $path = $view->here;
         if ($this->here == '/') {
             $path = 'home';
         }
         $this->_key = '_' . strtolower(Inflector::slug($path));
     }
     $this->_key = 'url_map' . $this->_key;
     $this->_cache = Cache::read($this->_key, '_cake_core_');
 }
開發者ID:kondrat,項目名稱:agift,代碼行數:14,代碼來源:app_helper.php


注:本文中的Helper::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。