ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ 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
{
13
17
protected
$table_name
=
''
;
21
protected
$as
=
''
;
25
protected
$field_name
=
''
;
26
27
33
public
function
asSQLStatement
(
ActiveRecord
$ar)
34
{
35
$return =
''
;
36
if
($this->
getTableName
()) {
37
$return .= $this->
getTableName
() .
'.'
;
38
}
39
$return .= $this->
getFieldName
();
40
if
($this->
getAs
() and $this->
getFieldName
() !=
'*'
) {
41
$return .=
' AS '
. $this->
getAs
();
42
}
43
44
return
$return;
45
}
46
47
51
public
function
getTableName
()
52
{
53
return
$this->table_name
;
54
}
55
56
60
public
function
setTableName
(
$table_name
)
61
{
62
$this->table_name =
$table_name
;
63
}
64
65
69
public
function
getAs
()
70
{
71
return
$this->as
;
72
}
73
74
78
public
function
setAs
(
$as
)
79
{
80
$this->as =
$as
;
81
}
82
83
87
public
function
getFieldName
()
88
{
89
return
$this->field_name
;
90
}
91
92
96
public
function
setFieldName
(
$field_name
)
97
{
98
$this->field_name =
$field_name
;
99
}
100
}
arSelect\$field_name
$field_name
Definition:
class.arSelect.php:25
arSelect\getFieldName
getFieldName()
Definition:
class.arSelect.php:87
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:60
arSelect
Class arSelect.
Definition:
class.arSelect.php:11
arSelect\setAs
setAs($as)
Definition:
class.arSelect.php:78
arSelect\$table_name
$table_name
Definition:
class.arSelect.php:17
arSelect\getAs
getAs()
Definition:
class.arSelect.php:69
arSelect\$as
$as
Definition:
class.arSelect.php:21
arSelect\setFieldName
setFieldName($field_name)
Definition:
class.arSelect.php:96
arSelect\getTableName
getTableName()
Definition:
class.arSelect.php:51
arSelect\asSQLStatement
asSQLStatement(ActiveRecord $ar)
Definition:
class.arSelect.php:33
Services
ActiveRecord
Connector
Select
class.arSelect.php
Generated on Sat Jan 18 2025 19:01:25 for ILIAS by
1.8.13 (using
Doxyfile
)