Class PluginsModelPlugin

Description

Plugin model.

  • since: 1.6

Located in /administrator/components/com_plugins/models/plugin.php (line 19)

JObject
   |
   --JModelLegacy
      |
      --JModelForm
         |
         --JModelAdmin
            |
            --PluginsModelPlugin
Variable Summary
 string $helpKey
 string $helpURL
 mixed $_cache
Method Summary
 void cleanCache ([ $group = null], [ $client_id = 0])
 JForm getForm ([array $data = array()], [boolean $loadData = true])
 object An getHelp ()
 mixed getItem ([integer $pk = null])
 array getReorderConditions (object A $table)
 JTable getTable ([type $type = 'Extension'], [string $prefix = 'JTable'], [array $config = array()])
 mixed loadFormData ()
 void populateState ()
 mixed preprocessForm (JForm $form, mixed $data, [ $group = 'content'])
 boolean save (array $data)
Variables
string $event_after_save = 'onExtensionAfterSave' (line 39)
  • var: The event to trigger after saving the data.
  • since: 1.6
  • access: protected

Redefinition of:
JModelAdmin::$event_after_save
The event to trigger after saving the data.
string $event_before_save = 'onExtensionBeforeSave' (line 45)
  • var: The event to trigger after before the data.
  • since: 1.6
  • access: protected

Redefinition of:
JModelAdmin::$event_before_save
The event to trigger before saving the data.
string $helpKey = 'JHELP_EXTENSIONS_PLUGIN_MANAGER_EDIT' (line 25)
  • var: The help screen key for the module.
  • since: 1.6
  • access: protected
string $helpURL (line 31)
  • var: The help screen base URL for the module.
  • since: 1.6
  • access: protected
mixed $_cache (line 33)
  • access: protected

Inherited Variables

Inherited from JModelAdmin

JModelAdmin::$event_after_delete
JModelAdmin::$event_before_delete
JModelAdmin::$event_change_state
JModelAdmin::$text_prefix

Inherited from JModelForm

JModelForm::$_forms

Inherited from JModelLegacy

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

Inherited from JObject

JObject::$_errors
Methods
cleanCache (line 326)

Custom clean cache method, plugins are cached in 2 places for different clients

  • since: 1.6
  • access: protected
void cleanCache ([ $group = null], [ $client_id = 0])
  • $group
  • $client_id

Redefinition of:
JModelLegacy::cleanCache()
Clean the cache
getForm (line 55)

Method to get the record form.

  • return: A JForm object on success, false on failure
  • since: 1.6
  • access: public
JForm 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.

Redefinition of:
JModelForm::getForm()
Abstract method for getting the form from the model.
getHelp (line 316)

Get the necessary data to load an item help screen.

  • return: object with key, url, and local properties for loading the item help screen.
  • since: 1.6
  • access: public
object An getHelp ()
getItem (line 125)

Method to get a single record.

  • return: Object on success, false on failure.
  • access: public
mixed getItem ([integer $pk = null])
  • integer $pk: The id of the primary key.
getReorderConditions (line 284)

A protected method to get a set of ordering conditions.

  • return: An array of conditions to add to add to ordering queries.
  • since: 1.6
  • access: protected
array getReorderConditions (object A $table)
  • object A $table: record object.
getTable (line 177)

Returns a reference to the a Table object, always creating it.

  • return: A database object
  • access: public
JTable getTable ([type $type = 'Extension'], [string $prefix = 'JTable'], [array $config = array()])
  • type $type: The table type to instantiate
  • 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.
loadFormData (line 103)

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

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

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

Auto-populate the model state.

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

  • since: 1.6
  • access: protected
void populateState ()

Redefinition of:
JModelLegacy::populateState()
Method to auto-populate the model state.
preprocessForm (line 209)
  • return: True if successful.
  • throws: Exception if there is an error in the form event.
  • since: 1.6
  • access: protected
mixed preprocessForm (JForm $form, mixed $data, [ $group = 'content'])
  • object A $form: form object.
  • mixed $data: The data expected for the form.
  • $group

Redefinition of:
JModelForm::preprocessForm()
Method to allow derived classes to preprocess the form.
save (line 299)

Override method to save the form data.

  • return: True on success.
  • since: 1.6
  • access: public
boolean save (array $data)
  • array $data: The form data.

Inherited Methods

Inherited From JModelAdmin

 JModelAdmin::__construct()
 JModelAdmin::batch()
 JModelAdmin::batchAccess()
 JModelAdmin::batchCopy()

Inherited From JModelForm

 JModelForm::checkin()
 JModelForm::checkout()
 JModelForm::getForm()
 JModelForm::loadForm()
 JModelForm::loadFormData()
 JModelForm::preprocessData()
 JModelForm::preprocessForm()
 JModelForm::validate()

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