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 | |
getTable ($type= 'Category', $prefix= 'CategoriesTable', $config=array()) | |
getItem ($pk=null) | |
getForm ($data=array(), $loadData=true) | |
save ($data) | |
publish (&$pks, $value=1) | |
rebuild () | |
saveorder ($idArray=null, $lft_array=null) | |
Fonctions membres publiques inherited from JModelAdmin | |
__construct ($config=array()) | |
batch ($commands, $pks, $contexts) | |
checkin ($pks=array()) | |
checkout ($pk=null) | |
delete (&$pks) | |
reorder ($pks, $delta=0) | |
Fonctions membres publiques inherited from JModelForm | |
validate ($form, $data, $group=null) | |
Fonctions membres publiques inherited from JModel | |
getDbo () | |
getName () | |
getState ($property=null, $default=null) | |
setDbo (&$db) | |
setState ($property, $value=null) | |
Fonctions membres publiques inherited from JObject | |
__toString () | |
def ($property, $default=null) | |
get ($property, $default=null) | |
getProperties ($public=true) | |
getError ($i=null, $toString=true) | |
getErrors () | |
set ($property, $value=null) | |
setProperties ($properties) | |
setError ($error) | |
toString () |
Fonctions membres protégées | |
canDelete ($record) | |
canEditState ($record) | |
populateState () | |
getReorderConditions ($table) | |
loadFormData () | |
preprocessForm (JForm $form, $data, $group= 'content') | |
batchCopy ($value, $pks, $contexts) | |
batchMove ($value, $pks, $contexts) | |
cleanCache ($group=null, $client_id=0) | |
generateNewTitle ($parent_id, $alias, $title) | |
Fonctions membres protégées inherited from JModelAdmin | |
batchAccess ($value, $pks, $contexts) | |
batchLanguage ($value, $pks, $contexts) | |
prepareTable (&$table) | |
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_CATEGORIES' | |
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() |
|
protected |
Batch copy categories to a new category.
integer | $value | The new category. |
array | $pks | An array of row IDs. |
array | $contexts | An array of item contexts. |
Réimplémentée à partir de JModelAdmin.
Références $canCreate, $count, $db, $extension, $i, $parts, $query, $title, $user, JText\_(), elseif, JFactory\getApplication(), JFactory\getUser(), JArrayHelper\getValue(), null, et JText\sprintf().
|
protected |
Batch move categories to a new category.
integer | $value | The new category ID. |
array | $pks | An array of row IDs. |
array | $contexts | An array of item contexts. |
Réimplémentée à partir de JModelAdmin.
Références $canCreate, $db, $extension, $query, $user, JText\_(), JFactory\getApplication(), JFactory\getUser(), JText\sprintf(), et JArrayHelper\toInteger().
|
protected |
Method to test whether a record can be deleted.
object | $record | A record object. |
Réimplémentée à partir de JModelAdmin.
Références $user, et JFactory\getUser().
|
protected |
Method to test whether a record can have its state changed.
object | $record | A record object. |
Réimplémentée à partir de JModelAdmin.
Références $user, elseif, et JFactory\getUser().
|
protected |
Custom clean the cache of com_content and content modules
Réimplémentée à partir de JModel.
Références $extension, et JRequest\getCmd().
|
protected |
Method to change the title & alias.
integer | $parent_id | The id of the parent. |
string | $alias | The alias. |
string | $title | The title. |
Réimplémentée à partir de JModelAdmin.
Références $parent_id, $title, et JString\increment().
CategoriesModelCategory::getForm | ( | $data = array() , |
|
$loadData = true |
|||
) |
Method to get the row 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 $data, $extension, $parts, $user, JFactory\getApplication(), et JFactory\getUser().
CategoriesModelCategory::getItem | ( | $pk = null | ) |
Method to get a category.
integer | $pk | An optional id of the object to get, otherwise the id from the model state is used. |
Réimplémentée à partir de JModelAdmin.
Références $date, JFactory\getApplication(), jimport(), et null.
|
protected |
A protected method to get the where clause for the reorder This ensures that the row will be moved relative to a row with the same extension
JCategoryTable | $table | Current table instance |
Réimplémentée à partir de JModelAdmin.
CategoriesModelCategory::getTable | ( | $type = 'Category' , |
|
$prefix = 'CategoriesTable' , |
|||
$config = array() |
|||
) |
Method to get a table object, load it if necessary.
string | $type | The table name. Optional. |
string | $prefix | The class prefix. 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 $data, et JFactory\getApplication().
|
protected |
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, $extension, $params, $parts, JFactory\getApplication(), JRequest\getCmd(), JRequest\getInt(), JComponentHelper\getParams(), et null.
|
protected |
Method to preprocess the form.
JForm | $form | A JForm object. |
mixed | $data | The data expected for the form. |
string | $groups | The name of the plugin group to import. |
Exception | if there is an error in the form event. |
Réimplémentée à partir de JModelForm.
Références $data, $extension, $lang, $name, $path, JText\_(), JPath\clean(), JFactory\getLanguage(), jimport(), JPATH_ADMINISTRATOR, JPATH_BASE, JForm\loadFile(), null, et JForm\setFieldAttribute().
CategoriesModelCategory::publish | ( | & | $pks, |
$value = 1 |
|||
) |
Method to change the published state of one or more records.
array | $pks | A list of the primary keys to change. |
integer | $value | The value of the published state. |
Réimplémentée à partir de JModelAdmin.
Références $dispatcher, $extension, JRequest\getCmd(), JDispatcher\getInstance(), et JPluginHelper\importPlugin().
CategoriesModelCategory::rebuild | ( | ) |
Method rebuild the entire nested set tree.
CategoriesModelCategory::save | ( | $data | ) |
Method to save the form data.
array | $data | The form data. |
Réimplémentée à partir de JModelAdmin.
Références $data, $dispatcher, $title, JDispatcher\getInstance(), JRequest\getVar(), et JPluginHelper\importPlugin().
Method to save the reordered nested set tree. First we save the new order values in the lft values of the changed ids. Then we invoke the table rebuild to implement the new ordering.
array | $idArray | An array of primary key ids. |
integer | $lft_array | The lft value |
Réimplémentée à partir de JModelAdmin.
|
protected |
Réimplémentée à partir de JModelAdmin.