Ejemplo n.º 1
0
 /**
  * Construct this node action
  * @return null
  */
 public function __construct()
 {
     parent::__construct(self::ROUTE, self::TRANSLATION_LABEL, false);
 }
Ejemplo n.º 2
0
 /**
  * Stores the current region to the session
  * @return null
  */
 public function postAction()
 {
     if ($this->region) {
         $this->session->set(self::SESSION_REGION . $this->node->id, $this->region);
         $this->session->set(self::SESSION_REGION_LAST, $this->region);
     } else {
         $this->session->set(self::SESSION_REGION . $this->node->id, 0);
         $this->session->set(self::SESSION_REGION_LAST, 0);
     }
     parent::postAction();
 }