src/DB/PDO/Table.php
public function setDatabase( DB_PDO_Connection $dbc, $prefix = NULL, $id = NULL ){
		$this->dbc		= $dbc;
		$this->prefix	= (string) $prefix;
		$this->table	= new \DB_PDO_TableWriter(
			$dbc,
			$this->prefix.$this->name,
			$this->columns,
			$this->primaryKey,
			$id
		);
		if( $this->fetchMode )
			$this->table->setFetchMode( $this->fetchMode );
		$this->table->setIndices( $this->indices );
		$this->cache	= \Alg_Object_Factory::createObject( self::$cacheClass );
		$this->cacheKey	= 'db.'.$this->prefix.$this->name.'.';
	}
public function setDatabase( DB_PDO_Connection $dbc, $prefix = NULL, $id = NULL ){
		$this->dbc		= $dbc;
		$this->prefix	= (string) $prefix;
		$this->table	= new \DB_PDO_TableWriter(
			$dbc,
			$this->prefix.$this->name,
			$this->columns,
			$this->primaryKey,
			$id
		);
		if( $this->fetchMode )
			$this->table->setFetchMode( $this->fetchMode );
		$this->table->setIndices( $this->indices );
		$this->cache	= \Alg_Object_Factory::createObject( self::$cacheClass );
		$this->cacheKey	= 'db.'.$this->prefix.$this->name.'.';
	}
public function setDatabase ( DB_PDO_Connection $ dbc , $ prefix = NULL , $ id = NULL ) { $ this -> dbc = $ dbc ; $ this -> prefix = ( string ) $ prefix ; $ this -> table = new \ DB_PDO_TableWriter ( $ dbc , $ this -> prefix . $ this -> name , $ this -> columns , $ this -> primaryKey , $ id ) ; if ( $ this -> fetchMode ) $ this -> table -> setFetchMode ( $ this -> fetchMode ) ; $ this -> table -> setIndices ( $ this -> indices ) ; $ this -> cache = \ Alg_Object_Factory :: createObject ( self :: $ cacheClass ) ; $ this -> cacheKey = 'db.' . $ this -> prefix . $ this -> name . '.' ; }
Sets Environment of Controller by copying Framework Member Variables.
@access		public
@param		DB_PDO_Connection	$dbc		PDO database connection object
@param		string				$prefix		Table name prefix
@param		integer				$id			ID to focus on
@return		void
Sets Environment of Controller by copying Framework Member Variables .