10 defined(
'JPATH_PLATFORM') or die;
46 public function processLimit($query, $limit, $offset = 0)
48 if ($limit > 0 || $offset > 0)
50 $query .=
' LIMIT ' . $offset .
', ' . $limit;
66 public function concatenate($values, $separator = null)
70 $concat_string =
'CONCAT_WS(' . $this->quote($separator);
72 foreach ($values as $value)
74 $concat_string .=
', ' . $value;
77 return $concat_string .
')';
81 return 'CONCAT(' . implode(
',', $values) .
')';
99 public function setLimit($limit = 0, $offset = 0)
101 $this->limit = (int) $limit;
102 $this->offset = (int) $offset;