ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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)
 
 asORACLEStatement (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

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

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

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  }
+ Here is the call graph for this function:

◆ getAs()

arSelect::getAs ( )
Returns
array

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

References $as.

Referenced by asSQLStatement().

70  {
71  return $this->as;
72  }
+ Here is the caller graph for this function:

◆ getFieldName()

arSelect::getFieldName ( )
Returns
string

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

References $field_name.

Referenced by asSQLStatement().

88  {
89  return $this->field_name;
90  }
+ Here is the caller graph for this function:

◆ getTableName()

arSelect::getTableName ( )
Returns
string

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

References $table_name.

Referenced by asSQLStatement().

52  {
53  return $this->table_name;
54  }
+ Here is the caller graph for this function:

◆ setAs()

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

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

References $as.

79  {
80  $this->as = $as;
81  }

◆ setFieldName()

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

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

References $field_name.

97  {
98  $this->field_name = $field_name;
99  }

◆ setTableName()

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

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

References $table_name.

61  {
62  $this->table_name = $table_name;
63  }

Field Documentation

◆ $as

arSelect::$as = ''
protected

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

Referenced by getAs(), and setAs().

◆ $field_name

arSelect::$field_name = ''
protected

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

Referenced by getFieldName(), and setFieldName().

◆ $table_name

arSelect::$table_name = ''
protected

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

Referenced by getTableName(), and setTableName().


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