From 9f9884930609addad3e37325731fb5406dd3aa44 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 8 Dec 2015 09:57:38 +0100 Subject: Add a method to the get "to use" table and column name --- lib/public/db/querybuilder/iquerybuilder.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'lib/public/db') diff --git a/lib/public/db/querybuilder/iquerybuilder.php b/lib/public/db/querybuilder/iquerybuilder.php index 1ff1077d53f..dd3ee7da5f5 100644 --- a/lib/public/db/querybuilder/iquerybuilder.php +++ b/lib/public/db/querybuilder/iquerybuilder.php @@ -820,4 +820,23 @@ interface IQueryBuilder { * @since 9.0.0 */ public function getLastInsertId(); + + /** + * Returns the table name quoted and with database prefix as needed by the implementation + * + * @param string $table + * @return string + * @since 9.0.0 + */ + public function getTableName($table); + + /** + * Returns the column name quoted and with table alias prefix as needed by the implementation + * + * @param string $column + * @param string $tableAlias + * @return string + * @since 9.0.0 + */ + public function getColumnName($column, $tableAlias = ''); } -- cgit v1.2.3