deleteTasklist() public static method

Deletes a task list.
public static deleteTasklist ( Horde_Share_Object $tasklist )
$tasklist Horde_Share_Object The task list to delete.
Exemplo n.º 1
0
 public function execute()
 {
     if ($this->_vars->get('submitbutton') == _("Cancel")) {
         Horde::url('list.php', true)->redirect();
     }
     Nag::deleteTasklist($this->_tasklist);
 }
Exemplo n.º 2
0
Arquivo: Api.php Projeto: Gomez/horde
 /**
  * Deletes a task list.
  *
  * @param string $id  A task list id.
  */
 public function deleteTasklist($id)
 {
     $tasklist = $GLOBALS['nag_shares']->getShare($id);
     return Nag::deleteTasklist($tasklist);
 }
Exemplo n.º 3
0
Arquivo: List.php Projeto: horde/horde
 /**
  * Delete a SmartList.
  *
  */
 protected function _doDeleteSmartList()
 {
     try {
         $sl = $GLOBALS['nag_shares']->getShare($this->_vars->smart_id);
         Nag::deleteTasklist($sl);
     } catch (Horde_Exception $e) {
         $GLOBALS['notification']->push($e->getMessage(), 'horde.error');
         Horde::url('list.php')->redirect();
         exit;
     }
     $GLOBALS['notification']->push(_("Smart List deleted successfully"), 'horde.success');
 }