silverstripe-framework/model/queries/SQLQuery.php

40 lines
1.0 KiB
PHP
Raw Normal View History

<?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
*/
class SQLQuery extends SQLSelect {
/**
2014-12-03 21:20:39 +01:00
* @deprecated since version 4.0
*/
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');
}
/**
* @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;
}
}