/** * Defines the link controller class names for the specific link values * for example: {home} * * @return array */ protected function defineLinkControllers() { $list = parent::defineLinkControllers(); $list[static::DEFAULT_COMING_SOON] = '\\XLite\\Module\\CDev\\ProductAdvisor\\Controller\\Customer\\ComingSoon'; $list[static::DEFAULT_NEW_ARRIVALS] = '\\XLite\\Module\\CDev\\ProductAdvisor\\Controller\\Customer\\NewArrivals'; return $list; }
/** * Get pages templates * * @return array * @see ____func_see____ * @since 1.0.0 */ protected function getPageTemplates() { $list = array(); foreach (\XLite\Module\CDev\SimpleCMS\Model\Menu::getTypes() as $k => $v) { $list[$k] = 'modules/CDev/SimpleCMS/menus/body.tpl'; } return $list; }
/** * Defines the link controller class names for the specific link values * for example: {home} * * @return array */ protected function defineLinkControllers() { $list = parent::defineLinkControllers(); $list[static::DEFAULT_SALE_PAGE] = '\\XLite\\Module\\CDev\\Sale\\Controller\\Customer\\SaleProducts'; return $list; }
/** * {@inheritDoc} */ public function prepareEntityBeforeCommit($type) { $this->__initializer__ && $this->__initializer__->__invoke($this, 'prepareEntityBeforeCommit', array($type)); return parent::prepareEntityBeforeCommit($type); }
/** * Defines the link controller class names for the specific link values * for example: {home} * * @return array */ protected function defineLinkControllers() { $list = parent::defineLinkControllers(); $list[static::DEFAULT_CONTACT_US_PAGE] = '\\XLite\\Controller\\Customer\\ContactUs'; return $list; }
/** * Define Menu item * * @param \XLite\Module\CDev\SimpleCMS\Model\Menu $menuItem Menu item * * @return array */ protected function defineItem(\XLite\Module\CDev\SimpleCMS\Model\Menu $menuItem) { return array('url' => $menuItem->getURL(), 'label' => $menuItem->getName(), 'controller' => $menuItem->getLinkController()); }
/** * Defines the link controller class names for the specific link values * for example: {home} * * @return array */ protected function defineLinkControllers() { $list = parent::defineLinkControllers(); $list[static::DEFAULT_MY_ACCOUNT][] = '\\XLite\\Module\\CDev\\PINCodes\\Controller\\Customer\\PinCodes'; return $list; }