ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
class.arSelect.php
Go to the documentation of this file.
1
<?
php
2
require_once(dirname(__FILE__) .
'/../Statement/class.arStatement.php'
);
3
11
class
arSelect
extends
arStatement
{
12
16
protected
$table_name
=
''
;
20
protected
$as
=
''
;
24
protected
$field_name
=
''
;
25
26
32
public
function
asSQLStatement
(
ActiveRecord
$ar) {
33
$return =
''
;
34
if
($this->
getTableName
()) {
35
$return .= $this->
getTableName
() .
'.'
;
36
}
37
$return .= $this->
getFieldName
();
38
if
($this->
getAs
() AND $this->
getFieldName
() !=
'*'
) {
39
$return .=
' AS '
. $this->
getAs
();
40
}
41
42
return
$return;
43
}
44
45
49
public
function
getTableName
() {
50
return
$this->table_name
;
51
}
52
53
57
public
function
setTableName
(
$table_name
) {
58
$this->table_name =
$table_name
;
59
}
60
61
65
public
function
getAs
() {
66
return
$this->as
;
67
}
68
69
73
public
function
setAs
(
$as
) {
74
$this->as =
$as
;
75
}
76
77
81
public
function
getFieldName
() {
82
return
$this->field_name
;
83
}
84
85
89
public
function
setFieldName
(
$field_name
) {
90
$this->field_name =
$field_name
;
91
}
92
}
93
94
?>
arSelect\$field_name
$field_name
Definition:
class.arSelect.php:24
arSelect\getFieldName
getFieldName()
Definition:
class.arSelect.php:81
ActiveRecord
Class ActiveRecord.
Definition:
class.ActiveRecord.php:24
arStatement
Class arStatement.
Definition:
class.arStatement.php:10
arSelect\setTableName
setTableName($table_name)
Definition:
class.arSelect.php:57
arSelect
Class arSelect.
Definition:
class.arSelect.php:11
arSelect\setAs
setAs($as)
Definition:
class.arSelect.php:73
arSelect\$table_name
$table_name
Definition:
class.arSelect.php:16
arSelect\getAs
getAs()
Definition:
class.arSelect.php:65
arSelect\$as
$as
Definition:
class.arSelect.php:20
php
arSelect\setFieldName
setFieldName($field_name)
Definition:
class.arSelect.php:89
arSelect\getTableName
getTableName()
Definition:
class.arSelect.php:49
arSelect\asSQLStatement
asSQLStatement(ActiveRecord $ar)
Definition:
class.arSelect.php:32
Services
ActiveRecord
Connector
Select
class.arSelect.php
Generated on Fri Feb 21 2025 19:01:07 for ILIAS by
1.8.13 (using
Doxyfile
)