Example #1
0
 /**
  * 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;
 }
Example #2
0
 /**
  * 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;
 }
Example #3
0
 /**
  * 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);
 }
Example #5
0
 /**
  * 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;
 }
Example #6
0
 /**
  * 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());
 }
Example #7
0
 /**
  * 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;
 }