Class ModulesModelModules. Jmodellist joomla 3
JModelList *Документация по Joomla 3.0.2
Joomla.Legacy\JModelList
libraries/legacy/model/list.php at line 19 JObject└─JModelLegacy└─JModelList All Known Subclasses: Joomla.Administrator\BannersModelBanners Joomla.Site\BannersModelBanners Joomla.Administrator\BannersModelClients Joomla.Administrator\BannersModelTracks Joomla.Administrator\CacheModelCache Joomla.Administrator\CategoriesModelCategories Joomla.Administrator\CheckinModelCheckin Joomla.Site\ContactModelCategory Joomla.Administrator\ContactModelContacts Joomla.Site\ContactModelFeatured Joomla.Administrator\ContentModelArticles Joomla.Site\ContentModelArticles Joomla.Site\ContentModelCategory Joomla.Administrator\FinderModelFilters Joomla.Administrator\FinderModelIndex Joomla.Administrator\FinderModelMaps Joomla.Site\FinderModelSearch Joomla.Site\FinderModelSuggestions Joomla.Administrator\InstallerModel Joomla.Administrator\InstallerModelLanguages Joomla.Administrator\InstallerModelUpdate Joomla.Administrator\InstallerModelWarnings Joomla.Administrator\LanguagesModelInstalled Joomla.Administrator\LanguagesModelLanguages Joomla.Administrator\LanguagesModelOverrides Joomla.Administrator\MenusModelItems Joomla.Administrator\MenusModelMenus Joomla.Administrator\MessagesModelMessages Joomla.Administrator\ModulesModelModules Joomla.Administrator\ModulesModelPositions Joomla.Administrator\ModulesModelSelect Joomla.Site\NewsfeedsModelCategory Joomla.Administrator\NewsfeedsModelNewsfeeds Joomla.Administrator\PluginsModelPlugins Joomla.Administrator\RedirectModelLinks Joomla.Administrator\SearchModelSearches Joomla.Administrator\TemplatesModelStyles Joomla.Administrator\TemplatesModelTemplates Joomla.Administrator\UsersModelDebugGroup Joomla.Administrator\UsersModelDebugUser Joomla.Administrator\UsersModelGroups Joomla.Administrator\UsersModelLevels Joomla.Administrator\UsersModelNotes Joomla.Administrator\UsersModelUsers Joomla.Site\WeblinksModelCategory Joomla.Administrator\WeblinksModelWeblinksprotected array | $cache Internal memory based cache array of data. |
protected string | $context Context string for the model type. |
protected array | $filter_fields Valid filter fields or ordering. |
protected JDatabaseQuery | $query An internal cache for the last query used. |
_errors |
void | __construct(array config, mixed properties) Constructor. |
protected JDatabaseQuery | _getListQuery() Method to cache the last query constructed. |
static mixed | getItems() Method to get an array of data items. |
protected JDatabaseQuery | getListQuery() Method to get a JDatabaseQuery object for retrieving the data set from a database. |
JPagination | getPagination() Method to get a JPagination object for the data set. |
protected string | getStoreId(string id) Method to get a store id based on the model configuration state. |
integer | getTotal() Method to get the total number of items for the data set. |
integer | getStart() Method to get the starting number of items for the data set. |
protected void | populateState(string ordering, string direction) Method to auto-populate the model state. |
The | getUserStateFromRequest(string key, string request, string default, string type, boolean resetPage) Gets the value of a user state variable and sets it in the sessionThis 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 |
__construct, _createFileName, _createTable, _getList, _getListCount, addIncludePath, addTablePath, cleanCache, getDbo, getInstance, getName, getState, getTable, populateState, setDbo, setState |
Field Detail
libraries/legacy/model/list.php at line 27
cache
protected array $cache = array() Internal memory based cache array of data.
Since: 12.2 libraries/legacy/model/list.php at line 36context
protected string $context = nullContext string for the model type. This is used to handle uniqueness when dealing with the getStoreId() method and caching data structures.
Since: 12.2 libraries/legacy/model/list.php at line 44filter_fields
protected array $filter_fields = array()Valid filter fields or ordering.
Since: 12.2 libraries/legacy/model/list.php at line 52query
protected JDatabaseQuery $query = array()An internal cache for the last query used.
Since: 12.2Constructor Detail
libraries/legacy/model/list.php at line 62__construct
public void __construct(array config, mixed properties)Constructor.
Parameters: config - An optional associative array of configuration settings. See Also: JModelLegacy Since: 12.2 Throws: ExceptionMethod Detail
libraries/legacy/model/list.php at line 88_getListQuery
protected JDatabaseQuery _getListQuery()Method to cache the last query constructed.
This method ensures that the query is constructed only once for a given state of the model.
getItems
public static mixed getItems()Method to get an array of data items.
Returns: An array of data items on success, false on failure. Since: 12.2 libraries/legacy/model/list.php at line 150getListQuery
protected JDatabaseQuery getListQuery()Method to get a JDatabaseQuery object for retrieving the data set from a database.
Returns: A JDatabaseQuery object to retrieve the data set. Since: 12.2 libraries/legacy/model/list.php at line 165 public JPagination getPagination()Method to get a JPagination object for the data set.
Returns: A JPagination object for the data set. Since: 12.2 libraries/legacy/model/list.php at line 199getStoreId
protected string getStoreId(string id)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.
Parameters: id - An identifier string to generate the store id. Returns: A store id. Since: 12.2 libraries/legacy/model/list.php at line 217
getTotal
public integer getTotal() Method to get the total number of items for the data set.
Returns: The total number of items available in the data set. Since: 12.2 libraries/legacy/model/list.php at line 253getStart
public integer getStart()Method to get the starting number of items for the data set.
Returns: The starting number of items available in the data set. Since: 12.2 libraries/legacy/model/list.php at line 293populateState
protected void populateState(string ordering, string direction)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.
Parameters: ordering - An optional ordering field. direction - An optional direction (asc|desc). Since: 12.2 Note: Calling getState in this method will result in recursion. libraries/legacy/model/list.php at line 349getUserStateFromRequest
public The getUserStateFromRequest(string key, string request, string default, string type, boolean resetPage)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
Parameters: key - The key of the user state variable. request - The name of the variable passed in a request. default - The default value for the variable if not found. Optional. type - Filter for the variable, for valid values see {@link JFilterInput::clean()}. Optional. resetPage - If true, the limitstart in request is set to zero Returns: request user state. Since: 12.2 Вернуться к записям по теме Joomla.ya.samposebe.ru
Вернуться к записям по теме Joomla. Joomla.Administrator\UsersModelLevels administrator/components/com_users/models/levels.php at line 19 JObject└─JModelLegacy└─JModelList└─UsersModelLevels
Constructor Detailadministrator/components/com_users/models/levels.php at line 28__constructpublic void __construct(array config, array An, mixed properties)Constructor. Parameters: An - optional associative array of configuration settings. See Also: JController Since: 1.6 Throws: ExceptionMethod Detailadministrator/components/com_users/models/levels.php at line 48populateStateprotected void populateState(string ordering, string direction)Method to auto-populate the model state. Note. Calling getState in this method will result in recursion. Since: 1.6 Note: Calling getState in this method will result in recursion. Parameters: ordering - An optional ordering field. direction - An optional direction (asc|desc). administrator/components/com_users/models/levels.php at line 75getStoreIdprotected string getStoreId(string id)Method to get a store id based on 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. getListQueryprotected JDatabaseQuery getListQuery()Build an SQL query to load the list data. Since: 12.2 administrator/components/com_users/models/levels.php at line 133reorderpublic boolean reorder(int The, integer Increment,, mixed pk, int direction)Method to adjust the ordering of a row. Parameters: The - ID of the primary key to move. Increment, - usually +1 or -1 Returns: False on failure or error, true otherwise. administrator/components/com_users/models/levels.php at line 170saveorderpublic void saveorder(array An, int +/-1, mixed pks, mixed order)Saves the manually set order of records. Parameters: An - array of primary key ids. Вернуться к записям по теме Joomla. |
ya.samposebe.ru
Вернуться к записям по теме Joomla. Joomla.Administrator\FinderModelIndex administrator/components/com_finder/models/index.php at line 19 JObject└─JModelLegacy└─JModelList└─FinderModelIndexpublic class FinderModelIndexextends JModelList Subpackage: com_finder Since: 2.5
Field Detailadministrator/components/com_finder/models/index.php at line 27event_after_deleteprotected string $event_after_delete = 'onContentAfterDelete'The event to trigger after deleting the data. Since: 2.5 administrator/components/com_finder/models/index.php at line 35event_before_deleteprotected string $event_before_delete = 'onContentBeforeDelete'The event to trigger before deleting the data. Since: 2.5Constructor Detailadministrator/components/com_finder/models/index.php at line 45__constructpublic void __construct(array config, mixed properties)Constructor. Parameters: config - An associative array of configuration settings. [optional] Since: 2.5 See Also: JController Throws: ExceptionMethod Detailadministrator/components/com_finder/models/index.php at line 70canDeleteprotected boolean canDelete(object record)Method to test whether a record can be deleted. Parameters: record - A record object. Returns: True if allowed to delete the record. Defaults to the permission for the component. Since: 2.5 administrator/components/com_finder/models/index.php at line 85canEditStateprotected boolean canEditState(object record)Method to test whether a record can be deleted. Parameters: record - A record object. Returns: True if allowed to change the state of the record. Defaults to the permission for the component. Since: 2.5 administrator/components/com_finder/models/index.php at line 100deletepublic boolean delete(array &$pks, mixed pks)Method to delete one or more records. Parameters: &$pks - An array of record primary keys. Returns: True if successful, false if an error occurs. Since: 2.5 administrator/components/com_finder/models/index.php at line 170getListQueryprotected JDatabaseQuery getListQuery()Build an SQL query to load the list data. Returns: A JDatabaseQuery object Since: 2.5 administrator/components/com_finder/models/index.php at line 217getPluginStatepublic array getPluginState()Method to get the state of the Smart Search plug-ins. Returns: Array of relevant plug-ins and whether they are enabled or not. Since: 2.5 administrator/components/com_finder/models/index.php at line 247getStoreIdprotected string getStoreId(string id)Method to get a store id based on 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. Parameters: id - A prefix for the store id. [optional] Returns: A store id. Since: 2.5 administrator/components/com_finder/models/index.php at line 268getTablepublic JTable getTable(string type, string prefix, array config, string name, array options)Returns a JTable object, always creating it. Parameters: type - The table type to instantiate. [optional] prefix - A prefix for the table class name. [optional] config - Configuration array for model. [optional] Returns: A database object Since: 2.5 Throws: Exception administrator/components/com_finder/models/index.php at line 281purgepublic boolean purge()Method to purge the index, deleting all links. Returns: True on success, false on failure. Since: 2.5 Throws: Exception - on database error administrator/components/com_finder/models/index.php at line 330populateStateprotected void populateState(string ordering, string direction)Method to auto-populate the model state. Calling getState in this method will result in recursion. Parameters: ordering - An optional ordering field. [optional] direction - An optional direction. [optional] Since: 2.5 Note: Calling getState in this method will result in recursion. administrator/components/com_finder/models/index.php at line 360publishpublic boolean publish(array &$pks, integer value, mixed pks)Method to change the published state of one or more records. Parameters: &$pks - A list of the primary keys to change. value - The value of the published state. [optional] Returns: True on success. Since: 2.5 Вернуться к записям по теме Joomla. |
ya.samposebe.ru
Вернуться к записям по теме Joomla. Joomla.Administrator\ModulesModelModules administrator/components/com_modules/models/modules.php at line 19 JObject└─JModelLegacy└─JModelList└─ModulesModelModulespublic class ModulesModelModulesextends JModelList Subpackage: com_modules Since: 1.5
Constructor Detailadministrator/components/com_modules/models/modules.php at line 28__constructpublic void __construct(array config, array An, mixed properties)Constructor. Parameters: An - optional associative array of configuration settings. See Also: JController Since: 1.6 Throws: ExceptionMethod Detailadministrator/components/com_modules/models/modules.php at line 60populateStateprotected void populateState(string ordering, string direction)Method to auto-populate the model state. Note. Calling getState in this method will result in recursion. Since: 1.6 Note: Calling getState in this method will result in recursion. Parameters: ordering - An optional ordering field. direction - An optional direction (asc|desc). administrator/components/com_modules/models/modules.php at line 110getStoreIdprotected string getStoreId(string A, str id)Method to get a store id based on 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. Parameters: A - prefix for the store id. Returns: A store id. Since: 12.2 administrator/components/com_modules/models/modules.php at line 131_getListprotected array _getList(int The, int Offset, string query, int limitstart, int limit)Returns an object list Parameters: The - query The - number of records Since: 12.2 Throws: RuntimeException administrator/components/com_modules/models/modules.php at line 172translateprotected array translate(array The, mixed items)Translate a list of objects Parameters: The - array of objects Returns: The array of translated objects administrator/components/com_modules/models/modules.php at line 201getListQueryprotected JDatabaseQuery getListQuery()Build an SQL query to load the list data. Since: 12.2 Вернуться к записям по теме Joomla. |
ya.samposebe.ru
Вернуться к записям по теме Joomla. Joomla.Site\FinderModelSearch components/com_finder/models/search.php at line 26 JObject└─JModelLegacy└─JModelList└─FinderModelSearchpublic class FinderModelSearchextends JModelList Subpackage: com_finder Since: 2.5
Field Detailcomponents/com_finder/models/search.php at line 34contextprotected string $context = 'com_finder.search'Context string for the model type Since: 2.5 components/com_finder/models/search.php at line 52excludedTermsprotected array $excludedTerms = array()An array of all excluded terms ids. Since: 2.5 components/com_finder/models/search.php at line 60includedTermsprotected array $includedTerms = array()An array of all included terms ids. Since: 2.5 components/com_finder/models/search.php at line 44queryprotected FinderIndexerQuery $queryThe query object is an instance of FinderIndexerQuery which contains and models the entire search query including the text input; static and dynamic taxonomy filters; date filters; etc. Since: 2.5 components/com_finder/models/search.php at line 68requiredTermsprotected array $requiredTerms = array()An array of all required terms ids. Since: 2.5Method Detailcomponents/com_finder/models/search.php at line 78getResultspublic array getResults()Method to get the results of the query. Returns: An array of FinderIndexerResult objects. Since: 2.5 Throws: Exception - on database error. components/com_finder/models/search.php at line 155getTotalpublic integer getTotal()Method to get the total number of results. Returns: The total number of results. Since: 2.5 Throws: Exception - on database error. components/com_finder/models/search.php at line 195getQuerypublic FinderIndexerQuery getQuery()Method to get the query object. Returns: A query object. Since: 2.5 components/com_finder/models/search.php at line 208getListQueryprotected JDatabaseQuery getListQuery()Method to build a database query to load the list data. Returns: A database query. Since: 2.5 components/com_finder/models/search.php at line 321getResultsTotalprotected integer getResultsTotal()Method to get the total number of results for the search query. Returns: The results total. Since: 2.5 Throws: Exception - on database error. components/com_finder/models/search.php at line 600getResultsDataprotected array getResultsData()Method to get the results for the search query. Returns: An array of result data objects. Since: 2.5 Throws: Exception - on database error. components/com_finder/models/search.php at line 919getExcludedLinkIdsprotected array getExcludedLinkIds()Method to get an array of link ids that match excluded terms. Returns: An array of links ids. Since: 2.5 Throws: Exception - on database error. components/com_finder/models/search.php at line 1005getTermsQueryprotected JDatabaseQuery getTermsQuery(array terms)Method to get a subquery for filtering link ids mapped to specific terms ids. Parameters: terms - An array of search term ids. Returns: A database object. Since: 2.5 components/com_finder/models/search.php at line 1032getStoreIdprotected string getStoreId(string id, boolean page)Method to get a store id based on model the 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. Parameters: id - An identifier string to generate the store id. [optional] page - True to store the data paged, false to store all data. [optional] Returns: A store id. Since: 2.5 components/com_finder/models/search.php at line 1069populateStateprotected void populateState(string ordering, string direction)Method to auto-populate the model state. Calling getState in this method will result in recursion. Parameters: ordering - An optional ordering field. [optional] direction - An optional direction. [optional] Since: 2.5 Note: Calling getState in this method will result in recursion. components/com_finder/models/search.php at line 1186retrieveprotected mixed retrieve(string id, boolean persistent)Method to retrieve data from cache. Parameters: id - The cache store id. persistent - Flag to enable the use of external cache. [optional] Returns: The cached data if found, null otherwise. Since: 2.5 components/com_finder/models/search.php at line 1223storeprotected boolean store(string id, mixed data, boolean persistent)Method to store data in cache. Parameters: id - The cache store id. data - The data to cache. persistent - Flag to enable the use of external cache. [optional] Returns: True on success, false on failure. Since: 2.5 Вернуться к записям по теме Joomla. |
ya.samposebe.ru
Вернуться к записям по теме Joomla. Joomla.Administrator\ModulesModelSelect administrator/components/com_modules/models/select.php at line 19 JObject└─JModelLegacy└─JModelList└─ModulesModelSelectpublic class ModulesModelSelectextends JModelList Subpackage: com_modules Since: 1.6
Method Detailadministrator/components/com_modules/models/select.php at line 28populateStateprotected void populateState(string ordering, string direction)Method to auto-populate the model state. Note. Calling getState in this method will result in recursion. Since: 1.6 Note: Calling getState in this method will result in recursion. Parameters: ordering - An optional ordering field. direction - An optional direction (asc|desc). administrator/components/com_modules/models/select.php at line 58getStoreIdprotected string getStoreId(string A, str id)Method to get a store id based on 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. Parameters: A - prefix for the store id. Returns: A store id. Since: 12.2 administrator/components/com_modules/models/select.php at line 71getListQueryprotected JDatabaseQuery getListQuery()Build an SQL query to load the list data. Since: 12.2 administrator/components/com_modules/models/select.php at line 108getItemspublic mixed getItems()Method to get a list of items. Returns: An array of objects on success, false on failure. Since: 12.2 Вернуться к записям по теме Joomla. |
ya.samposebe.ru
Вернуться к записям по теме Joomla. Joomla.Administrator\ContentModelArticles administrator/components/com_content/models/articles.php at line 18 JObject└─JModelLegacy└─JModelList└─ContentModelArticles All Known Subclasses: Joomla.Site\ContentModelArchive ContentModelFeatured Joomla.Site\ContentModelFeaturedpublic class ContentModelArticlesextends JModelList Subpackage: com_content Since: 11.1
Constructor Detailadministrator/components/com_content/models/articles.php at line 27__constructpublic void __construct(array config, array An, mixed properties)Constructor. Parameters: An - optional associative array of configuration settings. See Also: JController Since: 1.6 Throws: ExceptionMethod Detailadministrator/components/com_content/models/articles.php at line 69populateStateprotected void populateState(string ordering, string direction)Method to auto-populate the model state. Note. Calling getState in this method will result in recursion. Since: 1.6 Note: Calling getState in this method will result in recursion. Parameters: ordering - An optional ordering field. direction - An optional direction (asc|desc). administrator/components/com_content/models/articles.php at line 123getStoreIdprotected string getStoreId(string id)Method to get a store id based on 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. Parameters: id - A prefix for the store id. Returns: A store id. Since: 1.6 administrator/components/com_content/models/articles.php at line 142getListQueryprotected JDatabaseQuery getListQuery()Build an SQL query to load the list data. Since: 1.6 administrator/components/com_content/models/articles.php at line 286getAuthorspublic JDatabaseQuery getAuthors()Build a list of authors Since: 1.6 administrator/components/com_content/models/articles.php at line 313getItemspublic mixed getItems()Method to get a list of articles. Overridden to add a check for access levels. Returns: An array of data items on success, false on failure. Since: 1.6.1 Вернуться к записям по теме Joomla. |
ya.samposebe.ru