Class InstallerModelDatabase

Description

Installer Manage Model

  • since: 1.6

Located in /administrator/components/com_installer/models/database.php (line 22)

JObject
   |
   --JModelLegacy
      |
      --JModelList
         |
         --InstallerModel
            |
            --InstallerModelDatabase
Variable Summary
 mixed $_context
Method Summary
 void fix ()
 mixed fixSchemaVersion (JSchemaChangeSet $changeSet)
 mixed fixUpdateVersion ()
 boolean getPagination ()
 mixed getSchemaVersion ()
 mixed getUpdateVersion ()
 void populateState ([string $ordering = null], [string $direction = null])
Variables
Methods
fix (line 53)

Fixes database problems

  • access: public
void fix ()
fixDefaultTextFilters (line 227)

For version 2.5.x only Check if com_config parameters are blank. If so, populate with com_content text filters.

  • return: boolean true if params are updated, null otherwise
  • access: public
mixed fixDefaultTextFilters ()
fixSchemaVersion (line 127)

Fix schema version if wrong

  • return: string schema version if success, false if fail
  • access: public
mixed fixSchemaVersion (JSchemaChangeSet $changeSet)
  • JSchemaChangeSet $changeSet: Schema change set
fixUpdateVersion (line 182)

Fix Joomla version in #__extensions table if wrong (doesn't equal JVersion short version)

  • return: string update version if success, false if fail
  • access: public
mixed fixUpdateVersion ()
getDefaultTextFilters (line 215)

For version 2.5.x only Check if com_config parameters are blank.

  • return: default text filters (if any)
  • access: public
string getDefaultTextFilters ()
getItems (line 72)

Gets the changeset object

  • access: public
JSchemaChangeset getItems ()

Redefinition of:
JModelList::getItems()
Method to get an array of data items.
getPagination (line 95)

Method to get a JPagination object for the data set.

  • since: 12.2
  • access: public
boolean getPagination ()

Redefinition of:
JModelList::getPagination()
Method to get a JPagination object for the data set.
getSchemaVersion (line 107)

Get version from #__schemas table

  • return: the return value from the query, or null if the query fails
  • throws: Exception
  • access: public
mixed getSchemaVersion ()
getUpdateVersion (line 169)

Get current version from #__extensions table

  • return: version if successful, false if fail
  • access: public
mixed getUpdateVersion ()
populateState (line 38)

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.

Inherited Methods

Inherited From InstallerModel

 InstallerModel::__construct()
 InstallerModel::_getList()

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 14:57:52 +0100 by phpDocumentor 1.4.3