Joomla CMS
2.5.24 (avec JPlatform 11.4 inclus)
Documentation des API du CMS Joomla en version 2.5 et du framework Joomla Platform intégré
|
Fonctions membres publiques | |
batch ($commands, $pks, $contexts) | |
delete (&$pks) | |
duplicate (&$pks) | |
& | getClient () |
getForm ($data=array(), $loadData=true) | |
getItem ($pk=null) | |
getHelp () | |
getTable ($type= 'Module', $prefix= 'JTable', $config=array()) | |
validate ($form, $data, $group=null) | |
save ($data) | |
Fonctions membres publiques inherited from JModelAdmin | |
__construct ($config=array()) | |
checkin ($pks=array()) | |
checkout ($pk=null) | |
publish (&$pks, $value=1) | |
reorder ($pks, $delta=0) | |
saveorder ($pks=null, $order=null) |
Fonctions membres protégées | |
populateState () | |
batchCopy ($value, $pks, $contexts) | |
batchMove ($value, $pks, $contexts) | |
generateNewTitle ($category_id, $title, $position) | |
loadFormData () | |
prepareTable (&$table) | |
preprocessForm (JForm $form, $data, $group= 'content') | |
getReorderConditions ($table) | |
cleanCache ($group=null, $client_id=0) | |
Fonctions membres protégées inherited from JModelAdmin | |
batchAccess ($value, $pks, $contexts) | |
batchLanguage ($value, $pks, $contexts) | |
canDelete ($record) | |
canEditState ($record) | |
Fonctions membres protégées inherited from JModelForm | |
loadForm ($name, $source=null, $options=array(), $clear=false, $xpath=false) | |
Fonctions membres protégées inherited from JModel | |
_getList ($query, $limitstart=0, $limit=0) | |
_getListCount ($query) | |
_createTable ($name, $prefix= 'Table', $config=array()) |
Attributs protégés | |
$text_prefix = 'COM_MODULES' | |
$helpKey = 'JHELP_EXTENSIONS_MODULE_MANAGER_EDIT' | |
$helpURL | |
Attributs protégés inherited from JModelAdmin | |
$event_after_delete = null | |
$event_after_save = null | |
$event_before_delete = null | |
$event_before_save = null | |
$event_change_state = null | |
Attributs protégés inherited from JModelForm | |
$_forms = array() | |
Attributs protégés inherited from JModel | |
$__state_set = null | |
$_db | |
$name | |
$option = null | |
$state | |
$event_clean_cache = null | |
Attributs protégés inherited from JObject | |
$_errors = array() |
ModulesModelModule::batch | ( | $commands, | |
$pks, | |||
$contexts | |||
) |
Method to perform batch operations on a set of modules.
array | $commands | An array of commands to perform. |
array | $pks | An array of item ids. |
array | $contexts | An array of item contexts. |
Réimplémentée à partir de JModelAdmin.
Références $cmd, JText\_(), elseif, JArrayHelper\getValue(), et JArrayHelper\toInteger().
|
protected |
Batch copy modules to a new position or current.
integer | $value | The new value matching a module position. |
array | $pks | An array of row IDs. |
array | $contexts | An array of item contexts. |
Réimplémentée à partir de JModelAdmin.
Références $data, $db, $i, $menu, $query, $user, JText\_(), elseif, et JFactory\getUser().
|
protected |
Batch move modules to a new position or current.
integer | $value | The new value matching a module position. |
array | $pks | An array of row IDs. |
array | $contexts | An array of item contexts. |
Réimplémentée à partir de JModelAdmin.
Références $data, $i, $user, JText\_(), elseif, et JFactory\getUser().
|
protected |
Custom clean cache method for different clients
Réimplémentée à partir de JModel.
ModulesModelModule::delete | ( | & | $pks | ) |
Method to delete rows.
array | &$pks | An array of item ids. |
Réimplémentée à partir de JModelAdmin.
Références $db, $i, $query, $user, JText\_(), JFactory\getUser(), et JError\raiseWarning().
ModulesModelModule::duplicate | ( | & | $pks | ) |
Method to duplicate modules.
array | &$pks | An array of primary key IDs. |
Exception |
Références $db, $query, $user, JText\_(), JFactory\getUser(), null, et JError\raiseWarning().
|
protected |
Method to change the title.
integer | $category_id | The id of the category. Not used here. |
string | $title | The title. |
string | $position | The position. |
Réimplémentée à partir de JModelAdmin.
Références $title, et JString\increment().
& ModulesModelModule::getClient | ( | ) |
Method to get the client object
ModulesModelModule::getForm | ( | $data = array() , |
|
$loadData = true |
|||
) |
Method to get the record form.
array | $data | Data for the form. |
boolean | $loadData | True if the form is to load its own data (default case), false if not. |
Réimplémentée à partir de JModelForm.
Références $clientId, $data, $item, et JArrayHelper\getValue().
ModulesModelModule::getHelp | ( | ) |
Get the necessary data to load an item help screen.
ModulesModelModule::getItem | ( | $pk = null | ) |
Method to get a single record.
integer | $pk | The id of the primary key. |
Réimplémentée à partir de JModelAdmin.
Références $app, $client, $db, $extension, $path, $query, $return, JRoute\_(), JPath\clean(), elseif, JFactory\getApplication(), JApplicationHelper\getClientInfo(), JRegistry\loadString(), null, et JArrayHelper\toObject().
|
protected |
A protected method to get a set of ordering conditions.
object | $table | A record object. |
Réimplémentée à partir de JModelAdmin.
ModulesModelModule::getTable | ( | $type = 'Module' , |
|
$prefix = 'JTable' , |
|||
$config = array() |
|||
) |
Returns a reference to the a Table object, always creating it.
string | $type | The table type to instantiate |
string | $prefix | A prefix for the table class name. Optional. |
array | $config | Configuration array for model. Optional. |
Réimplémentée à partir de JModel.
Références $config, $type, et JTable\getInstance().
|
protected |
Method to get the data that should be injected in the form.
Réimplémentée à partir de JModelForm.
Références $app, $data, $params, et JFactory\getApplication().
|
protected |
Method to auto-populate the model state.
Note. Calling getState in this method will result in recursion.
Réimplémentée à partir de JModelAdmin.
Références $app, $params, JFactory\getApplication(), JRequest\getInt(), et JComponentHelper\getParams().
|
protected |
Prepare and sanitise the table prior to saving.
JTable | &$table | The database object |
Réimplémentée à partir de JModelAdmin.
Références $date, $user, ENT_QUOTES, JFactory\getDate(), et JFactory\getUser().
|
protected |
Method to preprocess the form
JForm | $form | A form object. |
mixed | $data | The data expected for the form. |
string | $group | The name of the plugin group to import (defaults to "content"). |
Exception | if there is an error loading the form. |
Réimplémentée à partir de JModelForm.
Références $client, $clientId, $data, $lang, JText\_(), JPath\clean(), JApplicationHelper\getClientInfo(), JFactory\getLanguage(), jimport(), JForm\loadFile(), et null.
ModulesModelModule::save | ( | $data | ) |
Method to save the form data.
array | $data | The form data. |
Réimplémentée à partir de JModelAdmin.
Références $data, $db, $dispatcher, $query, elseif, JDispatcher\getInstance(), JRequest\getVar(), JPluginHelper\importPlugin(), et JError\raiseWarning().
ModulesModelModule::validate | ( | $form, | |
$data, | |||
$group = null |
|||
) |
Loads ContentHelper for filters before validating data.
object | $form | The form to validate against. |
array | $data | The data to validate. |
Réimplémentée à partir de JModelForm.
Références $data, et JPATH_ADMINISTRATOR.
|
protected |
|
protected |
|
protected |
Réimplémentée à partir de JModelAdmin.