Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
ObjectsConditionParser.php
Go to the documentation of this file.
1<?php
2
4
6
8
18 protected $objects;
19
20 public function __construct() {
21 $this->conditionParser = new ConditionParser ();
22 $this->objects = [ ];
23 }
24
25 public function addPartObject($object, $condition, $value) {
26 $this->objects [] = $object;
27 return $this->conditionParser->addPart ( $condition, $value );
28 }
29
35 return $this->conditionParser;
36 }
37
42 public function getObjects(): array {
43 return $this->objects;
44 }
45
46 public function hasParam($value): bool {
47 return $this->conditionParser->hasParam ( $value );
48 }
49
50 public function compileParts($separator = ' OR '): void {
51 $this->conditionParser->compileParts ( $separator );
52 }
53
54 public function addObject($object): void {
55 $this->objects [] = $object;
56 }
57
58 public function isFull(): bool {
59 return $this->conditionParser->countParts () >= PendingRelationsRequest::$MAX_ROW_COUNT;
60 }
61}
62
Represents a query condition.