appendFunction() public method

public appendFunction ( Pinq\Queries\Functions\IFunction $function )
$function Pinq\Queries\Functions\IFunction
コード例 #1
0
ファイル: RequestCompiler.php プロジェクト: timetoogo/pinq
 protected function appendOptionalProjection($string, Requests\ProjectionRequestBase $request)
 {
     $this->compilation->append($string);
     if ($request->hasProjectionFunction()) {
         $this->compilation->append(' according to the function: ');
         $this->compilation->appendFunction($request->getProjectionFunction());
     }
 }
コード例 #2
0
ファイル: ScopeCompiler.php プロジェクト: timetoogo/pinq
 public function visitJoin(Segments\Join $query)
 {
     $this->compilation->append('Join with: ');
     $this->compilation->appendJoinOptions($query->getOptions());
     $this->compilation->append(' and correlate the values according to: ');
     $this->compilation->appendFunction($query->getJoiningFunction());
     $this->compilation->appendLine();
 }
コード例 #3
0
ファイル: OperationCompiler.php プロジェクト: timetoogo/pinq
 public function visitRemoveWhere(Operations\RemoveWhere $operation)
 {
     $this->compilation->append('Remove the elements according to: ');
     $this->compilation->appendFunction($operation->getPredicateFunction());
 }