Class InstallerModelUpdate

Description
  • since: 1.6

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

JObject
   |
   --JModel
      |
      --JModelList
         |
         --InstallerModelUpdate
Method Summary
InstallerModelUpdate __construct ([array $config = array()])
boolean enableSites ()
boolean findUpdates ([int $eid = 0], [ $cache_timeout = 0])
boolean install (JUpdate $update)
void populateState ([ $ordering = null], [ $direction = null])
boolean purge ()
void update (Array[int] $uids)
Variables
Methods
Constructor __construct (line 30)

Constructor.

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

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

Enables any disabled rows in #__update_sites table

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

Finds updates for an extension.

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

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.
install (line 189)

Handles the actual update installation.

  • return: Result of install
  • since: 1.6
  • access: private
boolean install (JUpdate $update)
  • JUpdate $update: An update definition
populateState (line 54)

Method to auto-populate the model state.

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

  • since: 1.6
  • access: protected
void populateState ([ $ordering = null], [ $direction = null])
  • $ordering
  • $direction

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

Removes all of the updates from the table.

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

Update function.

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

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

Inherited Methods

Inherited From JModelList

JModelList::__construct()
JModelList::getItems()
JModelList::getListQuery()
JModelList::getPagination()
JModelList::getStart()
JModelList::getStoreId()
JModelList::getTotal()
JModelList::getUserStateFromRequest()
JModelList::populateState()
JModelList::_getListQuery()

Inherited From JModel

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

Inherited From JObject

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

Documentation generated on Mon, 25 Jun 2012 14:00:18 -0500 by phpDocumentor 1.4.4