コード例 #1
0
ファイル: ScopeParser.php プロジェクト: timetoogo/pinq
 /**
  * @param IFunction $function
  *
  * @return Functions\ElementProjection
  */
 protected final function buildElementProjection(IFunction $function)
 {
     return $this->buildFunction($function, Functions\ElementProjection::factory());
 }
コード例 #2
0
 /**
  * @return callable
  */
 protected function functionFactory()
 {
     return Functions\ElementProjection::factory();
 }
コード例 #3
0
ファイル: RequestParser.php プロジェクト: timetoogo/pinq
 protected function buildOptionalProjection(IFunction $function = null)
 {
     if ($function === null) {
         return null;
     }
     return $this->buildFunction($function, Queries\Functions\ElementProjection::factory());
 }
コード例 #4
0
ファイル: OperationParser.php プロジェクト: timetoogo/pinq
 public function interpretRemoveWhere($operationId, IFunction $function)
 {
     $this->operation = new Operations\RemoveWhere($this->buildFunction($function, Functions\ElementProjection::factory()));
 }
コード例 #5
0
ファイル: JoinOptionsParser.php プロジェクト: timetoogo/pinq
 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()));
 }