2013-06-21 00:32:08 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Object representing a SQL SELECT query.
|
|
|
|
* The various parts of the SQL query can be manipulated individually.
|
|
|
|
*
|
|
|
|
* @package framework
|
|
|
|
* @subpackage model
|
2014-12-03 21:20:39 +01:00
|
|
|
* @deprecated since version 4.0
|
2013-06-21 00:32:08 +02:00
|
|
|
*/
|
|
|
|
class SQLQuery extends SQLSelect {
|
|
|
|
|
|
|
|
/**
|
2014-12-03 21:20:39 +01:00
|
|
|
* @deprecated since version 4.0
|
2013-06-21 00:32:08 +02:00
|
|
|
*/
|
|
|
|
public function __construct($select = "*", $from = array(), $where = array(), $orderby = array(),
|
|
|
|
$groupby = array(), $having = array(), $limit = array()
|
|
|
|
) {
|
|
|
|
parent::__construct($select, $from, $where, $orderby, $groupby, $having, $limit);
|
2014-12-03 21:20:39 +01:00
|
|
|
Deprecation::notice('4.0', 'Use SQLSelect instead');
|
2013-06-21 00:32:08 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @deprecated since version 3.2
|
|
|
|
*/
|
|
|
|
public function setDelete($value) {
|
|
|
|
$message = 'SQLQuery->setDelete no longer works. Create a SQLDelete object instead, or use toDelete()';
|
|
|
|
Deprecation::notice('3.2', $message);
|
|
|
|
throw new BadMethodCallException($message);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @deprecated since version 3.2
|
|
|
|
*/
|
|
|
|
public function getDelete() {
|
|
|
|
Deprecation::notice('3.2', 'Use SQLDelete object instead');
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|