from() public static method

Builds a query processor from the supplied query.
public static from ( Pinq\Queries\IQuery $query, Pinq\Providers\DSL\Compilation\Processors\Expression\IExpressionProcessor $expressionProcessor ) : OperationQueryProcessor | RequestQueryProcessor
$query Pinq\Queries\IQuery
$expressionProcessor Pinq\Providers\DSL\Compilation\Processors\Expression\IExpressionProcessor
return OperationQueryProcessor | RequestQueryProcessor
コード例 #1
0
 public static function factory($prefix)
 {
     return function (Queries\IQuery $query) use($prefix) {
         return Expression\ProcessorFactory::from($query, new self($prefix));
     };
 }
コード例 #2
0
 /**
  * @param ParameterCollection            $parameters
  * @param Queries\IQuery                 $query
  * @param IStructuralExpressionProcessor $processor
  *
  * @return void
  */
 public static function processQuery(ParameterCollection $parameters, Queries\IQuery $query, IStructuralExpressionProcessor $processor)
 {
     $processor = Expression\ProcessorFactory::from($query, new self($parameters, $processor));
     $processor->buildQuery();
 }
コード例 #3
0
 /**
  * @param ResolvedParameterRegistry      $parameters
  * @param Queries\IQuery                 $query
  * @param IStructuralExpressionProcessor $processor
  *
  * @return Queries\IOperationQuery|Queries\IRequestQuery
  */
 public static function processQuery(ResolvedParameterRegistry $parameters, Queries\IQuery $query, IStructuralExpressionProcessor $processor)
 {
     $processor = Expression\ProcessorFactory::from($query, new self($parameters, $processor));
     return $processor->buildQuery();
 }