Class FinderModelMaps

Description

Maps model for the Finder package.

  • since: 2.5

Located in /administrator/components/com_finder/models/maps.php (line 19)

JObject
   |
   --JModelLegacy
      |
      --JModelList
         |
         --FinderModelMaps
Method Summary
 FinderModelMaps __construct ([array $config = array()])
 boolean canDelete (object $record)
 boolean canEditState (object $record)
 boolean delete (array &$pks)
 string getStoreId ([string $id = ''])
 JTable getTable ([string $type = 'Map'], [string $prefix = 'FinderTable'], [array $config = array()])
 void populateState ([string $ordering = null], [string $direction = null])
 boolean publish (array &$pks, [integer $value = 1])
 boolean purge ()
Variables
Methods
Constructor __construct (line 29)

Constructor.

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

Redefinition of:
JModelList::__construct()
Constructor.
canDelete (line 51)

Method to test whether a record can be deleted.

  • return: True if allowed to delete the record. Defaults to the permission for the component.
  • since: 2.5
  • access: protected
boolean canDelete (object $record)
  • object $record: A record object.
canEditState (line 66)

Method to test whether a record can be deleted.

  • return: True if allowed to change the state of the record. Defaults to the permission for the component.
  • since: 2.5
  • access: protected
boolean canEditState (object $record)
  • object $record: A record object.
delete (line 81)

Method to delete one or more records.

  • return: True if successful, false if an error occurs.
  • since: 2.5
  • access: public
boolean delete (array &$pks)
  • array &$pks: An array of record primary keys.
getListQuery (line 151)

Build an SQL query to load the list data.

  • return: A JDatabaseQuery object
  • since: 2.5
  • access: protected
JDatabaseQuery getListQuery ()

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

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: 2.5
  • access: protected
string getStoreId ([string $id = ''])
  • string $id: A prefix for the store id. [optional]

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

Returns a JTable object, always creating it.

  • return: A database object
  • since: 2.5
  • access: public
JTable getTable ([string $type = 'Map'], [string $prefix = 'FinderTable'], [array $config = array()])
  • string $type: The table type to instantiate. [optional]
  • string $prefix: A prefix for the table class name. [optional]
  • array $config: Configuration array for model. [optional]

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

Method to auto-populate the model state. Calling getState in this method will result in recursion.

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

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

Method to change the published state of one or more records.

  • return: True on success.
  • since: 2.5
  • access: public
boolean publish (array &$pks, [integer $value = 1])
  • array &$pks: A list of the primary keys to change.
  • integer $value: The value of the published state. [optional]
purge (line 338)

Method to purge all maps from the taxonomy.

  • return: Returns true on success, false on failure.
  • since: 2.5
  • access: public
boolean purge ()

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:07:39 +0100 by phpDocumentor 1.4.3