mirror of
https://github.com/dg/dibi.git
synced 2025-08-12 00:54:11 +02:00
DibiConnection::sql() renamed to verb translate()
This commit is contained in:
@@ -260,7 +260,7 @@ class DibiConnection extends DibiObject
|
||||
* @return string
|
||||
* @throws DibiException
|
||||
*/
|
||||
final public function sql($args)
|
||||
final public function translate($args)
|
||||
{
|
||||
$this->connected || $this->connect();
|
||||
$args = func_get_args();
|
||||
@@ -269,6 +269,17 @@ class DibiConnection extends DibiObject
|
||||
|
||||
|
||||
|
||||
/** @deprecated */
|
||||
function sql($args)
|
||||
{
|
||||
trigger_error(__METHOD__ . '() is deprecated; use translate() instead.', E_USER_NOTICE);
|
||||
$this->connected || $this->connect();
|
||||
$args = func_get_args();
|
||||
return $this->translator->translate($args);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Generates and prints SQL query.
|
||||
* @param array|mixed one or more arguments
|
||||
|
Reference in New Issue
Block a user