Class InstallerModelDatabase

Description

Installer Manage Model

  • since: 1.6

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

JObject
   |
   --JModel
      |
      --JModelList
         |
         --InstallerModel
            |
            --InstallerModelDatabase
Variable Summary
mixed $_context
Method Summary
void fix ()
mixed fixSchemaVersion (JSchemaChangeSet $changeSet)
mixed fixUpdateVersion ()
void getPagination ()
mixed getSchemaVersion ()
mixed getUpdateVersion ()
void populateState ([ $ordering = null], [ $direction = null])
Variables
mixed $_context = 'com_installer.discover' (line 25)
  • access: protected

Inherited Variables

Inherited from JModelList

JModelList::$cache
JModelList::$context
JModelList::$filter_fields
JModelList::$query

Inherited from JModel

JModel::$event_clean_cache
JModel::$name
JModel::$option
JModel::$state
JModel::$_db
JModel::$__state_set

Inherited from JObject

JObject::$_errors
Methods
fix (line 48)

Fixes database problems

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

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 104)

Fix schema version if wrong

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

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 191)

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 65)

Gets the changeset object

  • access: public
JSchemaChangeset getItems ()

Redefinition of:
JModelList::getItems()
Method to get an array of data items.
getPagination (line 72)
  • access: public
void getPagination ()

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

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 145)

Get current version from #__extensions table

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

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.

Inherited Methods

Inherited From InstallerModel

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

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 13:54:00 -0500 by phpDocumentor 1.4.4