ILIAS  release_7 Revision v7.30-3-g800a261c036
class.arConcat.php
Go to the documentation of this file.
1<?php
2require_once(dirname(__FILE__) . '/../Statement/class.arStatement.php');
3
11class 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.
An exception for terminatinating execution or to throw for unit testing.
Class arConcat.
setFields($fields)
asSQLStatement(ActiveRecord $ar)
Class arStatement.
$errors fields
Definition: imgupload.php:51