From 0a85ddfe966c3ec098a89843e49c9c5260ceda77 Mon Sep 17 00:00:00 2001 From: aterekhov Date: Wed, 4 Nov 2009 00:10:56 +0000 Subject: [PATCH] added method getTableName() for Model Class #0 git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@107 4cb57b5f-5bbd-dd11-951b-001d605cbbc5 --- classes/Model.class.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/classes/Model.class.php b/classes/Model.class.php index b849142..3623cdb 100644 --- a/classes/Model.class.php +++ b/classes/Model.class.php @@ -138,6 +138,15 @@ abstract class Model { return DBConnector::rollback($this->handler); } + + /** + * Возвращает значение поля $table + * @return string + */ + function getTableName() + { + return $this->table; + } } class ModelResult