Ubiquity
2.5.2
php rapid development framework
Loading...
Searching...
No Matches
ObjectsConditionParser.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ubiquity\orm\core
;
4
5
use
Ubiquity\orm\parser\ConditionParser
;
6
7
class
ObjectsConditionParser
{
8
13
protected
$conditionParser
;
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
34
public
function
getConditionParser
():
ConditionParser
{
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
Ubiquity\orm\core\ObjectsConditionParser
Definition
ObjectsConditionParser.php:7
Ubiquity\orm\core\ObjectsConditionParser\isFull
isFull()
Definition
ObjectsConditionParser.php:58
Ubiquity\orm\core\ObjectsConditionParser\__construct
__construct()
Definition
ObjectsConditionParser.php:20
Ubiquity\orm\core\ObjectsConditionParser\getConditionParser
getConditionParser()
Definition
ObjectsConditionParser.php:34
Ubiquity\orm\core\ObjectsConditionParser\$objects
$objects
Definition
ObjectsConditionParser.php:18
Ubiquity\orm\core\ObjectsConditionParser\compileParts
compileParts($separator=' OR ')
Definition
ObjectsConditionParser.php:50
Ubiquity\orm\core\ObjectsConditionParser\getObjects
getObjects()
Definition
ObjectsConditionParser.php:42
Ubiquity\orm\core\ObjectsConditionParser\hasParam
hasParam($value)
Definition
ObjectsConditionParser.php:46
Ubiquity\orm\core\ObjectsConditionParser\addPartObject
addPartObject($object, $condition, $value)
Definition
ObjectsConditionParser.php:25
Ubiquity\orm\core\ObjectsConditionParser\addObject
addObject($object)
Definition
ObjectsConditionParser.php:54
Ubiquity\orm\core\ObjectsConditionParser\$conditionParser
$conditionParser
Definition
ObjectsConditionParser.php:13
Ubiquity\orm\core\PendingRelationsRequest
Definition
PendingRelationsRequest.php:5
Ubiquity\orm\parser\ConditionParser
Represents a query condition.
Definition
ConditionParser.php:17
Ubiquity\orm\core
Definition
ObjectsConditionParser.php:3
C:
Users
myadd
Documents
GitHub
ubiquity-doc-api
vendor
phpmv
ubiquity
src
Ubiquity
orm
core
ObjectsConditionParser.php
Generated on Sun Dec 10 2023 15:04:23 for
Ubiquity
by
doxygen
1.9.8