Class InstallerModelUpdate

Description

Installer Update Model

  • since: 1.6

Located in /administrator/components/com_installer/models/update.php (line 21)

JObject
   |
   --JModelLegacy
      |
      --JModelList
         |
         --InstallerModelUpdate
Method Summary
 InstallerModelUpdate __construct ([array $config = array()])
 boolean enableSites ()
 boolean findUpdates ([int $eid = 0], [int $cache_timeout = 0])
 mixed getForm ([array $data = array()], [boolean $loadData = true])
 mixed loadFormData ()
 void populateState ([string $ordering = null], [string $direction = null])
 boolean purge ()
 void update (array $uids)
Variables
Methods
Constructor __construct (line 31)

Constructor.

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

Redefinition of:
JModelList::__construct()
Constructor.
enableSites (line 197)

Enables any disabled rows in #__update_sites table

  • return: result of operation
  • since: 1.6
  • access: public
boolean enableSites ()
findUpdates (line 148)

Finds updates for an extension.

  • return: Result
  • since: 1.6
  • access: public
boolean findUpdates ([int $eid = 0], [int $cache_timeout = 0])
  • int $eid: Extension identifier to look for
  • int $cache_timeout: Cache timout
getForm (line 345)

Method to get the row form.

  • return: A JForm object on success, false on failure
  • since: 2.5.2
  • access: public
mixed getForm ([array $data = array()], [boolean $loadData = true])
  • array $data: Data for the form.
  • boolean $loadData: True if the form is to load its own data (default case), false if not.
getListQuery (line 91)

Method to get the database query

  • return: The database query
  • since: 1.6
  • access: protected
JDatabaseQuery getListQuery ()

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

Method to get the data that should be injected in the form.

  • return: The data for the form.
  • since: 2.5.2
  • access: protected
mixed loadFormData ()

Redefinition of:
JModelList::loadFormData()
Method to get the data that should be injected in the form.
populateState (line 61)

Method to auto-populate the model state.

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

  • since: 1.6
  • 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.
purge (line 165)

Removes all of the updates from the table.

  • return: result of operation
  • since: 1.6
  • access: public
boolean purge ()
update (line 231)

Update function.

Sets the "result" state with the result of the operation.

  • since: 1.6
  • access: public
void update (array $uids)
  • array $uids: Array[int] List of updates to apply

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:16:10 +0100 by phpDocumentor 1.4.3