/** * 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; }
/** * 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; }
/** * 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']); } }
/** * 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; }
/** * 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; }
/** * Initializes the stock item object with the given values */ public function __construct(array $values = array()) { parent::__construct('product.stock.', $values); $this->values = $values; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }
/** * 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; }