visitOrderBy() public method

public visitOrderBy ( OrderBy $segment )
$segment Pinq\Queries\Segments\OrderBy
コード例 #1
0
 public function visitOrderBy(Segments\OrderBy $segment)
 {
     foreach ($segment->getOrderings() as $ordering) {
         $this->parameters->addId($ordering->getIsAscendingId(), ParameterHasher::valueType());
     }
     return parent::visitOrderBy($segment);
 }
コード例 #2
0
 public function visitOrderBy(Segments\OrderBy $segment)
 {
     $staticOrderings = [];
     foreach ($segment->getOrderings() as $key => $ordering) {
         $staticOrderings[$key] = new StaticOrdering($ordering->getProjectionFunction(), $this->parameters->getResolvedParameters()[$ordering->getIsAscendingId()]);
     }
     return parent::visitOrderBy($segment->update($staticOrderings));
 }
コード例 #3
0
ファイル: ScopeProcessor.php プロジェクト: timetoogo/pinq
 public function visitOrderBy(Segments\OrderBy $segment)
 {
     $orderings = [];
     foreach ($segment->getOrderings() as $key => $ordering) {
         $orderings[$key] = $ordering->update($this->expressionProcessor->processFunction($ordering->getProjectionFunction()));
     }
     return parent::visitOrderBy($segment->update($orderings));
 }