Example #1
0
 /**
  * @see parent::canDo()
  */
 function canDo()
 {
     if ($this->_can) {
         return $this->_can;
     }
     parent::canDo();
     $this->_can->view = $this->canView();
     $this->_can->admin = $this->canAdmin();
     // Module view can be shown information
     $this->_can->context = "module {$this->_view}";
     return $this->_can;
 }