Beispiel #1
0
 /**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams[self::PARAM_NAME]->setValue(static::t('Home'));
     $this->widgetParams[self::PARAM_LINK]->setValue($this->buildURL());
 }
Beispiel #2
0
 /**
  * Add node to the location line
  *
  * @param string $name     Node title
  * @param string $link     Node link OPTIONAL
  * @param array  $subnodes Node subnodes OPTIONAL
  *
  * @return void
  */
 protected function addLocationNode($name, $link = null, array $subnodes = null)
 {
     $this->locationPath[] = \XLite\View\Location\Node::create($name, $link, $subnodes);
 }
Beispiel #3
0
 /**
  * Prepare subnodes for the location path node
  *
  * @param \XLite\Model\Category $category Node category
  *
  * @return array
  */
 protected function getLocationNodeSubnodes(\XLite\Model\Category $category)
 {
     $nodes = array();
     foreach ($category->getSiblings(true) as $category) {
         $nodes[] = \XLite\View\Location\Node::create($category->getName(), $this->getCategoryURL($category));
     }
     return $nodes;
 }