/** * Initializes the site object. * * @param array $values Possible params to be set on initialization */ public function __construct(array $values = array(), array $children = array()) { MW_Common_Abstract::checkClassList('MShop_Locale_Item_Site_Interface', $children); parent::__construct('locale.site.', $values); $this->_values = $values; $this->_children = $children; }
/** * 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['id'])) { $this->setId($values['id']); } }
/** * Initializes the object with the locale values. * * @param array $values Values to be set on initialisation * @param MShop_Locale_Item_Site_Interface|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(), MShop_Locale_Item_Site_Interface $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 tag item object with the given values */ public function __construct(array $values = array()) { parent::__construct('product.tag.', $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 coupon item. * * @param array $values Optional; Associative array with id, label, provider, * config and status to initialize the item properties */ public function __construct(array $values = array()) { parent::__construct('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 MShop_Common_Item_List_Interface * @param array $refItems Two dimensional associative list of domain / ID / domain items that implement MShop_Common_Item_Interface */ 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 unit item object with the given values */ public function __construct(array $values = array()) { parent::__construct('price.unit.', $values); $this->_values = $values; }
/** * 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 warehouse item object with the given values */ public function __construct(array $values = array()) { parent::__construct('product.stock.warehouse.', $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; }