Jackalope\Query\QOM\QueryObjectModel::__construct PHP Метод

__construct() публичный Метод

Constructor
public __construct ( Jackalope\FactoryInterface $factory, ObjectManager $objectManager = null, PHPCR\Query\QOM\SourceInterface $source, PHPCR\Query\QOM\ConstraintInterface $constraint = null, array $orderings, array $columns )
$factory Jackalope\FactoryInterface the object factory
$objectManager Jackalope\ObjectManager (can be omitted if you do not want to execute the query but just use it with a parser)
$source PHPCR\Query\QOM\SourceInterface
$constraint PHPCR\Query\QOM\ConstraintInterface
$orderings array
$columns array
    public function __construct(FactoryInterface $factory, ObjectManager $objectManager = null, SourceInterface $source, ConstraintInterface $constraint = null, array $orderings, array $columns)
    {
        foreach ($orderings as $o) {
            if (!$o instanceof OrderingInterface) {
                throw new \InvalidArgumentException('Not a valid ordering: ' . $o);
            }
        }
        foreach ($columns as $c) {
            if (!$c instanceof ColumnInterface) {
                throw new \InvalidArgumentException('Not a valid column: ' . $c);
            }
        }
        parent::__construct($factory, '', $objectManager);
        $this->source = $source;
        $this->constraint = $constraint;
        $this->orderings = $orderings;
        $this->columns = $columns;
    }