From 01e2497ff3532d2f46a068a0d7987971683a1661 Mon Sep 17 00:00:00 2001 From: Awilum Date: Sun, 9 Dec 2012 18:34:21 +0200 Subject: [PATCH] XMLDB: New method factory() added. --- monstra/engine/xmldb.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/monstra/engine/xmldb.php b/monstra/engine/xmldb.php index 0d8f883..bd1b2b3 100644 --- a/monstra/engine/xmldb.php +++ b/monstra/engine/xmldb.php @@ -220,6 +220,21 @@ } + /** + * Table factory. + * + * + * $users = Table::factory('table_name'); + * + * + * @param string $table_name Table name + * @return Table + */ + public static function factory($table_name) { + return new Table($table_name); + } + + /** * Table construct *