Esempio n. 1
0
 /**
  * Remove a group from the list.
  *
  * @param string $group The group to remove
  * @return boolean true on success, false on failure
  * @access public
  */
 function delGroup($group)
 {
     if ($group) {
         $this->_groups->del($group);
         return true;
     } else {
         $this->raiseError("Trying to remove an empty group");
         return false;
     }
 }
 /**
  * Delete one category clearance
  * 
  * @param integer $categoryID, ID of category to delete from stack
  * @return boolean true on success
  * @access public 
  */
 function del($categoryID)
 {
     if (SensitiveIO::isPositiveInteger($categoryID)) {
         $this->_categoriesClearances->del($categoryID);
         return true;
     } else {
         $this->raiseError("Category ID required : " . var_dump($categoryID));
         return false;
     }
 }