Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct ($config=array(), MVCFactoryInterface $factory=null, FormFactoryInterface $formFactory=null) | |
publish (&$pks, $value=1) | |
getItem ($pk=null) | |
getForm ($data=array(), $loadData=true) | |
validate ($form, $data, $group=null) | |
featured ($pks, $value=0, $featuredUp=null, $featuredDown=null) | |
hit () | |
delete (&$pks) | |
Fonctions membres publiques hérités de AdminModel | |
__construct ($config=array(), MVCFactoryInterface $factory=null, FormFactoryInterface $formFactory=null) | |
batch ($commands, $pks, $contexts) | |
checkin ($pks=array()) | |
checkout ($pk=null) | |
delete (&$pks) | |
getItem ($pk=null) | |
publish (&$pks, $value=1) | |
reorder ($pks, $delta=0) | |
save ($data) | |
saveorder ($pks=array(), $order=null) | |
generateTitle ($categoryId, $table) | |
initBatch () | |
editAssociations ($data) | |
Fonctions membres publiques hérités de FormModel | |
__construct ($config=array(), MVCFactoryInterface $factory=null, FormFactoryInterface $formFactory=null) | |
checkin ($pk=null) | |
checkout ($pk=null) | |
validate ($form, $data, $group=null) | |
Fonctions membres publiques hérités de BaseDatabaseModel | |
__construct ($config=array(), MVCFactoryInterface $factory=null) | |
getTable ($name='', $prefix='', $options=array()) | |
isCheckedOut ($item) | |
getDbo () | |
setDbo (DatabaseInterface $db=null) | |
__get ($name) | |
Fonctions membres publiques hérités de BaseModel | |
__construct ($config=array()) | |
getName () | |
Fonctions membres publiques hérités de CMSObject | |
__construct ($properties=null) | |
__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) | |
Fonctions membres publiques hérités de StatefulModelInterface | |
getState ($property=null, $default=null) | |
setState ($property, $value=null) | |
Fonctions membres publiques hérités de DispatcherAwareInterface | |
setDispatcher (DispatcherInterface $dispatcher) | |
Fonctions membres publiques hérités de CurrentUserInterface | |
setCurrentUser (User $currentUser) | |
Fonctions membres publiques hérités de CacheControllerFactoryAwareInterface | |
setCacheControllerFactory (CacheControllerFactoryInterface $factory) | |
Fonctions membres publiques hérités de DatabaseAwareInterface | |
setDatabase (DatabaseInterface $db) | |
Fonctions membres publiques hérités de FormFactoryAwareInterface | |
setFormFactory (FormFactoryInterface $factory) | |
Fonctions membres publiques hérités de WorkflowModelInterface | |
setUpWorkflow ($extension) | |
workflowPreprocessForm (Form $form, $data) | |
workflowBeforeStageChange () | |
workflowBeforeSave () | |
workflowAfterSave ($data) | |
workflowCleanupBatchMove ($oldId, $newId) | |
executeTransition (array $pks, int $transitionId) | |
getState ($property=null, $default=null) | |
getName () | |
getTable ($name='', $prefix='', $options=array()) | |
Champs de données | |
$typeAlias = 'com_content.article' | |
Champs de données hérités de AdminModel | |
$typeAlias | |
Fonctions membres protégées | |
cleanupPostBatchCopy (TableInterface $table, $newId, $oldId) | |
batchMove ($value, $pks, $contexts) | |
canDelete ($record) | |
canEditState ($record) | |
prepareTable ($table) | |
loadFormData () | |
getReorderConditions ($table) | |
preprocessForm (Form $form, $data, $group='content') | |
cleanCache ($group=null, $clientId=0) | |
Fonctions membres protégées hérités de AdminModel | |
batchAccess ($value, $pks, $contexts) | |
batchCopy ($value, $pks, $contexts) | |
cleanupPostBatchCopy (TableInterface $table, $newId, $oldId) | |
batchLanguage ($value, $pks, $contexts) | |
batchMove ($value, $pks, $contexts) | |
batchTag ($value, $pks, $contexts) | |
canDelete ($record) | |
canEditState ($record) | |
generateNewTitle ($categoryId, $alias, $title) | |
getReorderConditions ($table) | |
populateState () | |
prepareTable ($table) | |
checkCategoryId ($categoryId) | |
redirectToAssociations ($data) | |
Fonctions membres protégées hérités de BaseDatabaseModel | |
_getList ($query, $limitstart=0, $limit=0) | |
_getListCount ($query) | |
_createTable ($name, $prefix='Table', $config=array()) | |
bootComponent ($component) | |
dispatchEvent (EventInterface $event) | |
Attributs protégés | |
$text_prefix = 'COM_CONTENT' | |
$associationsContext = 'com_content.item' | |
$event_before_change_featured = null | |
$event_after_change_featured = null | |
Attributs protégés hérités de AdminModel | |
$text_prefix = null | |
$event_after_delete = null | |
$event_after_save = null | |
$event_before_delete = null | |
$event_before_save = null | |
$event_before_change_state = null | |
$event_change_state = null | |
$event_before_batch = null | |
$batch_copymove = 'category_id' | |
$batch_commands | |
$associationsContext = null | |
$batchSet = null | |
$user = null | |
$table = null | |
$tableClassName = null | |
$contentType = null | |
$type = null | |
Attributs protégés hérités de FormModel | |
$events_map = null | |
Attributs protégés hérités de BaseDatabaseModel | |
$option = null | |
$event_clean_cache = null | |
Attributs protégés hérités de BaseModel | |
$name | |
Attributs protégés hérités de CMSObject | |
$_errors = array() | |
Fonctions membres privées | |
canCreateCategory () | |
Membres hérités additionnels | |
Fonctions membres publiques statiques hérités de BaseModel | |
static | addIncludePath ($path='', $prefix='') |
Attributs protégés statiques hérités de BaseModel | |
static | $paths |
Item Model for an Article.
__construct | ( | $config = array() , |
|
MVCFactoryInterface | $factory = null , |
||
FormFactoryInterface | $formFactory = null |
||
) |
Constructor.
array | $config | An array of configuration options (name, state, dbo, table_path, ignore_request). |
MVCFactoryInterface | $factory | The factory. |
FormFactoryInterface | $formFactory | The form factory. |
Références $config, Symfony\Contracts\Service\__construct(), et Joomla\CMS\MVC\Model\setUpWorkflow().
|
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éférences $field, $fields, $value, Text\_(), Factory\getApplication(), FieldsHelper\getFields(), Factory\getUser(), PluginHelper\importPlugin(), et Text\sprintf().
|
private |
Is the user allowed to create an on the fly category?
Références Factory\getUser().
|
protected |
Method to test whether a record can be deleted.
object | $record | A record object. |
Références Factory\getUser().
|
protected |
Method to test whether a record can have its state edited.
object | $record | A record object. |
Références $user, et Factory\getUser().
|
protected |
Custom clean the cache of com_content and content modules
string | $group | The cache group |
integer | $clientId |
|
protected |
Function that can be overridden to do any data cleanup after batch copying data
TableInterface | $table | The table object containing the newly created item |
integer | $newId | The id of the new item |
integer | $oldId | The original item id |
Références $db, $field, $fields, $query, Factory\getApplication(), Joomla\Database\getDatabase(), FieldsHelper\getFields(), ParameterType\INTEGER, ParameterType\NULL, ParameterType\STRING, et Joomla\CMS\MVC\Model\workflowCleanupBatchMove().
delete | ( | & | $pks | ) |
Delete #__content_frontpage items if the deleted articles was featured
object | $pks | The primary key related to the contents that was deleted. |
Références $db, $query, $return, et Joomla\Database\getDatabase().
Method to toggle the featured setting of articles.
array | $pks | The ids of the items to toggle. |
integer | $value | The value to toggle to. |
string | Date | $featuredUp | The date which item featured up. |
string | Date | $featuredDown | The date which item featured down. |
Références $context, $db, $name, $query, $this, $value, Text\_(), AbstractEvent\create(), Factory\getApplication(), Joomla\Database\getDatabase(), PluginHelper\importPlugin(), ParameterType\INTEGER, ParameterType\NULL, null, ParameterType\STRING, ArrayHelper\toInteger(), et Joomla\CMS\MVC\Model\workflowBeforeStageChange().
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. |
Implémente FormModelInterface.
Références $app, $data, $form, $id, Factory\getApplication(), Joomla\CMS\MVC\Model\getState(), Factory\getUser(), Joomla\CMS\MVC\Model\loadForm(), null, et value.
getItem | ( | $pk = null | ) |
Method to get a single record.
integer | $pk | The id of the primary key. |
Références $assoc, $db, $item, $query, Associations\getAssociations(), Joomla\Database\getDatabase(), if, ParameterType\INTEGER, Associations\isEnabled(), et null.
|
protected |
A protected method to get a set of ordering conditions.
object | $table | A record object. |
Références Joomla\Database\getDatabase().
hit | ( | ) |
Void hit function for pagebreak when editing content from frontend
|
protected |
Method to get the data that should be injected in the form.
Références $app, $data, $filters, Factory\getApplication(), Joomla\CMS\MVC\Model\getState(), null, et Joomla\CMS\MVC\Model\preprocessData().
|
protected |
Prepare and sanitise the table data prior to saving.
\Joomla\CMS\Table\Table | $table | A Table object. |
Références Workflow\CONDITION_PUBLISHED, Factory\getDate(), et null.
Allows preprocessing of the Form object.
Form | $form | The form object |
array | $data | The data to be merged into the form object |
string | $group | The plugin group to be executed |
Références $data, $field, $fields, $form, $language, $languages, Associations\isEnabled(), null, Joomla\CMS\MVC\Model\preprocessForm(), et Joomla\CMS\MVC\Model\workflowPreprocessForm().
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éférences $value, et Joomla\CMS\MVC\Model\workflowBeforeStageChange().
validate | ( | $form, | |
$data, | |||
$group = null |
|||
) |
Method to validate the form data.
Form | $form | The form to validate against. |
array | $data | The data to validate. |
string | $group | The name of the field group to validate. |
Références $data, $form, et Factory\getUser().
|
protected |
|
protected |
|
protected |
|
protected |
$typeAlias = 'com_content.article' |