/** * Set ForumCategory this forum belongs to by object * * @param ForumCategory $c */ public function setCategory(ForumCategory $c) { $this->category = $c; $this->categoryID = $c->getID(); }
public static function deleteCategory(ForumCategory $c) { global $db; $db->query("\n\t\t\t\tDELETE FROM " . TABLE_FORUM_CATEGORIES . "\n\t\t\t\tWHERE id = ?\n\t\t\t", array($c->getID())); }