Esempio 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();
 }
Esempio n. 2
0
 public function getCommands()
 {
     $this->addPurge();
     return parent::getCommands();
 }
Esempio n. 3
0
 public function getCommands()
 {
     $this->addCommand('profile');
     $this->addCommand('logout');
     return parent::getCommands();
 }