ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
arSelect Class Reference

Class arSelect. More...

+ Inheritance diagram for arSelect:
+ Collaboration diagram for arSelect:

Public Member Functions

 asSQLStatement (ActiveRecord $ar)
 
 getTableName ()
 
 setTableName ($table_name)
 
 getAs ()
 
 setAs ($as)
 
 getFieldName ()
 
 setFieldName ($field_name)
 
- Public Member Functions inherited from arStatement
 asSQLStatement (ActiveRecord $ar)
 
 getTableNameAs ()
 
 setTableNameAs ($table_name_as)
 

Protected Attributes

 $table_name = ''
 
 $as = ''
 
 $field_name = ''
 
- Protected Attributes inherited from arStatement
 $table_name_as = ''
 

Detailed Description

Class arSelect.

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Version
2.0.7

Definition at line 11 of file class.arSelect.php.

Member Function Documentation

◆ asSQLStatement()

arSelect::asSQLStatement ( ActiveRecord  $ar)
Parameters
ActiveRecord$ar
Returns
string

Reimplemented from arStatement.

Definition at line 32 of file class.arSelect.php.

32 {
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 }

References getAs(), getFieldName(), and getTableName().

+ Here is the call graph for this function:

◆ getAs()

arSelect::getAs ( )
Returns
array

Definition at line 65 of file class.arSelect.php.

65 {
66 return $this->as;
67 }

References $as.

Referenced by asSQLStatement().

+ Here is the caller graph for this function:

◆ getFieldName()

arSelect::getFieldName ( )
Returns
string

Definition at line 81 of file class.arSelect.php.

81 {
82 return $this->field_name;
83 }

References $field_name.

Referenced by asSQLStatement().

+ Here is the caller graph for this function:

◆ getTableName()

arSelect::getTableName ( )
Returns
string

Definition at line 49 of file class.arSelect.php.

49 {
50 return $this->table_name;
51 }

References $table_name.

Referenced by asSQLStatement().

+ Here is the caller graph for this function:

◆ setAs()

arSelect::setAs (   $as)
Parameters
array$as

Definition at line 73 of file class.arSelect.php.

73 {
74 $this->as = $as;
75 }

References $as.

◆ setFieldName()

arSelect::setFieldName (   $field_name)
Parameters
string$field_name

Definition at line 89 of file class.arSelect.php.

89 {
90 $this->field_name = $field_name;
91 }

References $field_name.

◆ setTableName()

arSelect::setTableName (   $table_name)
Parameters
string$table_name

Definition at line 57 of file class.arSelect.php.

57 {
58 $this->table_name = $table_name;
59 }

References $table_name.

Field Documentation

◆ $as

arSelect::$as = ''
protected

Definition at line 20 of file class.arSelect.php.

Referenced by getAs(), and setAs().

◆ $field_name

arSelect::$field_name = ''
protected

Definition at line 24 of file class.arSelect.php.

Referenced by getFieldName(), and setFieldName().

◆ $table_name

arSelect::$table_name = ''
protected

Definition at line 16 of file class.arSelect.php.

Referenced by getTableName(), and setTableName().


The documentation for this class was generated from the following file: