[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/administrator/components/com_banners/src/Model/ -> BannersModel.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: 285 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

BannersModel:: (6 methods):
  __construct()
  getCategoryOrders()
  getListQuery()
  getStoreId()
  getTable()
  populateState()


Class: BannersModel  - X-Ref

Methods supporting a list of banner records.

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

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

getCategoryOrders()   X-Ref
Method to get the maximum ordering value for each category.

return: array

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

return: \Joomla\Database\DatabaseQuery

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.

getTable($type = 'Banner', $prefix = 'Administrator', $config = array()   X-Ref
Returns a reference to the a Table object, always creating it.

param: string  $type    The table type to instantiate
param: string  $prefix  A prefix for the table class name. Optional.
param: array   $config  Configuration array for model. Optional.
return: Table  A Table object

populateState($ordering = 'a.name', $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



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