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


PHP Component::__construct方法代码示例

本文整理汇总了PHP中Component::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Component::__construct方法的具体用法?PHP Component::__construct怎么用?PHP Component::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Component的用法示例。


在下文中一共展示了Component::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __construct

 public function __construct(ComponentCollection $collection, $settings = array())
 {
     if (Configure::read('Sermepa')) {
         $settings = $settings + Configure::read('Sermepa');
     }
     parent::__construct($collection, $settings);
 }
开发者ID:jaykay-design,项目名称:cakephp-sermepa,代码行数:7,代码来源:SermepaComponent.php

示例2: __construct

 public function __construct($domain, $path, $loader)
 {
     $this->setDomain($domain);
     $this->setPath($path);
     $this->loader = $loader;
     parent::__construct();
 }
开发者ID:mrgrain,项目名称:jumpstart-battery,代码行数:7,代码来源:I18n.php

示例3: __construct

 public function __construct(ComponentCollection $collection, $settings = array())
 {
     $configSettings = (array) Configure::read('PaymentNetwork');
     $settings = array_merge($this->settings, $configSettings, (array) $settings);
     $this->Controller = $collection->getController();
     parent::__construct($collection, $settings);
 }
开发者ID:09060906,项目名称:CakePHP-Payment-Plugin,代码行数:7,代码来源:PaymentNetworkComponent.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     //$this->addPropertyArray('item', array( 'label', 'page', 'target') );
     // tell the base class we handle children nodes
     $this->_has_children_handler = true;
 }
开发者ID:BackupTheBerlios,项目名称:freeblocks-svn,代码行数:7,代码来源:Menu.php

示例5: array

 function __construct($params = "")
 {
     parent::__construct($params);
     if (empty($_SESSION[$this->cartId])) {
         $_SESSION[$this->cartId] = array();
     }
 }
开发者ID:kurko,项目名称:acidphp,代码行数:7,代码来源:Cart.php

示例6: __construct

 public function __construct(ComponentCollection $collection, $settings = array())
 {
     parent::__construct($collection, $settings);
     $this->settings = Set::merge($this->defaults, $settings);
     $this->TwimOauth = ClassRegistry::init('Twim.TwimOauth');
     $this->TwimOauth->setDataSource($this->settings['datasource']);
 }
开发者ID:nojimage,项目名称:cakephp-twim,代码行数:7,代码来源:TwitterComponent.php

示例7: __construct

 /**
  * Constructor
  *
  * @param ComponentCollection $collection A ComponentCollection this component can use to lazy load its components
  * @param array $settings Array of configuration settings.
  */
 public function __construct(ComponentCollection $collection, $settings = array())
 {
     parent::__construct($collection, $settings);
     $explode = explode('/', realpath(__DIR__ . DS . '..' . DS . '..'));
     $pluginName = end($explode);
     App::uses('Image', $pluginName . '.Lib');
 }
开发者ID:AntoineCuny,项目名称:VinylStore,代码行数:13,代码来源:ImgComponent.php

示例8:

 function __construct()
 {
     parent::__construct();
     if (session_status() == PHP_SESSION_NONE) {
         session_start();
     }
 }
开发者ID:anla9107,项目名称:E-butik-PHP,代码行数:7,代码来源:cart_model.php

示例9: __construct

 public function __construct(ComponentCollection $collection, $settings = array())
 {
     //$settings = array_merge($this->settings, (array)$settings);
     $this->FormalWord = ClassRegistry::init('FormalWord');
     $this->Controller = $collection->getController();
     parent::__construct($collection, $settings);
 }
开发者ID:huanjian,项目名称:mythesis,代码行数:7,代码来源:JanPosTaggingComponent.php

示例10: __construct

 public function __construct(ComponentCollection $collection, array $settings = array())
 {
     parent::__construct($collection, $settings);
     $this->Controller = $collection->getController();
     $this->UserConnection = ClassRegistry::init('Social.UserConnection');
     $this->_loadOpauth();
 }
开发者ID:misfrog,项目名称:cake-social,代码行数:7,代码来源:ConnectionComponent.php

示例11: __construct

 /**
  * Define the core functionality of the plugin.
  *
  * Set the plugin name and the plugin version that can be used throughout the plugin.
  * Define the locale and load the components.
  *
  * @since       {{version}}
  * @access      public
  * @param string $filename
  */
 public function __construct($filename)
 {
     $this->basename = plugin_basename($filename);
     $this->path = dirname($filename);
     $this->loader = new Loader($this->getSlug(), $this->getVersion(), $this->getBasename());
     parent::__construct();
 }
开发者ID:mrgrain,项目名称:jumpstart-battery,代码行数:17,代码来源:Plugin.php

示例12: __construct

 /**
  * Constructor
  *
  * @param ComponentCollection $collection A ComponentCollection for this component
  * @param array $settings Array of settings.
  * @return RememberMeComponent
  */
 public function __construct(ComponentCollection $collection, $settings = array())
 {
     parent::__construct($collection, $settings);
     $this->_checkAndSetCookieLifeTime();
     $this->settings = Hash::merge($this->_defaults, $settings);
     $this->configureCookie($this->settings['cookie']);
 }
开发者ID:harpax,项目名称:users,代码行数:14,代码来源:RememberMeComponent.php

示例13: __construct

 public function __construct(ComponentCollection $collection, $settings = array())
 {
     $settings = array_merge($this->settings, (array) $settings);
     $this->Controller = $collection->getController();
     parent::__construct($collection, $settings);
     $this->init();
 }
开发者ID:a0108393,项目名称:cms-system,代码行数:7,代码来源:CaptchaComponent.php

示例14: __construct

 /**
  * @param OsuSignature $signature The base signature
  * @param int $x The X position of this flag
  * @param int $y The Y position of this flag
  * @param int $width The width of this flag
  * @param int $height The height of this flag
  */
 public function __construct(OsuSignature $signature, $x = 0, $y = 0, $width = 18, $height = 12)
 {
     parent::__construct($signature, $x, $y);
     $this->width = $width;
     $this->height = $height;
     $this->mc = Utils::getMemcache();
 }
开发者ID:BTCTaras,项目名称:osusig,代码行数:14,代码来源:ComponentFlag.php

示例15: __construct

 /**
  * @param  string  caption
  */
 public function __construct($caption = NULL)
 {
     parent::__construct();
     $this->control = Html::el('input');
     $this->label = Html::el('label');
     $this->caption = $caption;
     $this->rules = new Rules($this);
 }
开发者ID:jakubkulhan,项目名称:guestbook,代码行数:11,代码来源:FormControl.php


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