From: Mikael Nordfeldth Date: Wed, 18 Feb 2015 11:15:46 +0000 (+0100) Subject: escapedTableName for SQL query easy access X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=94e19e1ac6bdd0332b45e95e802d9009aa122465;p=quix0rs-gnu-social.git escapedTableName for SQL query easy access --- diff --git a/classes/Managed_DataObject.php b/classes/Managed_DataObject.php index a628b8bee3..dc4352270d 100644 --- a/classes/Managed_DataObject.php +++ b/classes/Managed_DataObject.php @@ -299,6 +299,11 @@ abstract class Managed_DataObject extends Memcached_DataObject return $ckeys; } + public function escapedTableName() + { + return common_database_tablename($this->tableName()); + } + /** * Returns an ID, checked that it is set and reasonably valid *