PHP Class Doctrine\OrientDB\Query\Command\Select

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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
getSchema ( )
getTokenFormatters ( ) : array Returns the formatters for this query tokens

Method Details

__construct() public méthode

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

between() public méthode

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
Résultat Select

getSchema() protected méthode

protected getSchema ( )

getTokenFormatters() protected méthode

Returns the formatters for this query tokens
protected getTokenFormatters ( ) : array
Résultat array

limit() public méthode

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

orderBy() public méthode

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

resetWhere() public méthode

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

select() public méthode

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

skip() public méthode

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