Ejemplo n.º 1
0
 public function getCommands()
 {
     $controller = $this->getController();
     if ($controller->canAdd()) {
         $this->addCommand('upload');
         $this->addNew(array('label' => 'New Folder'));
     }
     if ($controller->canDelete()) {
         $this->addDelete();
     }
     return parent::getCommands();
 }
Ejemplo n.º 2
0
 public function getCommands()
 {
     $this->addPurge();
     return parent::getCommands();
 }
Ejemplo n.º 3
0
 public function getCommands()
 {
     $this->addCommand('profile');
     $this->addCommand('logout');
     return parent::getCommands();
 }