ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
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 
)

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

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

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

◆ getAs()

arConcat::getAs ( )

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

References $as.

Referenced by asSQLStatement().

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

◆ getFields()

arConcat::getFields ( )
Returns
mixed[]

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

References $fields.

Referenced by asSQLStatement().

49  : array
50  {
51  return $this->fields;
52  }
array $fields
+ Here is the caller graph for this function:

◆ setAs()

arConcat::setAs ( string  $as)

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

References $as.

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

◆ setFields()

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

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

References $fields.

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

Field Documentation

◆ $as

string arConcat::$as = ''
protected

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

Referenced by getAs(), and setAs().

◆ $fields

array arConcat::$fields = []
protected

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

Referenced by getFields(), and setFields().


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