本文整理汇总了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();
}
示例2: __construct
public function __construct()
{
parent::__construct();
$this->_name = '';
$this->_reportedBugs = new ArrayCollection();
$this->_assignedBugs = new ArrayCollection();
}
示例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);
}
示例4: __construct
public function __construct(array $data)
{
if (empty($data)) {
return;
}
$photoSizes = $this->initPhotoSizesFromData($data);
$this->setPhotoSizes($photoSizes);
parent::__construct($data);
}
示例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);
}
示例6: __construct
public function __construct($id = null)
{
$this->dbColumns = array('id', 'title', 'description');
$this->dbUniqueValues = array('title' => 'Такой перевозчик уже существует');
parent::__construct($id);
}
示例7: __construct
public function __construct($id = null)
{
$this->dbColumns = array('id', 'title', 'description', 'address', 'city_id');
$this->dbUniqueValues = array('title' => 'Такой комбинат уже существует');
parent::__construct($id);
}
示例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);
}
示例9: __construct
public function __construct()
{
parent::__construct();
$this->_id = 0;
$this->_name = '';
}
示例10: __construct
public function __construct()
{
parent::__construct();
$this->roles = new ArrayCollection();
}
示例11: __construct
public function __construct($id, $name)
{
parent::__construct($id);
$this->name = $name;
}
示例12: __construct
public function __construct($id = null)
{
$this->dbColumns = array('id', 'measure1_id', 'measure2_id', 'rate', 'product_id', 'is_modifiable');
parent::__construct($id);
}
示例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);
}
示例14: __construct
/**
* Sets the Entity identifier
*
* @param string $entityId
* @param string $entityType
*/
public function __construct($entityId,$entityType)
{
parent::__construct($entityId);
$this->entityType = (string) $entityType;
}
示例15: __construct
public function __construct($id = null)
{
$this->dbColumns = array('id', 'title', 'aff_id');
parent::__construct($id);
}