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


PHP AppHelper::__construct方法代碼示例

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


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

示例1: array

 /**
  * Setup the config based on either the Configure::read() values
  * or the PaypalIpnConfig in config/paypal_ipn_config.php
  *
  * Will attempt to read configuration in the following order:
  *   Configure::read('PaypalIpn')
  *   App::import() of config/paypal_ipn_config.php
  *   App::import() of plugin's config/paypal_ipn_config.php
  */
 function __construct()
 {
     $this->config = Configure::read('PaypalIpn');
     if (empty($this->config)) {
         $importConfig = array('type' => 'File', 'name' => 'PaypalIpn.PaypalIpnConfig', 'file' => CONFIGS . 'paypal_ipn_config.php');
         if (!class_exists('PaypalIpnConfig')) {
             App::import($importConfig);
         }
         if (!class_exists('PaypalIpnConfig')) {
             // Import from paypal plugin configuration
             $importConfig['file'] = 'config' . DS . 'paypal_ipn_config.php';
             App::import($importConfig);
         }
         if (!class_exists('PaypalIpnConfig')) {
             trigger_error(__d('paypal_ipn', 'PaypalIpnConfig: The configuration could not be loaded.', true), E_USER_ERROR);
         }
         if (!PHP5) {
             $config =& new PaypalIpnConfig();
         } else {
             $config = new PaypalIpnConfig();
         }
         $vars = get_object_vars($config);
         foreach ($vars as $property => $configuration) {
             if (strpos($property, 'encryption_') === 0) {
                 $name = substr($property, 11);
                 $this->encryption[$name] = $configuration;
             } else {
                 $this->config[$property] = $configuration;
             }
         }
     }
     parent::__construct();
 }
開發者ID:ranium,項目名稱:CakePHP-Paypal-IPN-Plugin,代碼行數:42,代碼來源:paypal.php

示例2: __construct

 public function __construct($app)
 {
     parent::__construct($app);
     $application = $this->app->zoo->getApplication();
     $this->params = $this->app->store->get()->params;
     $this->testMode = $this->app->store->merchantTestMode();
 }
開發者ID:camigreen,項目名稱:ttop,代碼行數:7,代碼來源:merchant.php

示例3: __construct

 /**
  * Constructor
  *
  * @param View $View the view object the helper is attached to.
  * @param array $settings Settings array Settings array
  */
 public function __construct(View $View, $settings = array())
 {
     if (isset($settings['niceFormat'])) {
         $this->niceFormat = $settings['niceFormat'];
     }
     parent::__construct($View, $settings);
 }
開發者ID:kailIII,項目名稱:Gawfa-Microfinance,代碼行數:13,代碼來源:TimeHelper.php

示例4: __construct

 /**
  * @param App $app
  */
 public function __construct($app)
 {
     parent::__construct($app);
     $this->_migrate = $this->app->jbmigrate;
     $this->_element = $this->app->jbcartelement;
     $this->_confModel = JBModelConfig::model();
 }
開發者ID:alexmixaylov,項目名稱:real,代碼行數:10,代碼來源:jbmigratecart.php

示例5: __construct

 /**
  * Class constructor
  *
  * @param string $app App instance.
  * @since 2.0
  */
 public function __construct($app)
 {
     parent::__construct($app);
     // increase memory limit
     @ini_set('memory_limit', '256M');
     $app->loader->register('PclZip', 'libraries:pcl/pclzip.lib.php');
 }
開發者ID:NavaINT1876,項目名稱:ccustoms,代碼行數:13,代碼來源:archive.php

示例6: __construct

 /**
  * Class constructor
  *
  * @param string $app App instance.
  * @since 2.0
  */
 public function __construct($app)
 {
     parent::__construct($app);
     // load class
     $this->app->loader->register('AppTree', 'classes:tree.php');
     $this->app->loader->register('AppMenu', 'classes:menu.php');
 }
開發者ID:JBZoo,項目名稱:Zoo-Changelog,代碼行數:13,代碼來源:menu.php

示例7: __construct

/**
 * Constructor
 *
 */
	public function __construct($View = null) {
		$this->View = $View;
		foreach ($this->config['full'] as $key => $value) {
			$this->{$key} = $value;
		}
		return parent::__construct($this->View);
	}
開發者ID:neterslandreau,項目名稱:tubones,代碼行數:11,代碼來源:Cleaner.php

示例8: array

 function __construct(View $view, $settings = array())
 {
     parent::__construct($view, $settings);
     if (!empty($this->request->params['models'])) {
         $this->_defaultOptions['model'] = key($this->request->params['models']);
     }
 }
開發者ID:cepedag14,項目名稱:phkondo,代碼行數:7,代碼來源:CommentsHelper.php

示例9: __construct

/**
 * Constructor - finds and parses the ini file the plugin uses.
 *
 * @return void
 */
	public function __construct(View $View, $settings = array()) {
		if (empty($settings['noconfig'])) {
			$config = AssetConfig::buildFromIniFile();
			$this->config($config);
		}
		parent::__construct($View, $settings);
	}
開發者ID:renan,項目名稱:asset_compress,代碼行數:12,代碼來源:AssetCompressHelper.php

示例10: __construct

 /**
  * Class constructor
  * @param App $app
  */
 public function __construct($app)
 {
     parent::__construct($app);
     $this->_event = $this->app->event;
     $this->_position = $this->app->jbcartposition;
     $this->_element = $this->app->jbcartelement;
 }
開發者ID:alexmixaylov,項目名稱:real,代碼行數:11,代碼來源:jbevent.php

示例11: __construct

 public function __construct($app)
 {
     // call parent constructor
     parent::__construct($app);
     // set params as DATA class
     $this->params = $this->app->data->create(array());
 }
開發者ID:knigherrant,項目名稱:decopatio,代碼行數:7,代碼來源:environment.php

示例12: __construct

 /**
  * @param App $app
  */
 public function __construct($app)
 {
     parent::__construct($app);
     // make sure the line endings are recognized irrespective of the OS
     $this->app->jbenv->maxPerformance();
     ini_set('auto_detect_line_endings', true);
 }
開發者ID:alexmixaylov,項目名稱:real,代碼行數:10,代碼來源:jbimport.php

示例13: __construct

 /**
  * Constructor
  *
  */
 public function __construct(View $View, $settings = array())
 {
     foreach ($this->config['full'] as $key => $value) {
         $this->{$key} = $value;
     }
     return parent::__construct($View, $settings);
 }
開發者ID:asadaqain,項目名稱:Guide-on-the-Side,代碼行數:11,代碼來源:CleanerHelper.php

示例14: __construct

 public function __construct($app)
 {
     parent::__construct($app);
     $this->userhelper = $this->app->user;
     $this->_user = $this->userhelper->get();
     $this->application = $this->app->zoo->getApplication();
 }
開發者ID:camigreen,項目名稱:ttop,代碼行數:7,代碼來源:customer.php

示例15:

 function __construct()
 {
     parent::__construct();
     $this->_cssDir = WWW_ROOT . 'css' . DS;
     $this->_jsDir = WWW_ROOT . 'js' . DS;
     $this->_rootDir = WWW_ROOT;
 }
開發者ID:uuking,項目名稱:wildflower,代碼行數:7,代碼來源:packager.php


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