Class TagsModelTags

Description

Tags Component Tags Model

  • since: 3.1

Located in /administrator/components/com_tags/models/tags.php (line 19)

JObject
   |
   --JModelLegacy
      |
      --JModelList
         |
         --TagsModelTags
Method Summary
 TagsModelTags __construct ([array $config = array()])
 mixed checkin ([mixed $pks = array()])
 string getListQuery ()
 string getStoreId ([string $id = ''])
 JTable getTable ([string $type = 'Tag'], [string $prefix = 'TagsTable'], [array $config = array()])
 void populateState ([string $ordering = null], [string $direction = null])
Variables
Methods
Constructor __construct (line 29)

Constructor.

TagsModelTags __construct ([array $config = array()])
  • array $config: An optional associative array of configuration settings.

Redefinition of:
JModelList::__construct()
Constructor.
checkin (line 237)

Method override to check-in a record or an array of record

  • return: Boolean false if there is an error, otherwise the count of records checked in.
  • since: 12.2
  • access: public
mixed checkin ([mixed $pks = array()])
  • mixed $pks: The ID of the primary key or an array of IDs
getListQuery (line 121)

Method to create a query for a list of items.

  • since: 3.1
  • access: protected
string getListQuery ()

Redefinition of:
JModelList::getListQuery()
Method to get a JDatabaseQuery object for retrieving the data set from a database.
getStoreId (line 104)

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.

  • return: A store id.
  • since: 3.1
  • access: protected
string getStoreId ([string $id = ''])
  • string $id: A prefix for the store id.

Redefinition of:
JModelList::getStoreId()
Method to get a store id based on the model configuration state.
getTable (line 309)

Method to get a table object, load it if necessary.

  • return: A JTable object
  • since: 3.1
  • access: public
JTable getTable ([string $type = 'Tag'], [string $prefix = 'TagsTable'], [array $config = array()])
  • string $type: The table name. Optional.
  • string $prefix: The class prefix. Optional.
  • array $config: Configuration array for model. Optional.

Redefinition of:
JModelLegacy::getTable()
Method to get a table object, load it if necessary.
populateState (line 65)

Method to auto-populate the model state.

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

  • since: 3.1
  • access: protected
void populateState ([string $ordering = null], [string $direction = null])
  • string $ordering: An optional ordering field.
  • string $direction: An optional direction (asc|desc).

Redefinition of:
JModelList::populateState()
Method to auto-populate the model state.

Inherited Methods

Inherited From JModelList

 JModelList::__construct()
 JModelList::getActiveFilters()
 JModelList::getFilterForm()
 JModelList::getItems()
 JModelList::getListQuery()
 JModelList::getPagination()
 JModelList::getStart()
 JModelList::getStoreId()
 JModelList::getTotal()
 JModelList::getUserStateFromRequest()
 JModelList::loadForm()
 JModelList::loadFormData()
 JModelList::populateState()
 JModelList::preprocessForm()
 JModelList::_getListQuery()

Inherited From JModelLegacy

 JModelLegacy::__construct()
 JModelLegacy::addIncludePath()
 JModelLegacy::addTablePath()
 JModelLegacy::cleanCache()
 JModelLegacy::getDbo()
 JModelLegacy::getInstance()
 JModelLegacy::getName()
 JModelLegacy::getState()
 JModelLegacy::getTable()
 JModelLegacy::loadHistory()
 JModelLegacy::populateState()
 JModelLegacy::setDbo()
 JModelLegacy::setState()
 JModelLegacy::_createFileName()
 JModelLegacy::_createTable()
 JModelLegacy::_getList()
 JModelLegacy::_getListCount()

Inherited From JObject

 JObject::__construct()
 JObject::def()
 JObject::get()
 JObject::getError()
 JObject::getErrors()
 JObject::getProperties()
 JObject::set()
 JObject::setError()
 JObject::setProperties()
 JObject::__toString()

Documentation generated on Tue, 19 Nov 2013 15:15:12 +0100 by phpDocumentor 1.4.3