PHP Class Jackalope\Query\Query

This can never be legally created if the transport does not implement QueryInterface.
Inheritance: implements PHPCR\Query\QueryInterface
Afficher le fichier Open project: jackalope/jackalope Class Usage Examples

Protected Properties

Свойство Type Description
$factory Jackalope\FactoryInterface The factory to instantiate objects
$limit integer Limit for the query
$objectManager Jackalope\ObjectManager The object manager to execute the query with.
$offset integer Offset to start results from
$path string If this is a stored query, the path to the node that stores this query.
$statement string The query statement

Méthodes publiques

Méthode Description
__construct ( Jackalope\FactoryInterface $factory, string $statement, ObjectManager $objectManager = null, string $path = null ) Create a new query instance
bindValue ( $varName, $value ) {@inheritDoc}
cancel ( ) {@inheritDoc}
execute ( ) {@inheritDoc}
getBindVariableNames ( ) {@inheritDoc}
getLimit ( ) : integer Access the limit from the transport layer
getOffset ( ) : integer Access the offset from the transport layer
getStatement ( ) {@inheritDoc}
getStoredQueryPath ( ) {@inheritDoc}
setLimit ( $limit ) {@inheritDoc}
setOffset ( $offset ) {@inheritDoc}
storeAsNode ( $absPath ) {@inheritDoc}

Method Details

__construct() public méthode

Create a new query instance
public __construct ( Jackalope\FactoryInterface $factory, string $statement, ObjectManager $objectManager = null, string $path = null )
$factory Jackalope\FactoryInterface the object factory
$statement string The statement for this query
$objectManager Jackalope\ObjectManager (can be omitted if you do not want to execute the query but just use it with a parser)
$path string If this query is loaded from workspace with QueryManager::getQuery(), path has to be provided here

bindValue() public méthode

{@inheritDoc}
public bindValue ( $varName, $value )

cancel() public méthode

{@inheritDoc}
public cancel ( )

execute() public méthode

{@inheritDoc}
public execute ( )

getBindVariableNames() public méthode

{@inheritDoc}

getLimit() public méthode

Access the limit from the transport layer
public getLimit ( ) : integer
Résultat integer the limit set with setLimit

getOffset() public méthode

Access the offset from the transport layer
public getOffset ( ) : integer
Résultat integer the offset set with setOffset

getStatement() public méthode

{@inheritDoc}
public getStatement ( )

getStoredQueryPath() public méthode

{@inheritDoc}
public getStoredQueryPath ( )

setLimit() public méthode

{@inheritDoc}
public setLimit ( $limit )

setOffset() public méthode

{@inheritDoc}
public setOffset ( $offset )

storeAsNode() public méthode

{@inheritDoc}
public storeAsNode ( $absPath )

Property Details

$factory protected_oe property

The factory to instantiate objects
protected FactoryInterface,Jackalope $factory
Résultat Jackalope\FactoryInterface

$limit protected_oe property

Limit for the query
protected int $limit
Résultat integer

$objectManager protected_oe property

The object manager to execute the query with.
protected ObjectManager,Jackalope $objectManager
Résultat Jackalope\ObjectManager

$offset protected_oe property

Offset to start results from
protected int $offset
Résultat integer

$path protected_oe property

If this is a stored query, the path to the node that stores this query.
protected string $path
Résultat string

$statement protected_oe property

The query statement
protected string $statement
Résultat string