PHP Class Pinq\Providers\Utilities\QueryResultCollection

$someRows = $queryable->where(function ($row) { return $row['id'] <= 50; }); foreach ($someRows as $row) { This will load the values } This should be evaluated in memory $filteredRows = $someRows->where(function ($row) { return $row['isActive'] === true; });
Author: Elliot Levin ([email protected])
Inheritance: implements Pinq\Providers\Utilities\IQueryResultCollection
Mostrar archivo Open project: timetoogo/pinq Class Usage Examples

Protected Properties

Property Type Description
$storage SplObjectStorage
$traversableFactory callable

Public Methods

Method Description
__construct ( callable $traversableFactory = null )
clearResults ( )
computeResults ( Expression $expression )
optimizeQuery ( Expression $queryExpression )
removeResults ( Expression $queryExpression )
saveResults ( Expression $expression, $results )
tryComputeResults ( Expression $queryExpression, &$results )

Protected Methods

Method Description
newTraversable ( $values )
removeGetTrueIteratorCall ( Expression $queryExpression )

Method Details

__construct() public method

public __construct ( callable $traversableFactory = null )
$traversableFactory callable

clearResults() public method

public clearResults ( )

computeResults() public method

public computeResults ( Expression $expression )
$expression Pinq\Expressions\Expression

newTraversable() protected method

protected newTraversable ( $values )

optimizeQuery() public method

public optimizeQuery ( Expression $queryExpression )
$queryExpression Pinq\Expressions\Expression

removeGetTrueIteratorCall() protected method

protected removeGetTrueIteratorCall ( Expression $queryExpression )
$queryExpression Pinq\Expressions\Expression

removeResults() public method

public removeResults ( Expression $queryExpression )
$queryExpression Pinq\Expressions\Expression

saveResults() public method

public saveResults ( Expression $expression, $results )
$expression Pinq\Expressions\Expression

tryComputeResults() public method

public tryComputeResults ( Expression $queryExpression, &$results )
$queryExpression Pinq\Expressions\Expression

Property Details

$storage protected_oe property

protected SplObjectStorage $storage
return SplObjectStorage

$traversableFactory protected_oe property

protected callable $traversableFactory
return callable