src/DB/PDO/TableReader.php
public function setDbConnection( $dbc ){
		if( !is_object( $dbc ) )
			throw new \InvalidArgumentException( 'Database connection resource must be an object' );
		if( !is_a( $dbc, 'PDO' ) )
			throw new \InvalidArgumentException( 'Database connection resource must be a direct or inherited PDO object' );
		$this->dbc = $dbc;
	}
public function setDbConnection( $dbc ){
		if( !is_object( $dbc ) )
			throw new \InvalidArgumentException( 'Database connection resource must be an object' );
		if( !is_a( $dbc, 'PDO' ) )
			throw new \InvalidArgumentException( 'Database connection resource must be a direct or inherited PDO object' );
		$this->dbc = $dbc;
	}
public function setDbConnection ( $ dbc ) { if ( ! is_object ( $ dbc ) ) throw new \ InvalidArgumentException ( 'Database connection resource must be an object' ) ; if ( ! is_a ( $ dbc , 'PDO' ) ) throw new \ InvalidArgumentException ( 'Database connection resource must be a direct or inherited PDO object' ) ; $ this -> dbc = $ dbc ; }
Setting a reference to a database connection.
@access		public
@param		PDO		$dbc		Database connection resource object
@return		void
Setting a reference to a database connection .