PluginProbe
CSS & JavaScript Toolbox / 8.0.3
CSS & JavaScript Toolbox v8.0.3
trunk 0.3 0.8 10 10.1 11 11.2 11.3 11.4 11.5 11.6 11.7 11.8 11.9 11.9.1 12 12.0 12.0.1 12.0.3 12.0.4 12.0.5 12.0.6 12.0.7 6.0 6.0.11 All 60 releases
← All changes | framework/mvc/model.inc.php +12 -4 6.08.0.3 View file →
@@ -34,10 +34,14 @@
34 34 * put your comment there...
35 35 *
36 36 * @deprecated Use CJTModel::getInstance.
37 37 */
38 - public static function create($model, $params = array(), $file = null) {
39 - return self::getInstance($model, $params, $file);
38 + public static function create($model,
39 + $params = array(),
40 + $file = null,
41 + $overrideModelsPath = null,
42 + $overrideModelsPrefix = null) {
43 + return self::getInstance($model, $params, $file, $overrideModelsPath, $overrideModelsPrefix);
40 44 }
41 45
42 46 /**
43 47 * put your comment there...
@@ -45,10 +49,14 @@
45 49 * @param mixed $model
46 50 * @param mixed $params
47 51 * @param mixed $file
48 52 */
49 - public static function & getInstance($model, $params = array(), $file = null) {
50 - return CJTController::getModel($model, $params, $file);
53 + public static function getInstance($model,
54 + $params = array(),
55 + $file = null,
56 + $overrideModelsPath = null,
57 + $overrideModelsPrefix = null) {
58 + return CJTController::getModel($model, $params, $file, $overrideModelsPath, $overrideModelsPrefix);
51 59 }
52 60
53 61 /**
54 62 * put your comment there...