/**
  * Build navigation item
  *
  * @param $params
  * @return object|null
  */
 public function buildItem($params)
 {
     $navigationItem = new NavigationItem($params);
     $navigationItem->setType($this->getType());
     $pinbarTabItem = new PinbarTab();
     $pinbarTabItem->setItem($navigationItem);
     $pinbarTabItem->setMaximized(!empty($params['maximized']));
     return $pinbarTabItem;
 }
示例#2
0
 public function testDoPreUpdate()
 {
     $item = new NavigationItem();
     $item->doPreUpdate();
     $this->assertInstanceOf('DateTime', $item->getUpdatedAt());
 }
 /**
  * Build navigation item
  *
  * @param $params
  * @return NavigationItem|null
  */
 public function buildItem($params)
 {
     $navigationItem = new NavigationItem($params);
     $navigationItem->setType($this->getType());
     return $navigationItem;
 }
 /**
  * {@inheritDoc}
  */
 public function doPreUpdate()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'doPreUpdate', array());
     return parent::doPreUpdate();
 }