10 defined(
'JPATH_PLATFORM') or die;
37 protected $bounded = array();
55 public function bind($key = null, &$value = null, $dataType = PDO::PARAM_STR, $length = 0, $driverOptions = array())
60 $this->bounded = array();
68 if (isset($this->bounded[$key]))
70 unset($this->bounded[$key]);
78 $obj->value = &$value;
79 $obj->dataType = $dataType;
80 $obj->length = $length;
81 $obj->driverOptions = $driverOptions;
84 $this->bounded[$key] = $obj;
99 public function &getBounded($key = null)
103 return $this->bounded;
107 if (isset($this->bounded[$key]))
109 return $this->bounded[$key];
123 public function clear($clause = null)
128 $this->bounded = array();
132 parent::clear($clause);
152 public function processLimit($query, $limit, $offset = 0)
155 if ($limit || $offset)
157 $query =
"SELECT joomla2.*
159 SELECT joomla1.*, ROWNUM AS joomla_db_rownum
168 $query .=
' WHERE joomla2.joomla_db_rownum BETWEEN ' . ($offset + 1) .
' AND ' . ($offset + $limit);
175 $query .=
' WHERE joomla2.joomla_db_rownum > ' . ($offset + 1);
197 public function setLimit($limit = 0, $offset = 0)
199 $this->limit = (int) $limit;
200 $this->offset = (int) $offset;