Location: PHPKode > projects > KvCMS Content Management System > kvframework/kvframework/dbhandler/kvframework_dbtype.class.php
<?php
load_file(KVF_FRAMEWORK_DIR."/dbhandler/kvframework_db_object.class.php");
load_file(KVF_FRAMEWORK_DIR."/dbhandler/kvframework_db_query.class.php");
load_file(KVF_FRAMEWORK_DIR."/dbhandler/structs/kvframework_struct_query.class.php");
load_file(KVF_FRAMEWORK_DIR."/dbhandler/structs/kvframework_struct_query_find.class.php");
load_file(KVF_FRAMEWORK_DIR."/dbhandler/structs/kvframework_struct_query_delete.class.php");
load_file(KVF_FRAMEWORK_DIR."/dbhandler/structs/kvframework_struct_query_insert.class.php");
load_file(KVF_FRAMEWORK_DIR."/dbhandler/structs/kvframework_struct_query_update.class.php");
load_file(KVF_FRAMEWORK_DIR."/dbhandler/exceptions/kvframework_db_exception.class.php");

abstract class kvframework_dbtype{

  function __construct(){
    kvframework_log::write_log(get_class($this)." initialized.", KVF_LOG_LDEBUG);
  }

  abstract public function query($sql);
  abstract public function fetch(kvframework_db_query $qid);
  abstract public function fetch_array(kvframework_db_query $qid);
  abstract public function rows(kvframework_db_query $qid);
  abstract public function error($ret);
  abstract public function affected();
  abstract public function inserted();
  abstract public function escape($val);
  abstract public function process(kvframework_struct_query $query);

  public function find_query(array $tables){
    return new kvframework_struct_query_find($tables);
  }

  public function delete_query(array $tables){
    return new kvframework_struct_query_delete($tables);
  }

  public function insert_query(array $tables){
    return new kvframework_struct_query_insert($tables);
  }

  public function update_query(array $tables){
    return new kvframework_struct_query_update($tables);
  }

}

?>
Return current item: KvCMS Content Management System