Back to Joomla project (class list)

Class BaseModel - list of methods

Base class for a Joomla Model

Extends

Extends

Direct known subclasses

Package: Joomla\CMS\MVC\Model
Copyright: (C) 2006 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
Located at: Joomla/MVC/Model/BaseModel.php
Project: Joomla

Method Summary

public
(mixed $config = array())

Constructor
Parameters
  • array $config An array of configuration options (name, state, ignore_request).
Since
  • 4.0.0
-
  • \Exception
Show source code of this method: __construct Source Code

public static array
(mixed $path = '', mixed $prefix = '')

Add a directory where \JModelLegacy should search for models. You may either pass a string or an array of directories.
Parameters
  • mixed $path A path or array[sting] of paths to search.
  • string $prefix A prefix for models.
Returns
  • array An array with directory elements. If prefix is equal to '', all directories are returned.
Since
  • 3.0
Deprecated
  • 5.0
Show source code of this method: addIncludePath Source Code

public string
()

Method to get the model name
Returns
  • string The name of the model
Since
  • 4.0.0
-
  • \Exception
Show source code of this method: getName Source Code

Properties Summary

protected string
$name
The model (base) name
Since
  • 4.0.0
protected static array
$paths
The include paths
Since
  • 4.0.0

Tags Summary

Since
4.0.0