Example #1
0
 /**
  * Constructor
  * 
  * @param string $table the table the object belongs to
  */
 public function __construct($table)
 {
     parent::__construct($table);
 }
Example #2
0
 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());
 }