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


PHP Record::__construct方法代码示例

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


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

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     $this->width = 0;
     $this->height = 0;
     $this->keyword = '';
 }
开发者ID:vvcumt,项目名称:zk,代码行数:7,代码来源:LuceneSearch.class.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     $this->referenceAuthor = new ArrayCollection();
     $this->referenceStorageLocation = new ArrayCollection();
     $this->referenceKeyword = new ArrayCollection();
 }
开发者ID:KDRS-TEST,项目名称:noark5-validator,代码行数:7,代码来源:BasicRecord.php

示例3: __construct

 public function __construct()
 {
     parent::__construct();
     $this->item = '';
     $this->state = '';
     $this->cid = '';
 }
开发者ID:vvcumt,项目名称:zk,代码行数:7,代码来源:Setting.class.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $this->id = '';
     $this->cpid = '';
     $this->applytype = 0;
 }
开发者ID:vvcumt,项目名称:zk,代码行数:7,代码来源:Apply.class.php

示例5: __construct

 /**
  * @param RecordRef $promotion
  * @param string $code
  * @param string $internalId
  * @param string $externalId
  */
 public function __construct($promotion, $code, $internalId, $externalId)
 {
     parent::__construct();
     $this->promotion = $promotion;
     $this->code = $code;
     $this->internalId = $internalId;
     $this->externalId = $externalId;
 }
开发者ID:boskee,项目名称:netsuite,代码行数:14,代码来源:CouponCode.php

示例6: __construct

 public function __construct($data = false, $value = false)
 {
     parent::__construct($data);
     if (is_string($data) && property_exists($this, $data)) {
         //判断$data是否为该类的成员属性
         $this->findBy($data, $value);
     }
 }
开发者ID:chaobj001,项目名称:tt,代码行数:8,代码来源:Category.class.php

示例7: __construct

 /**
  *
  * @param array $params
  * @todo Implement this class
  */
 public function __construct(array $params)
 {
     $defaults = ['where_fields' => [], 'key_field' => null];
     $config = array_merge($defaults, $params);
     $this->setWhereFields($config['where_fields']);
     $this->setKeyField($config['key_field']);
     parent::__construct($config);
 }
开发者ID:Intacct,项目名称:intacct-sdk-php,代码行数:13,代码来源:RecordUpsert.php

示例8: __construct

 public function __construct($data)
 {
     parent::__construct($data);
     if (null !== $data) {
         $this->isInitialized = true;
         $this->isDirty = true;
     }
 }
开发者ID:pelif,项目名称:curso-design-pattern,代码行数:8,代码来源:RecordProxy.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     $this->id = '';
     $this->cpid = '';
     $this->url = '';
     $this->page = 0;
     $this->position = 0;
 }
开发者ID:vvcumt,项目名称:zk,代码行数:9,代码来源:Browse.class.php

示例10: __construct

 public function __construct(array $data = null)
 {
     parent::__construct($data);
     $this->id = isset($this->id) ? (int) $this->id : null;
     $this->created_by_id = isset($this->created_by_id) ? (int) $this->created_by_id : null;
     $this->title = isset($this->title) ? trim($this->title) : null;
     $this->date_from = !empty($this->date_from) ? new DateTime($this->date_from) : null;
     $this->date_to = !empty($this->date_to) ? new DateTime($this->date_to) : null;
     $this->description = isset($this->description) ? trim($this->description) : null;
 }
开发者ID:jacekciach,项目名称:wolfcms-calendar-plugin,代码行数:10,代码来源:CalendarEvent.php

示例11: __construct

 /**
  * @param array
  */
 public function __construct($data)
 {
     parent::__construct($data);
     // when the record has data, mark it as initialized
     // since Record will hold our business logic, we don't want to
     // implement this behaviour there, but instead in a new proxy class
     // that extends the Record class
     if (null !== $data) {
         $this->_isInitialized = true;
         $this->_isDirty = true;
     }
 }
开发者ID:Vildulv,项目名称:DesignPatternsPHP,代码行数:15,代码来源:Proxy.php

示例12: __construct

 public function __construct($name, $type, $class, $method, array $parameters = array(), $authenticator = null, $cacheLength = false, $viewType = "XSLTView", $viewTemplate = null, $tableName = "resource", array $attributes = array())
 {
     parent::__construct($tableName, $attributes);
     $this->name = $name;
     $this->type = $type;
     $this->class = $class;
     $this->method = $method;
     $this->parameters = $parameters;
     $this->authenticator = $authenticator;
     $this->cache_length = $cacheLength;
     $this->view_template = $viewTemplate;
     $this->view_type = $viewType;
 }
开发者ID:Acidburn0zzz,项目名称:xframe-legacy,代码行数:13,代码来源:Resource.php

示例13: __construct

 /**
  * @param ViewResultInterface $viewResult
  */
 public function __construct(ViewResultInterface $viewResult = null)
 {
     parent::__construct($viewResult->getDatabase()->getConnection());
     $this->viewResult = $viewResult;
 }
开发者ID:dzuelke,项目名称:phpcouch,代码行数:8,代码来源:ViewResultRow.php

示例14: __construct

 public function __construct()
 {
     parent::__construct();
 }
开发者ID:boskee,项目名称:netsuite,代码行数:4,代码来源:Address.php

示例15: __construct

 /**
  * Constructor
  *
  * @access public
  */
 public function __construct()
 {
     parent::__construct();
     $this->_sms = new SMSMailer();
 }
开发者ID:bharatm,项目名称:NDL-VuFind,代码行数:10,代码来源:SMS.php


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