deleteTasklist() public static méthode

Deletes a task list.
public static deleteTasklist ( Horde_Share_Object $tasklist )
$tasklist Horde_Share_Object The task list to delete.
Exemple #1
0
 public function execute()
 {
     if ($this->_vars->get('submitbutton') == _("Cancel")) {
         Horde::url('list.php', true)->redirect();
     }
     Nag::deleteTasklist($this->_tasklist);
 }
Exemple #2
0
 /**
  * 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);
 }
Exemple #3
0
 /**
  * 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');
 }