ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 32 of file class.arSelect.php.

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

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

◆ getAs()

arSelect::getAs ( )
Returns
array

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

References $as.

Referenced by asSQLStatement().

65  {
66  return $this->as;
67  }
+ Here is the caller graph for this function:

◆ getFieldName()

arSelect::getFieldName ( )
Returns
string

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

References $field_name.

Referenced by asSQLStatement().

81  {
82  return $this->field_name;
83  }
+ Here is the caller graph for this function:

◆ getTableName()

arSelect::getTableName ( )
Returns
string

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

References $table_name.

Referenced by asSQLStatement().

49  {
50  return $this->table_name;
51  }
+ Here is the caller graph for this function:

◆ setAs()

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

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

References $as.

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

◆ setFieldName()

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

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

References $field_name.

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

◆ setTableName()

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

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

References $table_name.

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

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: