本文整理汇总了PHP中Aimeos\MShop\Common\Item\Base::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Base::__construct方法的具体用法?PHP Base::__construct怎么用?PHP Base::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Aimeos\MShop\Common\Item\Base
的用法示例。
在下文中一共展示了Base::__construct方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Initializes the site object.
*
* @param array $values Possible params to be set on initialization
*/
public function __construct(array $values = array(), array $children = array())
{
\Aimeos\MW\Common\Base::checkClassList('\\Aimeos\\MShop\\Locale\\Item\\Site\\Iface', $children);
parent::__construct('locale.site.', $values);
$this->values = $values;
$this->children = $children;
}
示例2: __construct
/**
* Initializes the object with the locale values.
*
* @param array $values Values to be set on initialisation
* @param \Aimeos\MShop\Locale\Item\Site\Iface|null $site Site object
* @param array $sitePath List of site IDs up to the root site item
* @param array $siteSubTree List of site IDs from all sites below the current site
*/
public function __construct(array $values = array(), \Aimeos\MShop\Locale\Item\Site\Iface $site = null, array $sitePath = array(), array $siteSubTree = array())
{
parent::__construct('locale.', $values);
$this->values = $values;
$this->site = $site;
$this->sitePath = $sitePath;
$this->siteSubTree = $siteSubTree;
}
示例3: __construct
/**
* Initializes the currency object object.
*
* @param array $values Possible params to be set on initialization
*/
public function __construct(array $values = array())
{
parent::__construct('locale.currency.', $values);
$this->values = $values;
if (isset($values['locale.currency.id'])) {
$this->setId($values['locale.currency.id']);
}
}
示例4: __construct
/**
* Initializes the type item object.
*
* @param string $prefix Property prefix when converting to array
* @param array $values Initial values of the list type item
*/
public function __construct($prefix, array $values = array())
{
parent::__construct($prefix, $values);
$this->prefix = $prefix;
$this->values = $values;
}
示例5: __construct
/**
* Initializes the job item.
*
* @param array $values Associative list of key/value pairs
*/
public function __construct(array $values = array())
{
parent::__construct('job.', $values);
$this->values = $values;
}
示例6: __construct
/**
* Initializes the stock item object with the given values
*/
public function __construct(array $values = array())
{
parent::__construct('product.stock.', $values);
$this->values = $values;
}
示例7: __construct
/**
* Initializes the customer group item
*
* @param array $values List of key/value pairs of the customer group
*/
public function __construct($values = array())
{
parent::__construct('customer.group.', $values);
$this->values = $values;
}
示例8: __construct
/**
* Initializes the order item base service attribute item.
*
* @param array $values Associative array of key/value pairs.
*/
public function __construct(array $values = array())
{
parent::__construct('order.base.service.attribute.', $values);
$this->values = $values;
}
示例9: __construct
/**
* Initializes the order base coupon item.
*
* @param array $values Values to be set on initialisation.
* Possible keys: 'id', 'baseid', 'ordprodid', 'code', 'mtime'
*/
public function __construct(array $values = array())
{
parent::__construct('order.base.coupon.', $values);
$this->values = $values;
}
示例10: __construct
/**
* Initializes the item with the given values.
*
* @param string $prefix Prefix for the keys returned by toArray()
* @param array $values Associative list of key/value pairs of the item properties
* @param array $listItems Two dimensional associative list of domain / ID / list items that implement \Aimeos\MShop\Common\Item\Lists\Iface
* @param array $refItems Two dimensional associative list of domain / ID / domain items that implement \Aimeos\MShop\Common\Item\Iface
*/
public function __construct($prefix, array $values = array(), array $listItems = array(), array $refItems = array())
{
parent::__construct($prefix, $values);
$this->listItems = $listItems;
$this->refItems = $refItems;
}
示例11: __construct
/**
* Initializes the order base service item
*
* @param \Aimeos\MShop\Price\Item\Iface $price
* @param array $values Values to be set on initialisation
* @param array $attributes Attributes to be set on initialisation
*/
public function __construct(\Aimeos\MShop\Price\Item\Iface $price, array $values = array(), array $attributes = array())
{
parent::__construct('order.base.service.', $values);
\Aimeos\MW\Common\Base::checkClassList('\\Aimeos\\MShop\\Order\\Item\\Base\\Service\\Attribute\\Iface', $attributes);
$this->attributes = $attributes;
}