ILIAS  release_7 Revision v7.30-3-g800a261c036
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
 asSQLStatement (ActiveRecord $ar)
 
 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

◆ asSQLStatement()

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

Reimplemented from arStatement.

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

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

References getAs(), and getFields().

+ Here is the call graph for this function:

◆ getAs()

arConcat::getAs ( )
Returns
string

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

39 {
40 return $this->as;
41 }

References $as.

Referenced by asSQLStatement().

+ Here is the caller graph for this function:

◆ getFields()

arConcat::getFields ( )
Returns
array

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

57 {
58 return $this->fields;
59 }

References $fields.

Referenced by asSQLStatement().

+ Here is the caller graph for this function:

◆ setAs()

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

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

48 {
49 $this->as = $as;
50 }

References $as.

◆ setFields()

arConcat::setFields (   $fields)
Parameters
array$fields

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

66 {
67 $this->fields = $fields;
68 }
$errors fields
Definition: imgupload.php:51

References $fields, and fields.

Field Documentation

◆ $as

arConcat::$as = ''
protected

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

Referenced by getAs(), and setAs().

◆ $fields

arConcat::$fields = array()
protected

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

Referenced by getFields(), and setFields().


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