Author: Elliot Levin (elliotlevin@hotmail.com)
Inheritance: extends ProjectionBase
Exemple #1
0
 /**
  * @param IFunction $function
  *
  * @return Functions\ElementProjection
  */
 protected final function buildElementProjection(IFunction $function)
 {
     return $this->buildFunction($function, Functions\ElementProjection::factory());
 }
Exemple #2
0
 public function getParameters()
 {
     return $this->predicateFunction->getParameterIds();
 }
Exemple #3
0
 public function interpretRemoveWhere($operationId, IFunction $function)
 {
     $this->operation = new Operations\RemoveWhere($this->buildFunction($function, Functions\ElementProjection::factory()));
 }
 /**
  * @return callable
  */
 protected function functionFactory()
 {
     return Functions\ElementProjection::factory();
 }
 public function getParameters()
 {
     return $this->projectionFunction === null ? [] : $this->projectionFunction->getParameterIds();
 }
Exemple #6
0
 /**
  * @return string[]
  */
 public function getParameters()
 {
     return array_merge([$this->isAscendingId], $this->projectionFunction->getParameterIds());
 }
Exemple #7
0
 protected function buildOptionalProjection(IFunction $function = null)
 {
     if ($function === null) {
         return null;
     }
     return $this->buildFunction($function, Queries\Functions\ElementProjection::factory());
 }
Exemple #8
0
 public function interpretEqualityJoinFilter(IFunction $outerProjection, IFunction $innerProjection)
 {
     $this->joinFilter = new Join\Filter\Equality($this->buildFunction($outerProjection, Functions\ElementProjection::factory()), $this->buildFunction($innerProjection, Functions\ElementProjection::factory()));
 }
Exemple #9
0
 public function walk(O\ExpressionWalker $walker)
 {
     return $this->update($this->outerKeyFunction->walk($walker), $this->innerKeyFunction->walk($walker));
 }