ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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 32 of file class.arConcat.php.

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

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

◆ getAs()

arConcat::getAs ( )

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

References $as.

Referenced by asSQLStatement().

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

◆ getFields()

arConcat::getFields ( )

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 44 of file class.arConcat.php.

References $as.

44  : void
45  {
46  $this->as = $as;
47  }
string $as

◆ setFields()

arConcat::setFields ( array  $fields)

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

References $fields, and fields.

54  : void
55  {
56  $this->fields = $fields;
57  }
$errors fields
Definition: imgupload.php:67
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 30 of file class.arConcat.php.

Referenced by getFields(), and setFields().


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