コード例 #1
0
ファイル: entry.php プロジェクト: script-solution/TodoList
 /**
  * Constructor
  * 
  * @param string $table the table the object belongs to
  */
 public function __construct($table)
 {
     parent::__construct($table);
 }
コード例 #2
0
ファイル: project.php プロジェクト: script-solution/TodoList
 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());
 }