Location: PHPKode > projects > ChiCoMaS - Chilek CMS > chicomas/objects/obj_tempdb.php
<?
/*********************************************************/
class CTempDB{

	var $order_by;

	function CTempDB($row=""){
		$this->order_by = "123";
	}
}

/*********************************************************/
class CTempDBArray{
	var $tempdbs=array();
	var $top=0;
	var $count=0;
	
	function get(){
		if ($this->top <= $this->count){
			$this->top++;			
			return $this->tempdbs[$this->top-1];
		}
		else 
			return false;
	}

	function add($CTempDB) {
		$this->tempdbs[$this->count] = $CTempDB;
		$this->count++;				
		return true;
	}
	
	function count() {
		return ($this->count);
	}
}

/*********************************************************/
class CTempDBEngine {
	function GetRow($sql){
		$o_dataaccess = new CDataAccess();
		return $o_dataaccess->GetRow($sql);
	}

	function GetRows($sql){
		$o_dataaccess = new CDataAccess();
		return $o_dataaccess->GetRows($sql);
	}

	function ExecQuery($sql){
		$o_dataaccess = new CDataAccess();
		return $o_dataaccess->ExecQuery($sql);
	}

	function AddRecord($sql){
		$o_dataaccess = new CDataAccess();
		return $o_dataaccess->AddRecord($sql);
	}
}
?>
 
Return current item: ChiCoMaS - Chilek CMS