Class ModulesModelModules. Jmodellist joomla 3


JModelList *Документация по Joomla 3.0.2

Вернуться к записям по теме Joomla.

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\WeblinksModelWeblinks

public class JModelListextends JModelLegacy

Subpackage: Model Since: 12.2 Field Summary
protected 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.

Fields inherited from Joomla.Platform\JObject
_errors
Constructor Summary
void

__construct(array config, mixed properties)

Constructor.

Method Summary
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

Methods inherited from Joomla.Legacy\JModelLegacy
__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 36

context

protected string $context = null

Context 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 44

filter_fields

protected array $filter_fields = array()

Valid filter fields or ordering.

Since: 12.2 libraries/legacy/model/list.php at line 52

query

protected JDatabaseQuery $query = array()

An internal cache for the last query used.

Since: 12.2

Constructor 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: Exception

Method 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.

Returns: A JDatabaseQuery object Since: 12.2 libraries/legacy/model/list.php at line 113

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 150

getListQuery

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 199

getStoreId

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 253

getStart

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 293

populateState

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 349

getUserStateFromRequest

public 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 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

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

UsersModelLevels *Документация по Joomla 3.0.2

Вернуться к записям по теме Joomla.

Joomla.Administrator\UsersModelLevels

administrator/components/com_users/models/levels.php at line 19 JObject└─JModelLegacy└─JModelList└─UsersModelLevels

public class UsersModelLevelsextends JModelList

Subpackage: com_users Since: 1.6 Fields inherited from Joomla.Platform\JObject
_errors
Constructor Summary
void

__construct(array config, array An, mixed properties)

Constructor.

Method Summary
protected void

populateState(string ordering, string direction)

Method to auto-populate the model state.

protected string

getStoreId(string id)

Method to get a store id based on model configuration state.

protected JDatabaseQuery

getListQuery()

Build an SQL query to load the list data.

boolean

reorder(int The, integer Increment,, mixed pk, int direction)

Method to adjust the ordering of a row.

void

saveorder(array An, int +/-1, mixed pks, mixed order)

Saves the manually set order of records.

Methods inherited from Joomla.Legacy\JModelLegacy
__construct, _createFileName, _createTable, _getList, _getListCount, addIncludePath, addTablePath, cleanCache, getDbo, getInstance, getName, getState, getTable, populateState, setDbo, setState

Constructor Detail

administrator/components/com_users/models/levels.php at line 28

__construct

public void __construct(array config, array An, mixed properties)

Constructor.

Parameters: An - optional associative array of configuration settings. See Also: JController Since: 1.6 Throws: Exception

Method Detail

administrator/components/com_users/models/levels.php at line 48

populateState

protected 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 75

getStoreId

protected 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: 12.2 administrator/components/com_users/models/levels.php at line 88

getListQuery

protected JDatabaseQuery getListQuery()

Build an SQL query to load the list data.

Since: 12.2 administrator/components/com_users/models/levels.php at line 133

reorder

public 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 170

saveorder

public 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

FinderModelIndex *Документация по Joomla 3.0.2

Вернуться к записям по теме Joomla.

Joomla.Administrator\FinderModelIndex

administrator/components/com_finder/models/index.php at line 19 JObject└─JModelLegacy└─JModelList└─FinderModelIndex

public class FinderModelIndexextends JModelList

Subpackage: com_finder Since: 2.5 Fields inherited from Joomla.Platform\JObject
_errors
Constructor Summary
void

__construct(array config, mixed properties)

Constructor.

Method Summary
protected boolean

canDelete(object record)

Method to test whether a record can be deleted.

protected boolean

canEditState(object record)

Method to test whether a record can be deleted.

boolean

delete(array &$pks, mixed pks)

Method to delete one or more records.

protected JDatabaseQuery

getListQuery()

Build an SQL query to load the list data.

array

getPluginState()

Method to get the state of the Smart Search plug-ins.

protected string

getStoreId(string id)

Method to get a store id based on model configuration state.

JTable

getTable(string type, string prefix, array config, string name, array options)

Returns a JTable object, always creating it.

boolean

purge()

Method to purge the index, deleting all links.

protected void

populateState(string ordering, string direction)

Method to auto-populate the model state.

boolean

publish(array &$pks, integer value, mixed pks)

Method to change the published state of one or more records.

Methods inherited from Joomla.Legacy\JModelLegacy
__construct, _createFileName, _createTable, _getList, _getListCount, addIncludePath, addTablePath, cleanCache, getDbo, getInstance, getName, getState, getTable, populateState, setDbo, setState

Field Detail

administrator/components/com_finder/models/index.php at line 27

event_after_delete

protected 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 35

event_before_delete

protected string $event_before_delete = 'onContentBeforeDelete'

The event to trigger before deleting the data.

Since: 2.5

Constructor Detail

administrator/components/com_finder/models/index.php at line 45

__construct

public void __construct(array config, mixed properties)

Constructor.

Parameters: config - An associative array of configuration settings. [optional] Since: 2.5 See Also: JController Throws: Exception

Method Detail

administrator/components/com_finder/models/index.php at line 70

canDelete

protected 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 85

canEditState

protected 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 100

delete

public 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 170

getListQuery

protected 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 217

getPluginState

public 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 247

getStoreId

protected 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 268

getTable

public 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 281

purge

public 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 330

populateState

protected 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 360

publish

public 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

ModulesModelModules *Документация по Joomla 3.0.2

Вернуться к записям по теме Joomla.

Joomla.Administrator\ModulesModelModules

administrator/components/com_modules/models/modules.php at line 19 JObject└─JModelLegacy└─JModelList└─ModulesModelModules

public class ModulesModelModulesextends JModelList

Subpackage: com_modules Since: 1.5 Fields inherited from Joomla.Platform\JObject
_errors
Constructor Summary
void

__construct(array config, array An, mixed properties)

Constructor.

Method Summary
protected void

populateState(string ordering, string direction)

Method to auto-populate the model state.

protected string

getStoreId(string A, str id)

Method to get a store id based on model configuration state.

protected array

_getList(int The, int Offset, string query, int limitstart, int limit)

Returns an object list

protected array

translate(array The, mixed items)

Translate a list of objects

protected JDatabaseQuery

getListQuery()

Build an SQL query to load the list data.

Methods inherited from Joomla.Legacy\JModelLegacy
__construct, _createFileName, _createTable, _getList, _getListCount, addIncludePath, addTablePath, cleanCache, getDbo, getInstance, getName, getState, getTable, populateState, setDbo, setState

Constructor Detail

administrator/components/com_modules/models/modules.php at line 28

__construct

public void __construct(array config, array An, mixed properties)

Constructor.

Parameters: An - optional associative array of configuration settings. See Also: JController Since: 1.6 Throws: Exception

Method Detail

administrator/components/com_modules/models/modules.php at line 60

populateState

protected 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 110

getStoreId

protected 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

_getList

protected 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 172

translate

protected 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 201

getListQuery

protected JDatabaseQuery getListQuery()

Build an SQL query to load the list data.

Since: 12.2 Вернуться к записям по теме Joomla.

ya.samposebe.ru

FinderModelSearch *Документация по Joomla 3.0.2

Вернуться к записям по теме Joomla.

Joomla.Site\FinderModelSearch

components/com_finder/models/search.php at line 26 JObject└─JModelLegacy└─JModelList└─FinderModelSearch

public class FinderModelSearchextends JModelList

Subpackage: com_finder Since: 2.5 Field Summary
protected string

$context

Context string for the model type

protected array

$excludedTerms

An array of all excluded terms ids.

protected array

$includedTerms

An array of all included terms ids.

protected FinderIndexerQuery

$query

The 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.

protected array

$requiredTerms

An array of all required terms ids.

Fields inherited from Joomla.Platform\JObject
_errors
Method Summary
array

getResults()

Method to get the results of the query.

integer

getTotal()

Method to get the total number of results.

FinderIndexerQuery

getQuery()

Method to get the query object.

protected JDatabaseQuery

getListQuery()

Method to build a database query to load the list data.

protected integer

getResultsTotal()

Method to get the total number of results for the search query.

protected array

getResultsData()

Method to get the results for the search query.

protected array

getExcludedLinkIds()

Method to get an array of link ids that match excluded terms.

protected JDatabaseQuery

getTermsQuery(array terms)

Method to get a subquery for filtering link ids mapped to specific terms ids.

protected string

getStoreId(string id, boolean page)

Method to get a store id based on model the configuration state.

protected void

populateState(string ordering, string direction)

Method to auto-populate the model state.

protected mixed

retrieve(string id, boolean persistent)

Method to retrieve data from cache.

protected boolean

store(string id, mixed data, boolean persistent)

Method to store data in cache.

Methods inherited from Joomla.Legacy\JModelLegacy
__construct, _createFileName, _createTable, _getList, _getListCount, addIncludePath, addTablePath, cleanCache, getDbo, getInstance, getName, getState, getTable, populateState, setDbo, setState

Field Detail

components/com_finder/models/search.php at line 34

context

protected string $context = 'com_finder.search'

Context string for the model type

Since: 2.5 components/com_finder/models/search.php at line 52

excludedTerms

protected array $excludedTerms = array()

An array of all excluded terms ids.

Since: 2.5 components/com_finder/models/search.php at line 60

includedTerms

protected array $includedTerms = array()

An array of all included terms ids.

Since: 2.5 components/com_finder/models/search.php at line 44

query

protected FinderIndexerQuery $query

The 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 68

requiredTerms

protected array $requiredTerms = array()

An array of all required terms ids.

Since: 2.5

Method Detail

components/com_finder/models/search.php at line 78

getResults

public 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 155

getTotal

public 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 195

getQuery

public FinderIndexerQuery getQuery()

Method to get the query object.

Returns: A query object. Since: 2.5 components/com_finder/models/search.php at line 208

getListQuery

protected 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 321

getResultsTotal

protected 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 600

getResultsData

protected 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 919

getExcludedLinkIds

protected 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 1005

getTermsQuery

protected 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 1032

getStoreId

protected 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 1069

populateState

protected 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 1186

retrieve

protected 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 1223

store

protected 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

ModulesModelSelect *Документация по Joomla 3.0.2

Вернуться к записям по теме Joomla.

Joomla.Administrator\ModulesModelSelect

administrator/components/com_modules/models/select.php at line 19 JObject└─JModelLegacy└─JModelList└─ModulesModelSelect

public class ModulesModelSelectextends JModelList

Subpackage: com_modules Since: 1.6 Fields inherited from Joomla.Platform\JObject
_errors
Method Summary
protected void

populateState(string ordering, string direction)

Method to auto-populate the model state.

protected string

getStoreId(string A, str id)

Method to get a store id based on model configuration state.

protected JDatabaseQuery

getListQuery()

Build an SQL query to load the list data.

mixed

getItems()

Method to get a list of items.

Methods inherited from Joomla.Legacy\JModelLegacy
__construct, _createFileName, _createTable, _getList, _getListCount, addIncludePath, addTablePath, cleanCache, getDbo, getInstance, getName, getState, getTable, populateState, setDbo, setState

Method Detail

administrator/components/com_modules/models/select.php at line 28

populateState

protected 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 58

getStoreId

protected 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 71

getListQuery

protected JDatabaseQuery getListQuery()

Build an SQL query to load the list data.

Since: 12.2 administrator/components/com_modules/models/select.php at line 108

getItems

public 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

ContentModelArticles *Документация по Joomla 3.0.2

Вернуться к записям по теме 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\ContentModelFeatured

public class ContentModelArticlesextends JModelList

Subpackage: com_content Since: 11.1 Fields inherited from Joomla.Platform\JObject
_errors
Constructor Summary
void

__construct(array config, array An, mixed properties)

Constructor.

Methods inherited from Joomla.Legacy\JModelLegacy
__construct, _createFileName, _createTable, _getList, _getListCount, addIncludePath, addTablePath, cleanCache, getDbo, getInstance, getName, getState, getTable, populateState, setDbo, setState

Constructor Detail

administrator/components/com_content/models/articles.php at line 27

__construct

public void __construct(array config, array An, mixed properties)

Constructor.

Parameters: An - optional associative array of configuration settings. See Also: JController Since: 1.6 Throws: Exception

Method Detail

administrator/components/com_content/models/articles.php at line 69

populateState

protected 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 123

getStoreId

protected 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 142

getListQuery

protected JDatabaseQuery getListQuery()

Build an SQL query to load the list data.

Since: 1.6 administrator/components/com_content/models/articles.php at line 286

getAuthors

public JDatabaseQuery getAuthors()

Build a list of authors

Since: 1.6 administrator/components/com_content/models/articles.php at line 313

getItems

public 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


Prostoy-Site | Все права защищены © 2018 | Карта сайта