ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ 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
{
12
16
protected
$table_name
=
''
;
20
protected
$fieldname
=
''
;
24
protected
$value
;
28
protected
$operator =
'='
;
32
protected
$statement
=
''
;
36
protected
$glue
=
'AND'
;
37
38
47
public
function
asSQLStatement
(
ActiveRecord
$ar)
48
{
49
$statement
=
''
;
50
if
($this->
getTableName
()) {
51
$statement
.= $this->
getTableName
() .
'.'
;
52
}
53
$statement
.= $this->
getFieldname
() .
' '
. $this->
getOperator
() .
' "'
. $this->
getValue
() .
'"'
;
54
$this->
setStatement
(
$statement
);
55
56
return
$this->
getStatement
();
57
}
58
59
63
public
function
getFieldname
()
64
{
65
return
$this->fieldname
;
66
}
67
68
72
public
function
setFieldname
(
$fieldname
)
73
{
74
$this->fieldname =
$fieldname
;
75
}
76
77
81
public
function
getValue
()
82
{
83
return
$this->value
;
84
}
85
86
90
public
function
setValue
(
$value
)
91
{
92
$this->value =
$value
;
93
}
94
95
99
public
function
getOperator
()
100
{
101
return
$this->operator;
102
}
103
104
108
public
function
setOperator
($operator)
109
{
110
$this->
operator
= $operator;
111
}
112
113
117
public
function
getStatement
()
118
{
119
return
$this->statement
;
120
}
121
122
126
public
function
setStatement
(
$statement
)
127
{
128
$this->statement =
$statement
;
129
}
130
131
135
public
function
getGlue
()
136
{
137
return
$this->glue
;
138
}
139
140
144
public
function
setGlue
(
$glue
)
145
{
146
$this->glue =
$glue
;
147
}
148
149
153
public
function
getTableName
()
154
{
155
return
$this->table_name
;
156
}
157
158
162
public
function
setTableName
(
$table_name
)
163
{
164
$this->table_name =
$table_name
;
165
}
166
}
ActiveRecord
Class ActiveRecord.
Definition:
class.ActiveRecord.php:24
arHaving\setStatement
setStatement($statement)
Definition:
class.arHaving.php:126
arHaving\setOperator
setOperator($operator)
Definition:
class.arHaving.php:108
arHaving\getGlue
getGlue()
Definition:
class.arHaving.php:135
arHaving\setGlue
setGlue($glue)
Definition:
class.arHaving.php:144
arHaving\asSQLStatement
asSQLStatement(ActiveRecord $ar)
Build WHERE Statement
Definition:
class.arHaving.php:47
arStatement
Class arStatement.
Definition:
class.arStatement.php:10
arHaving\getValue
getValue()
Definition:
class.arHaving.php:81
arHaving\$table_name
$table_name
Definition:
class.arHaving.php:16
arHaving\getOperator
getOperator()
Definition:
class.arHaving.php:99
arHaving\setFieldname
setFieldname($fieldname)
Definition:
class.arHaving.php:72
arHaving\setTableName
setTableName($table_name)
Definition:
class.arHaving.php:162
arHaving\getStatement
getStatement()
Definition:
class.arHaving.php:117
arHaving\$glue
$glue
Definition:
class.arHaving.php:36
arHaving
Class arHaving.
Definition:
class.arHaving.php:10
arHaving\$fieldname
$fieldname
Definition:
class.arHaving.php:20
arHaving\getFieldname
getFieldname()
Definition:
class.arHaving.php:63
arHaving\$value
$value
Definition:
class.arHaving.php:24
arHaving\$statement
$statement
Definition:
class.arHaving.php:32
arHaving\getTableName
getTableName()
Definition:
class.arHaving.php:153
arHaving\setValue
setValue($value)
Definition:
class.arHaving.php:90
Services
ActiveRecord
Connector
Having
class.arHaving.php
Generated on Sat Jan 18 2025 19:01:25 for ILIAS by
1.8.13 (using
Doxyfile
)