$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; });
파일 보기
프로젝트 열기: timetoogo/pinq
1 사용 예제들
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$storage | SplObjectStorage | ||
$traversableFactory | callable |
메소드 | 설명 | |
---|---|---|
__construct ( callable $traversableFactory = null ) | ||
clearResults ( ) | ||
computeResults ( |
||
optimizeQuery ( |
||
removeResults ( |
||
saveResults ( |
||
tryComputeResults ( |
메소드 | 설명 | |
---|---|---|
newTraversable ( $values ) | ||
removeGetTrueIteratorCall ( |
public __construct ( callable $traversableFactory = null ) | ||
$traversableFactory | callable |
public computeResults ( |
||
$expression |
public optimizeQuery ( |
||
$queryExpression |
protected removeGetTrueIteratorCall ( |
||
$queryExpression |
public removeResults ( |
||
$queryExpression |
public saveResults ( |
||
$expression |
public tryComputeResults ( |
||
$queryExpression |