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


PHP Base::__construct方法代码示例

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


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

示例1: __construct

 /**
  * Constructor method for BootstrapMobileGatewayApp
  * @param bool $wantAppToken Whether an "anticipatory app account" auth token is desired
  * @return self
  */
 public function __construct($wantAppToken = null)
 {
     parent::__construct();
     if (null !== $wantAppToken) {
         $this->setProperty('wantAppToken', (bool) $wantAppToken);
     }
 }
开发者ID:zimbra-api,项目名称:account,代码行数:12,代码来源:BootstrapMobileGatewayApp.php

示例2: __construct

 /**
  * Preloads the string
  *
  * @param scalar
  *
  * @return mixed
  */
 public function __construct($data)
 {
     //argument 1 must be scalar
     Argument::i()->test(1, 'scalar');
     $data = (string) $data;
     parent::__construct($data);
 }
开发者ID:TheTypoMaster,项目名称:SPHERE-Framework,代码行数:14,代码来源:StringType.php

示例3: __construct

 public function __construct(array $properties = array())
 {
     parent::__construct($properties);
     foreach ($this->blocks as $block) {
         $this->blocksById[$block->id] = $block;
     }
 }
开发者ID:CG77,项目名称:ezpublish-kernel,代码行数:7,代码来源:Zone.php

示例4: __construct

 /**
  * Constructor method for GetAllAdminAccounts
  * @param  bool $applyCos Flag whether or not to apply class of service (COS) rules
  * @return self
  */
 public function __construct($applyCos = null)
 {
     parent::__construct();
     if (null !== $applyCos) {
         $this->setProperty('applyCos', (bool) $applyCos);
     }
 }
开发者ID:nucleus-be,项目名称:zimbra-api,代码行数:12,代码来源:GetAllAdminAccounts.php

示例5: __construct

 /**
  * Adds layout helper.
  *
  * @todo adds helper dynamic from folder.
  * @param \Ilch\Request $request
  * @param \Ilch\Translator $translator
  * @param \Ilch\Router $router
  */
 public function __construct(\Ilch\Request $request, \Ilch\Translator $translator, \Ilch\Router $router)
 {
     parent::__construct($request, $translator, $router);
     $this->addHelper('getMenu', 'layout', new \Ilch\Layout\Helper\GetMenu($this));
     $this->addHelper('getMenus', 'layout', new \Ilch\Layout\Helper\GetMenus($this));
     $this->addHelper('getHmenu', 'layout', new \Ilch\Layout\Helper\GetHmenu($this));
 }
开发者ID:sCar-w4y,项目名称:Ilch-2.0,代码行数:15,代码来源:Frontend.php

示例6: __construct

 public function __construct($object = null)
 {
     parent::__construct($object);
     if ($object instanceof \stdClass) {
         $this->setTitle($object->title);
     }
 }
开发者ID:rejinka,项目名称:xbmc-api,代码行数:7,代码来源:Media.php

示例7: __construct

 /**
  * ED - ERASE DISPLAY (ERASE IN PAGE)
  * @param mixed   $parameterBytes The Parameter Bytes
  */
 public function __construct($parameterBytes)
 {
     // Store the parameter bytes
     $this->setParameterBytes($parameterBytes);
     // Call Parent Constructor (which will store finalByte)
     parent::__construct(\Bramus\Ansi\ControlSequences\EscapeSequences\Enums\FinalByte::ED);
 }
开发者ID:bramus,项目名称:ansi-php,代码行数:11,代码来源:ED.php

示例8: __construct

 /**
  * Construct a new SSH_MSG_CHANNEL_OPEN message.
  *
  *  \param string $type
  *      Channel type to open.
  *
  *  \copydetails Base::__construct
  *
  *  \param int $initialWindowSize
  *      Initial window size for the channel.
  *
  *  \param int $maximumPacketSize
  *      Maximum packet size.
  */
 public function __construct($type, $channel, $initialWindowSize, $maximumPacketSize)
 {
     $this->type = $type;
     parent::__construct($channel);
     $this->initialWindowSize = $initialWindowSize;
     $this->maximumPacketSize = $maximumPacketSize;
 }
开发者ID:fpoirotte,项目名称:pssht,代码行数:21,代码来源:OPEN.php

示例9:

 /**
  * __construct
  *
  * @ignore
  * @author Guillermo Lucio <guillermo.lucio@gmail.com>
  * @copyright KeyPanel - 2015
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->load->model('Entity_model', 'entity', TRUE);
     $this->load->model('Member_model', 'member', TRUE);
     $this->load->model('Profile_model', 'profile', TRUE);
 }
开发者ID:gamanox,项目名称:keypanel,代码行数:15,代码来源:Member.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     if ($_COOKIE['sid']) {
         $this->setSID($_COOKIE['sid']);
     }
 }
开发者ID:ricecake,项目名称:JohnVanOrange,代码行数:7,代码来源:user.class.php

示例11: sprintf

 function __construct($connection, $model, $fields)
 {
     $this->model = $model;
     $this->fields = $fields;
     $this->template = sprintf("%s/templates/transformers.php", dirname(__DIR__));
     parent::__construct($connection);
 }
开发者ID:juaguz,项目名称:apigenerator,代码行数:7,代码来源:Transformer.php

示例12: Product

 /**
  * Request constructor.
  * @param object $data
  */
 function __construct($data)
 {
     parent::__construct($data);
     if (!$this->isError()) {
         if (property_exists($data, 'id')) {
             $this->id = $data->id;
         }
         if (property_exists($data, 'domainName')) {
             $this->domainName = $data->domainName;
         }
         if (property_exists($data, 'subjectAlternativeNames')) {
             $this->subjectAlternativeNames = $data->subjectAlternativeNames;
         }
         if (property_exists($data, 'dateIssued')) {
             $this->dateIssued = new \DateTime($data->dateIssued);
         }
         if (property_exists($data, 'dateExpired')) {
             $this->dateExpired = new \DateTime($data->dateExpired);
         }
         if (property_exists($data, 'company')) {
             $this->company = $data->company;
         }
         if (property_exists($data, 'customerId')) {
             $this->customerId = $data->customerId;
         }
         if (property_exists($data, '_embedded->product')) {
             $this->product = new Product($data->_embedded->product);
         }
     }
 }
开发者ID:bearburger,项目名称:xolphin-api-php,代码行数:34,代码来源:Certificate.php

示例13: __construct

 public function __construct($ePNAccount, $Total, $CardNo, $Tax, $CustCode, $Swiped = 1)
 {
     parent::__construct($ePNAccount, $CardNo, $Total);
     $this->Tax = $Tax;
     $this->CustCode = $CustCode;
     $this->Swiped = $Swiped;
 }
开发者ID:vmdoh,项目名称:php-epn,代码行数:7,代码来源:PurchaseCard.php

示例14: __construct

 public function __construct($ePNAccount, $Total, $PINBlock, $KeySerial, $CardNo, $Swiped = 1)
 {
     parent::__construct($ePNAccount, $CardNo, $Total);
     $this->PINBlock = $PINBlock;
     $this->KeySerial = $KeySerial;
     $this->Swiped = $Swiped;
 }
开发者ID:vmdoh,项目名称:php-epn,代码行数:7,代码来源:PINDebit.php

示例15: __construct

 /**
  * Product constructor.
  * @param object $data
  */
 public function __construct($data)
 {
     parent::__construct($data);
     if (!$this->isError()) {
         if (property_exists($data, 'id')) {
             $this->id = $data->id;
         }
         if (property_exists($data, 'brand')) {
             $this->brand = $data->brand;
         }
         if (property_exists($data, 'name')) {
             $this->name = $data->name;
         }
         if (property_exists($data, 'type')) {
             $this->type = $data->type;
         }
         if (property_exists($data, 'validation')) {
             $this->validation = $data->validation;
         }
         if (property_exists($data, 'includeDomains')) {
             $this->includeDomains = $data->includeDomains;
         }
         if (property_exists($data, 'maxDomains')) {
             $this->maxDomains = $data->maxDomains;
         }
         if (property_exists($data, 'prices')) {
             foreach ($data->prices as $price) {
                 $this->prices[] = new ProductPrice($price);
             }
         }
     }
 }
开发者ID:bearburger,项目名称:xolphin-api-php,代码行数:36,代码来源:Product.php


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