setValues($values); } /** * put your comment there... * * @deprecated Use CJTModel::getInstance. */ public static function create($model, $params = array(), $file = null) { return self::getInstance($model, $params, $file); } /** * put your comment there... * * @param mixed $model * @param mixed $params * @param mixed $file */ public static function getInstance($model, $params = array(), $file = null) { return CJTController::getModel($model, $params, $file); } /** * put your comment there... * */ public function getValues() { return ((object)$this->properties); } /** * put your comment there... * * @param mixed $model */ public static function import($model) { $pathToModels = CJTOOLBOX_MODELS_PATH; // Import model file. $modelFile = "{$pathToModels}/{$model}.php"; require_once $modelFile; } /** * put your comment there... * * @param mixed $values */ public function setValues($values) { foreach ($values as $name => $value) { $this->properties[$name] = $value; } } } // End class.