ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 29 of file class.arConcat.php.

References getAs(), and getFields().

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

◆ getAs()

arConcat::getAs ( )
Returns
string

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

References $as.

Referenced by asSQLStatement().

39  {
40  return $this->as;
41  }
+ Here is the caller graph for this function:

◆ getFields()

arConcat::getFields ( )
Returns
array

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

References $fields.

Referenced by asSQLStatement().

57  {
58  return $this->fields;
59  }
+ Here is the caller graph for this function:

◆ setAs()

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

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

References $as.

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

◆ setFields()

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

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

References $fields, and fields.

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

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: