]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
escapedTableName for SQL query easy access
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 18 Feb 2015 11:15:46 +0000 (12:15 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 18 Feb 2015 11:15:46 +0000 (12:15 +0100)
classes/Managed_DataObject.php

index a628b8bee3aa1834879ecae689e4c9ca40ce2940..dc4352270d7232960a0c4847ee1c164f0eed93cd 100644 (file)
@@ -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
      *