/** * Creates the manager that will use the given context object. * * @param \Aimeos\MShop\Context\Item\Iface $context Context object with required objects */ public function __construct(\Aimeos\MShop\Context\Item\Iface $context) { parent::__construct($context); $this->setResourceName('db-order'); $sites = $context->getLocale()->getSiteSubTree(); $this->replaceSiteMarker($this->searchConfig['order.containsStatus'], 'mordst_cs."siteid"', $sites, ':site'); }
/** * Initializes a new common address manager object using the given context object. * * @param \Aimeos\MShop\Context\Item\Iface $context Context object with required objects * * @throws \Aimeos\MShop\Exception if no configuration is available */ public function __construct(\Aimeos\MShop\Context\Item\Iface $context) { parent::__construct($context); $this->searchConfig = $this->getSearchConfig(); if (($entry = reset($this->searchConfig)) === false) { throw new \Aimeos\MShop\Exception(sprintf('Search configuration not available')); } if (($pos = strrpos($entry['code'], '.')) === false) { throw new \Aimeos\MShop\Exception(sprintf('Search configuration for "%1$s" not available', $entry['code'])); } if (($this->prefix = substr($entry['code'], 0, $pos + 1)) === false) { throw new \Aimeos\MShop\Exception(sprintf('Search configuration for "%1$s" not available', $entry['code'])); } }
/** * Initializes the object. * * @param \Aimeos\MShop\Context\Item\Iface $context Context object */ public function __construct(\Aimeos\MShop\Context\Item\Iface $context) { parent::__construct($context); $this->setResourceName('db-locale'); }
/** * Initializes the manager decorator. * * @param \Aimeos\MShop\Common\Manager\Iface $manager Manager object * @param \Aimeos\MShop\Context\Item\Iface $context Context object with required objects */ public function __construct(\Aimeos\MShop\Common\Manager\Iface $manager, \Aimeos\MShop\Context\Item\Iface $context) { parent::__construct($context); $this->manager = $manager; }