mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-06 05:07:49 +02:00
XMLDB: New method factory() added.
This commit is contained in:
@@ -220,6 +220,21 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Table factory.
|
||||||
|
*
|
||||||
|
* <code>
|
||||||
|
* $users = Table::factory('table_name');
|
||||||
|
* </code>
|
||||||
|
*
|
||||||
|
* @param string $table_name Table name
|
||||||
|
* @return Table
|
||||||
|
*/
|
||||||
|
public static function factory($table_name) {
|
||||||
|
return new Table($table_name);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Table construct
|
* Table construct
|
||||||
*
|
*
|
||||||
|
Reference in New Issue
Block a user