ILIAS  release_5-2 Revision v5.2.25-18-g3f80b82851
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)
 
 asORACLEStatement (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

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

References getAs(), and getFields().

28  {
29  return ' CONCAT(' . implode(', ', $this->getFields()) . ') AS ' . $this->getAs();
30  }
+ Here is the call graph for this function:

◆ getAs()

arConcat::getAs ( )
Returns
string

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

References $as.

Referenced by asSQLStatement().

36  {
37  return $this->as;
38  }
+ Here is the caller graph for this function:

◆ getFields()

arConcat::getFields ( )
Returns
array

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

References $fields.

Referenced by asSQLStatement().

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

◆ setAs()

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

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

References $as.

44  {
45  $this->as = $as;
46  }

◆ setFields()

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

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

References $fields, and fields.

60  {
61  $this->fields = $fields;
62  }
$errors fields
Definition: imgupload.php:52

Field Documentation

◆ $as

arConcat::$as = ''
protected

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

Referenced by getAs(), and setAs().

◆ $fields

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: