ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
arConcat Class Reference

Class arConcat. More...

+ Inheritance diagram for arConcat:
+ Collaboration diagram for arConcat:

Public Member Functions

 asSQLStatement (ActiveRecord $ar)
 getAs ()
 setAs ($as)
 getFields ()
 setFields ($fields)
- Public Member Functions inherited from arStatement
 getTableNameAs ()
 setTableNameAs ($table_name_as)

Protected Attributes

 $as = ''
 $fields = array()
- Protected Attributes inherited from arStatement
 $table_name_as = ''

Detailed Description

Class arConcat.

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.arConcat.php.

Member Function Documentation

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

Reimplemented from arStatement.

Definition at line 28 of file class.arConcat.php.

References getAs(), and getFields().

{
return ' CONCAT(' . implode(', ', $this->getFields()) . ') AS ' . $this->getAs();
}

+ Here is the call graph for this function:

arConcat::getAs ( )
Returns
string

Definition at line 36 of file class.arConcat.php.

References $as.

Referenced by asSQLStatement().

{
return $this->as;
}

+ Here is the caller graph for this function:

arConcat::getFields ( )
Returns
array

Definition at line 52 of file class.arConcat.php.

References $fields.

Referenced by asSQLStatement().

{
return $this->fields;
}

+ Here is the caller graph for this function:

arConcat::setAs (   $as)
Parameters
string$as

Definition at line 44 of file class.arConcat.php.

References $as.

{
$this->as = $as;
}
arConcat::setFields (   $fields)
Parameters
array$fields

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

References $fields, and fields.

{
$this->fields = $fields;
}

Field Documentation

arConcat::$as = ''
protected

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

Referenced by getAs(), and setAs().

arConcat::$fields = array()
protected

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

Referenced by getFields(), and setFields().


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