/** * Constructor * * @param string $table the table the object belongs to */ public function __construct($table) { parent::__construct($table); }
public function delete() { $functions = FWS_Props::get()->functions(); $db = FWS_Props::get()->db(); parent::delete(); $functions->select_project(0); $db->execute('DELETE FROM ' . TDL_TB_ENTRIES . ' WHERE project_id = ' . $this->get_id()); $db->execute('DELETE FROM ' . TDL_TB_VERSIONS . ' WHERE project_id = ' . $this->get_id()); $db->execute('DELETE FROM ' . TDL_TB_CATEGORIES . ' WHERE project_id = ' . $this->get_id()); }