PHP Interface Pinq\Providers\Utilities\IQueryResultCollection

Author: Elliot Levin ([email protected])
Afficher le fichier Open project: timetoogo/pinq

Méthodes publiques

Méthode Description
clearResults ( ) : void Clears the query results.
computeResults ( Expression $queryExpression ) : mixed Computes the results of the request query expression.
optimizeQuery ( Expression $queryExpression ) : Expression Optimizes the expression for caching purposes.
removeResults ( Expression $queryExpression ) : void Removes the query result associated with the supplied expression.
saveResults ( Expression $queryExpression, mixed $results ) : mixed Saves the query results for the supplied expression.
tryComputeResults ( Expression $queryExpression, &$results ) : boolean Attempts to find the appropriate query results from the supplied expression.

Method Details

clearResults() public méthode

Clears the query results.
public clearResults ( ) : void
Résultat void

computeResults() public méthode

Computes the results of the request query expression.
public computeResults ( Expression $queryExpression ) : mixed
$queryExpression Pinq\Expressions\Expression
Résultat mixed The results

optimizeQuery() public méthode

Optimizes the expression for caching purposes.
public optimizeQuery ( Expression $queryExpression ) : Expression
$queryExpression Pinq\Expressions\Expression
Résultat Pinq\Expressions\Expression

removeResults() public méthode

Removes the query result associated with the supplied expression.
public removeResults ( Expression $queryExpression ) : void
$queryExpression Pinq\Expressions\Expression
Résultat void

saveResults() public méthode

Saves the query results for the supplied expression.
public saveResults ( Expression $queryExpression, mixed $results ) : mixed
$queryExpression Pinq\Expressions\Expression
$results mixed
Résultat mixed

tryComputeResults() public méthode

If the exact results cannot be found, the query expression is traversed to find whether an appropriate parent query result is available. If so the results computed from the remaining query scope expression.
public tryComputeResults ( Expression $queryExpression, &$results ) : boolean
$queryExpression Pinq\Expressions\Expression
Résultat boolean Whether the results were successfully computed