ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.arConcat.php
Go to the documentation of this file.
1 <?php
2 require_once(dirname(__FILE__) . '/../Statement/class.arStatement.php');
3 
11 class arConcat extends arStatement
12 {
13 
17  protected $as = '';
21  protected $fields = array();
22 
23 
29  public function asSQLStatement(ActiveRecord $ar)
30  {
31  return ' CONCAT(' . implode(', ', $this->getFields()) . ') AS ' . $this->getAs();
32  }
33 
34 
38  public function getAs()
39  {
40  return $this->as;
41  }
42 
43 
47  public function setAs($as)
48  {
49  $this->as = $as;
50  }
51 
52 
56  public function getFields()
57  {
58  return $this->fields;
59  }
60 
61 
65  public function setFields($fields)
66  {
67  $this->fields = $fields;
68  }
69 }
Class ActiveRecord.
Class arStatement.
$errors fields
Definition: imgupload.php:51
Class arConcat.
Create styles array
The data for the language used.
setFields($fields)
asSQLStatement(ActiveRecord $ar)