ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
arConcat Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

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

Public Member Functions

 asSQLStatement (ActiveRecord $activeRecord, ilDBInterface $db)
 
 getAs ()
 
 setAs (string $as)
 
 getFields ()
 
 setFields (array $fields)
 
- Public Member Functions inherited from arStatement
 asSQLStatement (ActiveRecord $activeRecord, ilDBInterface $db)
 
 getTableNameAs ()
 
 setTableNameAs (string $table_name_as)
 

Protected Attributes

string $as = ''
 
array $fields = []
 
- Protected Attributes inherited from arStatement
string $table_name_as = ''
 

Additional Inherited Members

- Protected Member Functions inherited from arStatement
 wrapFields (array $fields, ilDBInterface $db)
 
 wrapField (string $field, ilDBInterface $db)
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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 24 of file class.arConcat.php.

Member Function Documentation

◆ asSQLStatement()

arConcat::asSQLStatement ( ActiveRecord  $activeRecord,
ilDBInterface  $db 
)

Reimplemented from arStatement.

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

29 : string
30 {
31 $fields = $this->wrapFields($this->getFields(), $db);
32
33 return ' CONCAT(' . implode(', ', $fields) . ') AS ' . $this->getAs();
34 }
array $fields
wrapFields(array $fields, ilDBInterface $db)

References $fields, getAs(), getFields(), and arStatement\wrapFields().

+ Here is the call graph for this function:

◆ getAs()

arConcat::getAs ( )

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

36 : string
37 {
38 return $this->as;
39 }
string $as

References $as.

Referenced by asSQLStatement().

+ Here is the caller graph for this function:

◆ getFields()

arConcat::getFields ( )
Returns
mixed[]

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

49 : array
50 {
51 return $this->fields;
52 }

References $fields.

Referenced by asSQLStatement().

+ Here is the caller graph for this function:

◆ setAs()

arConcat::setAs ( string  $as)

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

41 : void
42 {
43 $this->as = $as;
44 }

References $as.

◆ setFields()

arConcat::setFields ( array  $fields)
Parameters
mixed[]$fields

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

57 : void
58 {
59 $this->fields = $fields;
60 }

References $fields.

Field Documentation

◆ $as

string arConcat::$as = ''
protected

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

Referenced by getAs(), and setAs().

◆ $fields


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