Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct ($config=array(), MVCFactoryInterface $factory=null) | |
getTable ($name='', $prefix='', $options=array()) | |
isCheckedOut ($item) | |
getDbo () | |
setDbo (DatabaseInterface $db=null) | |
__get ($name) | |
Fonctions membres publiques hérités de BaseModel | |
__construct ($config=array()) | |
getName () | |
Fonctions membres publiques hérités de CMSObject | |
__construct ($properties=null) | |
__toString () | |
def ($property, $default=null) | |
get ($property, $default=null) | |
getProperties ($public=true) | |
getError ($i=null, $toString=true) | |
getErrors () | |
set ($property, $value=null) | |
setProperties ($properties) | |
setError ($error) | |
Fonctions membres publiques hérités de StatefulModelInterface | |
getState ($property=null, $default=null) | |
setState ($property, $value=null) | |
Fonctions membres publiques hérités de DispatcherAwareInterface | |
setDispatcher (DispatcherInterface $dispatcher) | |
Fonctions membres publiques hérités de CurrentUserInterface | |
setCurrentUser (User $currentUser) | |
Fonctions membres publiques hérités de CacheControllerFactoryAwareInterface | |
setCacheControllerFactory (CacheControllerFactoryInterface $factory) | |
Fonctions membres publiques hérités de DatabaseAwareInterface | |
setDatabase (DatabaseInterface $db) | |
Fonctions membres protégées | |
_getList ($query, $limitstart=0, $limit=0) | |
_getListCount ($query) | |
_createTable ($name, $prefix='Table', $config=array()) | |
bootComponent ($component) | |
dispatchEvent (EventInterface $event) | |
Attributs protégés | |
$option = null | |
$event_clean_cache = null | |
Attributs protégés hérités de BaseModel | |
$name | |
Attributs protégés hérités de CMSObject | |
$_errors = array() | |
Membres hérités additionnels | |
Fonctions membres publiques statiques hérités de BaseModel | |
static | addIncludePath ($path='', $prefix='') |
Attributs protégés statiques hérités de BaseModel | |
static | $paths |
Base class for a database aware Joomla Model
Acts as a Factory class for application specific objects and provides many supporting API functions.
__construct | ( | $config = array() , |
|
MVCFactoryInterface | $factory = null |
||
) |
Constructor
array | $config | An array of configuration options (name, state, dbo, table_path, ignore_request). |
MVCFactoryInterface | $factory | The factory. |
Références $component, $config, $db, $r, $this, Symfony\Contracts\Service\__construct(), elseif, Factory\getApplication(), ComponentHelper\getComponentName(), Factory\getDbo(), null, Joomla\Database\setDatabase(), Joomla\CMS\MVC\Model\setDbo(), Joomla\CMS\MVC\Factory\setMVCFactory(), et Text\sprintf().
__get | ( | $name | ) |
Proxy for _db variable.
string | $name | The name of the element |
Références $name, Joomla\CMS\MVC\Model\getDbo(), et null.
|
protected |
Method to load and return a table object.
string | $name | The name of the view |
string | $prefix | The class prefix. Optional. |
array | $config | Configuration settings to pass to Table::getInstance |
Références $config, $name, $prefix, Joomla\CMS\MVC\Model\getDbo(), et Joomla\CMS\MVC\Factory\getMVCFactory().
|
protected |
Gets an array of objects from the results of database query.
string | $query | The query. |
integer | $limitstart | Offset. |
integer | $limit | The number of records. |
Références $limit, $query, et Joomla\CMS\MVC\Model\getDbo().
|
protected |
Returns a record count for the query.
Note: Current implementation of this method assumes that getListQuery() returns a set of unique rows, thus it uses SELECT COUNT(*) to count the rows. In cases that getListQuery() uses DISTINCT then either this method must be overridden by a custom implementation at the derived Model Class or a GROUP BY clause should be used to make the set unique.
DatabaseQuery | string | $query | The query. |
Références $query, Joomla\CMS\MVC\Model\getDbo(), et null.
|
protected |
Boots the component with the given name.
string | $component | The component name, eg. com_content. |
Références $component, et Factory\getApplication().
|
protected |
Dispatches the given event on the internal dispatcher, does a fallback to the global one.
EventInterface | $event | The event |
Références class, Factory\getContainer(), Joomla\CMS\Application\getDispatcher(), et EventInterface\getName().
getDbo | ( | ) |
Get the database driver.
Implémente DatabaseModelInterface.
Références Joomla\Database\getDatabase().
getTable | ( | $name = '' , |
|
$prefix = '' , |
|||
$options = array() |
|||
) |
Method to get a table object, load it if necessary.
string | $name | The table name. Optional. |
string | $prefix | The class prefix. Optional. |
array | $options | Configuration array for model. Optional. |
Références $name, $options, $prefix, Joomla\CMS\MVC\Factory\getMVCFactory(), et Text\sprintf().
isCheckedOut | ( | $item | ) |
Method to check if the given record is checked out by the current user
\stdClass | $item | The record to check |
Références $item.
setDbo | ( | DatabaseInterface | $db = null | ) |
Set the database driver.
DatabaseInterface | $db | The database driver. |
Références $db, null, et Joomla\Database\setDatabase().
|
protected |
|
protected |