ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
class.arHaving.php
Go to the documentation of this file.
1
<?
php
2
require_once(dirname(__FILE__) .
'/../Statement/class.arStatement.php'
);
3
10
class
arHaving
extends
arStatement
{
11
15
protected
$table_name
=
''
;
19
protected
$fieldname
=
''
;
23
protected
$value
;
27
protected
$operator =
'='
;
31
protected
$statement
=
''
;
35
protected
$glue
=
'AND'
;
36
37
46
public
function
asSQLStatement
(
ActiveRecord
$ar) {
47
$statement
=
''
;
48
if
($this->
getTableName
()) {
49
$statement
.= $this->
getTableName
() .
'.'
;
50
}
51
$statement
.= $this->
getFieldname
() .
' '
. $this->
getOperator
() .
' "'
. $this->
getValue
().
'"'
;
52
$this->
setStatement
(
$statement
);
53
54
return
$this->
getStatement
();
55
}
56
57
61
public
function
getFieldname
() {
62
return
$this->fieldname
;
63
}
64
65
69
public
function
setFieldname
(
$fieldname
) {
70
$this->fieldname =
$fieldname
;
71
}
72
73
77
public
function
getValue
() {
78
return
$this->value
;
79
}
80
81
85
public
function
setValue
(
$value
) {
86
$this->value =
$value
;
87
}
88
89
93
public
function
getOperator
() {
94
return
$this->operator;
95
}
96
97
101
public
function
setOperator
($operator) {
102
$this->
operator
= $operator;
103
}
104
105
109
public
function
getStatement
() {
110
return
$this->statement
;
111
}
112
113
117
public
function
setStatement
(
$statement
) {
118
$this->statement =
$statement
;
119
}
120
121
125
public
function
getGlue
() {
126
return
$this->glue
;
127
}
128
129
133
public
function
setGlue
(
$glue
) {
134
$this->glue =
$glue
;
135
}
136
137
141
public
function
getTableName
() {
142
return
$this->table_name
;
143
}
144
145
149
public
function
setTableName
(
$table_name
) {
150
$this->table_name =
$table_name
;
151
}
152
}
153
154
?>
ActiveRecord
Class ActiveRecord.
Definition:
class.ActiveRecord.php:24
arHaving\setStatement
setStatement($statement)
Definition:
class.arHaving.php:117
arHaving\setOperator
setOperator($operator)
Definition:
class.arHaving.php:101
arHaving\getGlue
getGlue()
Definition:
class.arHaving.php:125
arHaving\setGlue
setGlue($glue)
Definition:
class.arHaving.php:133
arHaving\asSQLStatement
asSQLStatement(ActiveRecord $ar)
Build WHERE Statement
Definition:
class.arHaving.php:46
arStatement
Class arStatement.
Definition:
class.arStatement.php:10
arHaving\getValue
getValue()
Definition:
class.arHaving.php:77
arHaving\$table_name
$table_name
Definition:
class.arHaving.php:15
arHaving\getOperator
getOperator()
Definition:
class.arHaving.php:93
arHaving\setFieldname
setFieldname($fieldname)
Definition:
class.arHaving.php:69
arHaving\setTableName
setTableName($table_name)
Definition:
class.arHaving.php:149
arHaving\getStatement
getStatement()
Definition:
class.arHaving.php:109
arHaving\$glue
$glue
Definition:
class.arHaving.php:35
arHaving
Class arHaving.
Definition:
class.arHaving.php:10
arHaving\$fieldname
$fieldname
Definition:
class.arHaving.php:19
arHaving\getFieldname
getFieldname()
Definition:
class.arHaving.php:61
php
arHaving\$value
$value
Definition:
class.arHaving.php:23
arHaving\$statement
$statement
Definition:
class.arHaving.php:31
arHaving\getTableName
getTableName()
Definition:
class.arHaving.php:141
arHaving\setValue
setValue($value)
Definition:
class.arHaving.php:85
Services
ActiveRecord
Connector
Having
class.arHaving.php
Generated on Fri Jan 17 2025 19:01:07 for ILIAS by
1.8.13 (using
Doxyfile
)