src/DB/PDO/TableReader.php
public function get( $first = TRUE, $orders = array(), $limits = array() ){
		$this->validateFocus();
		$data = array();
		$conditions	= $this->getConditionQuery( array(), TRUE, TRUE, FALSE );						//  render WHERE clause if needed, cursored, without functions
		$orders		= $this->getOrderCondition( $orders );
		$limits		= $this->getLimitCondition( $limits );
		$columns	= $this->getColumnEnumeration( $this->columns );								//  get enumeration of masked column names
		$query		= 'SELECT '.$columns.' FROM '.$this->getTableName().' WHERE '.$conditions.$orders.$limits;

		$resultSet	= $this->dbc->query( $query );
		if( !$resultSet )
			return $first ? NULL : array();
		$resultList	= $resultSet->fetchAll( $this->getFetchMode() );
		if( $first )
			return $resultList ? $resultList[0] : NULL;
		return $resultList;
	}
public function get( $first = TRUE, $orders = array(), $limits = array() ){
		$this->validateFocus();
		$data = array();
		$conditions	= $this->getConditionQuery( array(), TRUE, TRUE, FALSE );						//  render WHERE clause if needed, cursored, without functions
		$orders		= $this->getOrderCondition( $orders );
		$limits		= $this->getLimitCondition( $limits );
		$columns	= $this->getColumnEnumeration( $this->columns );								//  get enumeration of masked column names
		$query		= 'SELECT '.$columns.' FROM '.$this->getTableName().' WHERE '.$conditions.$orders.$limits;

		$resultSet	= $this->dbc->query( $query );
		if( !$resultSet )
			return $first ? NULL : array();
		$resultList	= $resultSet->fetchAll( $this->getFetchMode() );
		if( $first )
			return $resultList ? $resultList[0] : NULL;
		return $resultList;
	}
public function get ( $ first = TRUE , $ orders = array ( ) , $ limits = array ( ) ) { $ this -> validateFocus ( ) ; $ data = array ( ) ; $ conditions = $ this -> getConditionQuery ( array ( ) , TRUE , TRUE , FALSE ) ; //  render WHERE clause if needed, cursored, without functions $ orders = $ this -> getOrderCondition ( $ orders ) ; $ limits = $ this -> getLimitCondition ( $ limits ) ; $ columns = $ this -> getColumnEnumeration ( $ this -> columns ) ; //  get enumeration of masked column names $ query = 'SELECT ' . $ columns . ' FROM ' . $ this -> getTableName ( ) . ' WHERE ' . $ conditions . $ orders . $ limits ; $ resultSet = $ this -> dbc -> query ( $ query ) ; if ( ! $ resultSet ) return $ first ? NULL : array ( ) ; $ resultList = $ resultSet -> fetchAll ( $ this -> getFetchMode ( ) ) ; if ( $ first ) return $ resultList ? $ resultList [ 0 ] : NULL ; return $ resultList ; }
Returns data of focused keys.
@access		public
@param		bool	$first		Extract first entry of result
@param		array	$orders		Associative array of orders
@param		array	$limits		Array of offset and limit
@return		array
Returns data of focused keys .