PHP Class Doctrine\OrientDB\Query\Command\Select

Inheritance: extends Doctrine\OrientDB\Query\Command, implements Doctrine\OrientDB\Query\Command\SelectInterface
Datei anzeigen Open project: doctrine/orientdb-odm Class Usage Examples

Public Methods

Method Description
__construct ( array $target = null ) Builds a Select object injecting the $target into the FROM clause.
between ( string $key, string $left, string $right ) : Select Converts the "normal" select into an index one.
limit ( integer $limit ) Sets a limit to the SELECT.
orderBy ( array $order, boolean $append = true, boolean $first = false ) Orders the query.
resetWhere ( ) : true Deletes all the WHERE and BETWEEN conditions in the current SELECT.
select ( array $projections, boolean $append = true ) Sets the fields to select.
skip ( $records ) Sets the number of records to skip.

Protected Methods

Method Description
getSchema ( )
getTokenFormatters ( ) : array Returns the formatters for this query tokens

Method Details

__construct() public method

Builds a Select object injecting the $target into the FROM clause.
public __construct ( array $target = null )
$target array

between() public method

Index selects can query with the BETWEEN operator: select from index:name where x between 10.3 and 10.7
public between ( string $key, string $left, string $right ) : Select
$key string
$left string
$right string
return Select

getSchema() protected method

protected getSchema ( )

getTokenFormatters() protected method

Returns the formatters for this query tokens
protected getTokenFormatters ( ) : array
return array

limit() public method

Sets a limit to the SELECT.
public limit ( integer $limit )
$limit integer

orderBy() public method

Orders the query.
public orderBy ( array $order, boolean $append = true, boolean $first = false )
$order array
$append boolean
$first boolean

resetWhere() public method

Deletes all the WHERE and BETWEEN conditions in the current SELECT.
public resetWhere ( ) : true
return true

select() public method

Sets the fields to select.
public select ( array $projections, boolean $append = true )
$projections array
$append boolean

skip() public method

Sets the number of records to skip.
public skip ( $records )