Author: Elliot Levin (elliotlevin@hotmail.com)
Inheritance: extends Pinq\Queries\Segments\SegmentVisitor
Exemple #1
0
 public function evaluateScope(Queries\IScope $scope, Queries\IResolvedParameterRegistry $resolvedParameters)
 {
     $scopeHash = $this->scopeHash($scope, $resolvedParameters);
     if (!isset($this->traversableCache[$scopeHash])) {
         $this->traversableCache[$scopeHash] = ScopeEvaluator::evaluate($scope, $resolvedParameters);
     }
     return $this->traversableCache[$scopeHash];
 }
 public function visitRemoveValues(Operations\RemoveValues $operation)
 {
     $this->collection->removeRange(Traversable\ScopeEvaluator::evaluateSource($operation->getSource(), $this->parameters));
 }