Joomla CMS
2.5.24 (avec JPlatform 11.4 inclus)
Documentation des API du CMS Joomla en version 2.5 et du framework Joomla Platform intégré
|
Est dérivée de JModel.
Dérivée par BannersModelBanners, BannersModelBanners, BannersModelClients, BannersModelTracks, CacheModelCache, CategoriesModelCategories, CheckinModelCheckin, ContactModelCategories, ContactModelCategory, ContactModelContacts, ContactModelFeatured, ContentModelArticles, ContentModelArticles, ContentModelCategories, ContentModelCategory, FinderModelFilters, FinderModelIndex, FinderModelMaps, FinderModelSearch, FinderModelSuggestions, InstallerModel, InstallerModelLanguages, InstallerModelUpdate, InstallerModelWarnings, LanguagesModelInstalled, LanguagesModelLanguages, LanguagesModelOverrides, MenusModelItems, MenusModelMenus, MessagesModelMessages, ModulesModelModules, ModulesModelPositions, ModulesModelSelect, NewsfeedsModelCategories, NewsfeedsModelCategory, NewsfeedsModelNewsfeeds, PluginsModelPlugins, RedirectModelLinks, SearchModelSearches, TemplatesModelStyles, TemplatesModelTemplates, UsersModelDebugGroup, UsersModelDebugUser, UsersModelGroups, UsersModelLevels, UsersModelNotes, UsersModelUsers, WeblinksModelCategories, WeblinksModelCategory, et WeblinksModelWeblinks.
Fonctions membres publiques | |
__construct ($config=array()) | |
getItems () | |
getPagination () | |
getTotal () | |
getStart () | |
getUserStateFromRequest ($key, $request, $default=null, $type= 'none', $resetPage=true) | |
Fonctions membres publiques inherited from JModel | |
getDbo () | |
getName () | |
getState ($property=null, $default=null) | |
getTable ($name= '', $prefix= 'Table', $options=array()) | |
setDbo (&$db) | |
setState ($property, $value=null) | |
Fonctions membres publiques inherited from JObject | |
__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) | |
toString () |
Fonctions membres protégées | |
_getListQuery () | |
getListQuery () | |
getStoreId ($id= '') | |
populateState ($ordering=null, $direction=null) | |
Fonctions membres protégées inherited from JModel | |
_getList ($query, $limitstart=0, $limit=0) | |
_getListCount ($query) | |
_createTable ($name, $prefix= 'Table', $config=array()) | |
populateState () | |
cleanCache ($group=null, $client_id=0) |
Attributs protégés | |
$cache = array() | |
$context = null | |
$filter_fields = array() | |
$query = array() | |
Attributs protégés inherited from JModel | |
$__state_set = null | |
$_db | |
$name | |
$option = null | |
$state | |
$event_clean_cache = null | |
Attributs protégés inherited from JObject | |
$_errors = array() |
Additional Inherited Members | |
Fonctions membres publiques statiques inherited from JModel | |
static | addIncludePath ($path= '', $prefix= '') |
static | addTablePath ($path) |
static | getInstance ($type, $prefix= '', $config=array()) |
Fonctions membres protégées statiques inherited from JModel | |
static | _createFileName ($type, $parts=array()) |
JModelList::__construct | ( | $config = array() | ) |
Constructor.
array | $config | An optional associative array of configuration settings. |
Réimplémentée à partir de JModel.
Réimplémentée dans ContentModelCategory, NewsfeedsModelCategory, ContactModelCategory, ContactModelFeatured, FinderModelIndex, WeblinksModelCategory, InstallerModelLanguages, InstallerModel, LanguagesModelOverrides, MenusModelMenus, FinderModelFilters, FinderModelMaps, InstallerModelManage, UsersModelUsers, CategoriesModelCategories, InstallerModelUpdate, RedirectModelLinks, SearchModelSearches, UsersModelNotes, ContactModelContacts, ContentModelArticles, LanguagesModelLanguages, MessagesModelMessages, ModulesModelModules, ModulesModelPositions, NewsfeedsModelNewsfeeds, PluginsModelPlugins, TemplatesModelStyles, WeblinksModelWeblinks, ContentModelArticles, BannersModelBanners, BannersModelClients, BannersModelTracks, ContentModelFeatured, MenusModelItems, TemplatesModelTemplates, UsersModelGroups, et UsersModelLevels.
Références $config.
|
protected |
Method to cache the last query constructed.
This method ensures that the query is constructed only once for a given state of the model.
Réimplémentée dans InstallerModelLanguages.
Références $query.
JModelList::getItems | ( | ) |
Method to get an array of data items.
Réimplémentée dans ContentModelArticles, ContentModelArticles, ContentModelCategory, BannersModelBanners, UsersModelUsers, SearchModelSearches, ModulesModelSelect, CheckinModelCheckin, UsersModelGroups, ContactModelCategories, NewsfeedsModelCategories, WeblinksModelCategories, ContactModelCategory, ModulesModelPositions, ContactModelFeatured, NewsfeedsModelCategory, WeblinksModelCategory, ContentModelFeatured, InstallerModelDatabase, InstallerModelWarnings, MenusModelMenus, TemplatesModelTemplates, UsersModelDebugGroup, UsersModelDebugUser, et FinderModelSuggestions.
Références $query.
|
protected |
Method to get a JDatabaseQuery object for retrieving the data set from a database.
Réimplémentée dans UsersModelUsers, InstallerModelManage, FinderModelSearch, ModulesModelModules, PluginsModelPlugins, UsersModelDebugGroup, FinderModelIndex, MenusModelItems, UsersModelDebugUser, UsersModelGroups, FinderModelMaps, MenusModelMenus, ContentModelArticles, ContentModelArticles, CategoriesModelCategories, ContactModelContacts, WeblinksModelWeblinks, NewsfeedsModelNewsfeeds, ContactModelCategory, ContentModelFeatured, LanguagesModelLanguages, ContactModelFeatured, NewsfeedsModelCategory, RedirectModelLinks, WeblinksModelCategory, TemplatesModelStyles, BannersModelClients, SearchModelSearches, MessagesModelMessages, BannersModelTracks, UsersModelLevels, BannersModelBanners, ModulesModelSelect, InstallerModelUpdate, TemplatesModelTemplates, UsersModelNotes, ContentModelArchive, FinderModelSuggestions, BannersModelBanners, FinderModelFilters, et InstallerModelDiscover.
JModelList::getPagination | ( | ) |
Method to get a JPagination object for the data set.
Réimplémentée dans ContentModelCategory, CacheModelCache, et InstallerModelDatabase.
Références $limit, et jimport().
JModelList::getStart | ( | ) |
Method to get the starting number of items for the data set.
Réimplémentée dans ContentModelArticles.
|
protected |
Method to get a store id based on the model configuration state.
This is necessary because the model is used by the component and different modules that might need different sets of data or different ordering requirements.
string | $id | An identifier string to generate the store id. |
Réimplémentée dans FinderModelIndex, FinderModelMaps, BannersModelBanners, UsersModelNotes, UsersModelDebugGroup, UsersModelDebugUser, MenusModelItems, TemplatesModelTemplates, UsersModelUsers, ContentModelArticles, CategoriesModelCategories, ContentModelArticles, ModulesModelModules, ContactModelContacts, FinderModelFilters, WeblinksModelWeblinks, NewsfeedsModelNewsfeeds, LanguagesModelInstalled, ContentModelFeatured, PluginsModelPlugins, LanguagesModelLanguages, FinderModelSuggestions, InstallerModelLanguages, RedirectModelLinks, TemplatesModelStyles, BannersModelClients, SearchModelSearches, MessagesModelMessages, UsersModelGroups, UsersModelLevels, ContactModelCategories, ContentModelCategories, NewsfeedsModelCategories, WeblinksModelCategories, ModulesModelSelect, et BannersModelBanners.
Références $id.
JModelList::getTotal | ( | ) |
Method to get the total number of items for the data set.
Réimplémentée dans LanguagesModelInstalled, ModulesModelPositions, FinderModelSearch, CacheModelCache, LanguagesModelOverrides, et CheckinModelCheckin.
JModelList::getUserStateFromRequest | ( | $key, | |
$request, | |||
$default = null , |
|||
$type = 'none' , |
|||
$resetPage = true |
|||
) |
Gets the value of a user state variable and sets it in the session
This is the same as the method in JApplication except that this also can optionally force you back to the first page when a filter has changed
string | $key | The key of the user state variable. |
string | $request | The name of the variable passed in a request. |
string | $default | The default value for the variable if not found. Optional. |
string | $type | Filter for the variable, for valid values see JFilterInput::clean(). Optional. |
boolean | $resetPage | If true, the limitstart in request is set to zero |
Références $app, $key, $type, JFactory\getApplication(), JRequest\getVar(), null, et JRequest\setVar().
Method to auto-populate the model state.
This method should only be called once per instantiation and is designed to be called on the first call to the getState() method unless the model configuration flag to ignore the request is set.
Note. Calling getState in this method will result in recursion.
string | $ordering | An optional ordering field. |
string | $direction | An optional direction (asc|desc). |
Réimplémentée dans FinderModelSearch, FinderModelIndex, FinderModelMaps, BannersModelBanners, UsersModelNotes, ContactModelCategory, MenusModelMenus, WeblinksModelCategory, ContactModelFeatured, NewsfeedsModelCategory, TemplatesModelTemplates, LanguagesModelOverrides, FinderModelFilters, InstallerModelLanguages, ContentModelCategory, UsersModelDebugGroup, UsersModelDebugUser, LanguagesModelInstalled, CategoriesModelCategories, ContactModelContacts, ContentModelArticles, ContentModelArticles, MenusModelItems, WeblinksModelWeblinks, NewsfeedsModelNewsfeeds, ModulesModelModules, UsersModelUsers, LanguagesModelLanguages, PluginsModelPlugins, BannersModelTracks, InstallerModelManage, InstallerModelUpdate, RedirectModelLinks, MessagesModelMessages, BannersModelClients, CacheModelCache, TemplatesModelStyles, SearchModelSearches, UsersModelGroups, ModulesModelPositions, UsersModelLevels, ContactModelCategories, ContentModelCategories, NewsfeedsModelCategories, WeblinksModelCategories, ContentModelArchive, ContentModelFeatured, InstallerModelDatabase, InstallerModelDiscover, CheckinModelCheckin, et ModulesModelSelect.
Références $app, $direction, $limit, $ordering, et JFactory\getApplication().
|
protected |
|
protected |
Réimplémentée dans FinderModelSearch, et FinderModelSuggestions.
|
protected |
|
protected |
Réimplémentée dans FinderModelSearch.