ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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
 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

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

Reimplemented from arStatement.

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

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

{
$return = '';
if ($this->getTableName()) {
$return .= $this->getTableName() . '.';
}
$return .= $this->getFieldName();
if ($this->getAs() AND $this->getFieldName() != '*') {
$return .= ' AS ' . $this->getAs();
}
return $return;
}

+ Here is the call graph for this function:

arSelect::getAs ( )
Returns
array

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

References $as.

Referenced by asSQLStatement().

{
return $this->as;
}

+ Here is the caller graph for this function:

arSelect::getFieldName ( )
Returns
string

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

References $field_name.

Referenced by asSQLStatement().

{
}

+ Here is the caller graph for this function:

arSelect::getTableName ( )
Returns
string

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

References $table_name.

Referenced by asSQLStatement().

{
}

+ Here is the caller graph for this function:

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

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

References $as.

{
$this->as = $as;
}
arSelect::setFieldName (   $field_name)
Parameters
string$field_name

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

References $field_name.

{
$this->field_name = $field_name;
}
arSelect::setTableName (   $table_name)
Parameters
string$table_name

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

References $table_name.

{
$this->table_name = $table_name;
}

Field Documentation

arSelect::$as = ''
protected

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

Referenced by getAs(), and setAs().

arSelect::$field_name = ''
protected

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

Referenced by getFieldName(), and setFieldName().

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: