[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_modules/src/Model/ -> ModulesModel.php (summary)

(no description)

Copyright: (C) 2008 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 443 lines (18 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ModulesModel:: (7 methods):
  __construct()
  populateState()
  getStoreId()
  _getList()
  translate()
  getListQuery()
  getEmptyStateQuery()


Class: ModulesModel  - X-Ref

Modules Component Module Model

__construct($config = array()   X-Ref
Constructor.

param: array  $config  An optional associative array of configuration settings.

populateState($ordering = 'a.position', $direction = 'asc')   X-Ref
Method to auto-populate the model state.

Note. Calling getState in this method will result in recursion.

param: string  $ordering   An optional ordering field.
param: string  $direction  An optional direction (asc|desc).
return: void

getStoreId($id = '')   X-Ref
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.

param: string  $id  A prefix for the store id.
return: string    A store id.

_getList($query, $limitstart = 0, $limit = 0)   X-Ref
Returns an object list

param: DatabaseQuery  $query       The query
param: int            $limitstart  Offset
param: int            $limit       The number of records
return: array

translate(&$items)   X-Ref
Translate a list of objects

param: array  &$items  The array of objects
return: array The array of translated objects

getListQuery()   X-Ref
Build an SQL query to load the list data.

return: DatabaseQuery

getEmptyStateQuery()   X-Ref
Manipulate the query to be used to evaluate if this is an Empty State to provide specific conditions for this extension.

return: DatabaseQuery



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer