from() публичный статический Метод

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
Результат OperationQueryProcessor | RequestQueryProcessor
Пример #1
0
 public static function factory($prefix)
 {
     return function (Queries\IQuery $query) use($prefix) {
         return Expression\ProcessorFactory::from($query, new self($prefix));
     };
 }
 /**
  * @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();
 }
 /**
  * @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();
 }