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


PHP AbstractEntity::__construct方法代码示例

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


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

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_description = '';
     $this->_status = '';
     $this->_products = new ArrayCollection();
 }
开发者ID:joefallon,项目名称:DoctrineAndPhinxSpike,代码行数:7,代码来源:Bug.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_name = '';
     $this->_reportedBugs = new ArrayCollection();
     $this->_assignedBugs = new ArrayCollection();
 }
开发者ID:joefallon,项目名称:DoctrineAndPhinxSpike,代码行数:7,代码来源:User.php

示例3: __construct

 public function __construct($id = null, $directions = '')
 {
     $this->dbColumns = array('id', 'product_factored_id', 'measure_id', 'quantity', 'from_id', 'from_cell_id', 'to_id', 'direction', 'carrier_id', 'carrier_driver_id', 'carrier_vehicle_id', 'datetime', 'user_id', 'status');
     if (!empty($directions)) {
         $this->_directions = $directions;
     }
     parent::__construct($id);
 }
开发者ID:19eugen86,项目名称:schedro.extjs,代码行数:8,代码来源:productsMovement.entity.php

示例4: __construct

 public function __construct(array $data)
 {
     if (empty($data)) {
         return;
     }
     $photoSizes = $this->initPhotoSizesFromData($data);
     $this->setPhotoSizes($photoSizes);
     parent::__construct($data);
 }
开发者ID:rudestan,项目名称:teebot,代码行数:9,代码来源:PhotoSizeArray.php

示例5: __construct

 public function __construct($id = null, $type = '')
 {
     $this->dbColumns = array('id', 'product_factored_id', 'remainder', 'datetime_modified');
     switch ($type) {
         case 'factory':
             $this->dbTable = 'factories_remainders';
             $this->_recipientsField = 'factory_id';
             $this->_recipientsTable = 'factories';
             break;
         case 'dcCells':
             $this->dbTable = 'dc_s_stores_cells_remainders';
             $this->_recipientsField = 'dc_cell_id';
             $this->_recipientsTable = 'dc_s_stores_cells';
             $this->dbColumns[] = 'dc_store_id';
             $this->dbColumns[] = 'user_id';
             break;
         case 'dc':
             $this->dbTable = 'dc_s_remainders';
             $this->_recipientsField = 'dc_id';
             $this->_recipientsTable = 'dc_s';
             break;
         case 'cells':
             $this->dbTable = 'aff_stores_cells_remainders';
             $this->_recipientsField = 'aff_cell_id';
             $this->_recipientsTable = 'aff_stores_cells';
             $this->dbColumns[] = 'aff_store_id';
             $this->dbColumns[] = 'user_id';
             break;
         case 'affiliate':
         default:
             $this->dbTable = 'aff_remainders';
             $this->_recipientsField = 'aff_id';
             $this->_recipientsTable = 'affiliates';
             break;
     }
     $this->dbColumns[] = $this->_recipientsField;
     parent::__construct($id);
 }
开发者ID:19eugen86,项目名称:schedro.extjs,代码行数:38,代码来源:remainders.entity.php

示例6: __construct

 public function __construct($id = null)
 {
     $this->dbColumns = array('id', 'title', 'description');
     $this->dbUniqueValues = array('title' => 'Такой перевозчик уже существует');
     parent::__construct($id);
 }
开发者ID:19eugen86,项目名称:schedro.extjs,代码行数:6,代码来源:carrier.entity.php

示例7: __construct

 public function __construct($id = null)
 {
     $this->dbColumns = array('id', 'title', 'description', 'address', 'city_id');
     $this->dbUniqueValues = array('title' => 'Такой комбинат уже существует');
     parent::__construct($id);
 }
开发者ID:19eugen86,项目名称:schedro.extjs,代码行数:6,代码来源:factory.entity.php

示例8: __construct

 public function __construct($id = null)
 {
     $this->dbColumns = array('id', 'products_part', 'factored_date', 'product_id', 'measure_id', 'quantity', 'factory_id', 'dc_id', 'datetime', 'user_id');
     parent::__construct($id);
 }
开发者ID:19eugen86,项目名称:schedro.extjs,代码行数:5,代码来源:productsFactored.entity.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     $this->_id = 0;
     $this->_name = '';
 }
开发者ID:joefallon,项目名称:DoctrineAndPhinxSpike,代码行数:6,代码来源:Product.php

示例10: __construct

 public function __construct()
 {
     parent::__construct();
     $this->roles = new ArrayCollection();
 }
开发者ID:jwoods,项目名称:CE_27,代码行数:5,代码来源:User.php

示例11: __construct

 public function __construct($id, $name)
 {
     parent::__construct($id);
     $this->name = $name;
 }
开发者ID:guycole,项目名称:choral-smell-php,代码行数:5,代码来源:contract_entity.php

示例12: __construct

 public function __construct($id = null)
 {
     $this->dbColumns = array('id', 'measure1_id', 'measure2_id', 'rate', 'product_id', 'is_modifiable');
     parent::__construct($id);
 }
开发者ID:19eugen86,项目名称:schedro.extjs,代码行数:5,代码来源:measureRate.entity.php

示例13: __construct

 public function __construct($id = null)
 {
     $this->dbColumns = array('id', 'title', 'short_title', 'is_weight', 'is_area', 'is_volume', 'is_modifiable', 'is_visible');
     $this->dbUniqueValues = array('title' => 'Такая единица уже существует', 'short_title' => 'Такое сокращение уже существует');
     parent::__construct($id);
 }
开发者ID:19eugen86,项目名称:schedro.extjs,代码行数:6,代码来源:measure.entity.php

示例14: __construct

 /**
  * Sets the Entity identifier
  *
  * @param  string $entityId
  * @param  string $entityType
  */
 public function __construct($entityId,$entityType)
 {
     parent::__construct($entityId);
     $this->entityType = (string) $entityType;
 }
开发者ID:reisystems-india,项目名称:GovDashboard-Community,代码行数:11,代码来源:DrupalEntity.php

示例15: __construct

 public function __construct($id = null)
 {
     $this->dbColumns = array('id', 'title', 'aff_id');
     parent::__construct($id);
 }
开发者ID:19eugen86,项目名称:schedro.extjs,代码行数:5,代码来源:store.entity.php


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