Joomla CMS  4.2.2
Documentation des API du CMS Joomla en version 4.2.2
Référence de l'espace de nommage Joomla\CMS\MVC\Model

Structures de données

class  AdminModel
 
class  BaseDatabaseModel
 
class  BaseModel
 
interface  DatabaseModelInterface
 
class  FormModel
 
interface  FormModelInterface
 
class  ItemModel
 
interface  ItemModelInterface
 
class  ListModel
 
interface  ListModelInterface
 
interface  ModelInterface
 
interface  StatefulModelInterface
 
interface  WorkflowModelInterface
 

Fonctions

 getDbo ()
 
 setDbo (DatabaseInterface $db=null)
 
 loadForm ($name, $source=null, $options=array(), $clear=false, $xpath=null)
 
 loadFormData ()
 
 preprocessData ($context, &$data, $group='content')
 
 preprocessForm (Form $form, $data, $group='content')
 
 getFormFactory ()
 
 getState ($property=null, $default=null)
 
 setState ($property, $value=null)
 
 populateState ()
 
 setUpWorkflow ($extension)
 
 enableWorkflowBatch ()
 
 workflowPreprocessForm (Form $form, $data)
 
 workflowBeforeStageChange ()
 
 workflowBeforeSave ()
 
 workflowAfterSave ($data)
 
 batchWorkflowStage (int $value, array $pks, array $contexts)
 
 workflowCleanupBatchMove ($oldId, $newId)
 
 executeTransition (array $pks, int $transitionId)
 
 importWorkflowPlugins ()
 
 addTransitionField (Form $form, $data)
 
 getStageForNewItem (Form $form, $data)
 

Variables

trait DatabaseAwareTrait
 
trait FormBehaviorTrait
 
trait StateBehaviorTrait
 
 $state = null
 
trait WorkflowBehaviorTrait
 
 $section = ''
 
 $workflowEnabled = false
 
 $workflow
 

Description détaillée

Joomla! Content Management System

Joomla! Content Management System

Joomla! Content Management System

Joomla! Content Management System

Joomla! Content Management System

Joomla! Content Management System

Joomla! Content Management System

Documentation des fonctions

◆ addTransitionField()

Joomla\CMS\MVC\Model\addTransitionField ( Form  $form,
  $data 
)
protected

Adds a transition field to the form. Can be overwritten by the child class if not needed

Paramètres
Form$formA Form object.
mixed$dataThe data expected for the form.
Renvoie
void
Depuis
4.0.0

Références $assoc, $data, $extension, $field, $form, $id, $key, extension, et Joomla\CMS\MVC\Model\getStageForNewItem().

Référencé par Joomla\CMS\MVC\Model\workflowPreprocessForm().

◆ batchWorkflowStage()

Joomla\CMS\MVC\Model\batchWorkflowStage ( int  $value,
array  $pks,
array  $contexts 
)

Batch change workflow stage or current.

Paramètres
integer$valueThe workflow stage ID.
array$pksAn array of row IDs.
array$contextsAn array of item contexts.
Renvoie
mixed An array of new IDs on success, boolean false on failure.
Depuis
4.0.0

Références $this, $user, $value, Joomla\CMS\MVC\Model\$workflow, Text\_(), Factory\getApplication(), et Text\sprintf().

◆ enableWorkflowBatch()

Joomla\CMS\MVC\Model\enableWorkflowBatch ( )
protected

Add the workflow batch to the command list. Can be overwritten bei the child class

Renvoie
void
Depuis
4.0.0

Références $this.

Référencé par Joomla\CMS\MVC\Model\setUpWorkflow().

◆ executeTransition()

Joomla\CMS\MVC\Model\executeTransition ( array  $pks,
int  $transitionId 
)

Runs transition for item.

Paramètres
array$pksId of items to execute the transition
integer$transitionIdId of transition
Renvoie
boolean
Depuis
4.0.0

Références $app, $result, Text\_(), et Factory\getApplication().

Référencé par Joomla\CMS\MVC\Model\workflowAfterSave().

◆ getDbo()

Joomla\CMS\MVC\Model\getDbo ( )

Get the database driver.

Renvoie
DatabaseInterface The database driver.
Depuis
4.0.0
Exceptions

Référencé par BaseDatabaseModel\__get(), BaseDatabaseModel\_createTable(), TransitionTable\_getAssetName(), StageTable\_getAssetName(), TransitionTable\_getAssetParentId(), GroupTable\_getAssetParentId(), StageTable\_getAssetParentId(), WorkflowTable\_getAssetParentId(), BaseDatabaseModel\_getList(), BaseDatabaseModel\_getListCount(), admin_postinstall_languageaccess340_condition(), MfaTable\afterDelete(), UpdateModel\applyUpdateSite(), AdminModel\batchCopy(), Usergroup\check(), LinkTable\check(), StageTable\check(), WorkflowTable\check(), JoomlaInstallerScript\clearStatsCache(), JoomlaInstallerScript\convertTablesToUtf8mb4(), HtmlDocument\countMenuChildren(), MenuTable\delete(), StageTable\delete(), WorkflowTable\delete(), CoreContent\delete(), MenuType\delete(), AdminModel\delete(), CoreContent\deleteByContentId(), JoomlaInstallerScript\dropUtf8ConversionTable(), UpdateModel\finaliseUpgrade(), FieldTable\getAssetId(), UpdateModel\getCheckForSelfUpdate(), AssociationsHelper\getLanguagefilterPluginId(), ContentHelper\getLanguageId(), ListModel\getListQuery(), UpdateModel\getNonCoreExtensions(), UpdateModel\getNonCorePlugins(), MfaTable\getNumRecords(), UpdateModel\getUpdateInformation(), Updater\getUpdateSites(), UpdateModel\getUpdateSitesInfo(), httpheaders_postinstall_action(), UpdateModel\isTemplateActive(), PlgContentPagenavigation\onContentBeforeDisplay(), JoomlaInstallerScript\postflight(), UpdateModel\purge(), AdminModel\save(), Language\store(), ContentType\store(), ContactTable\store(), ContentHistory\store(), MenuType\store(), FilterTable\store(), TagTable\store(), Menu\store(), WorkflowTable\store(), StageTable\store(), Category\store(), Content\store(), CoreContent\storeUcmBase(), MfaTable\switchDefaultRecord(), JoomlaInstallerScript\uninstallEosPlugin(), JoomlaInstallerScript\updateContentTypes(), JoomlaInstallerScript\updateDatabase(), JoomlaInstallerScript\updateDatabaseMysql(), et JoomlaInstallerScript\updateManifestCaches().

◆ getFormFactory()

Joomla\CMS\MVC\Model\getFormFactory ( )
abstract

Get the FormFactoryInterface.

Renvoie
FormFactoryInterface
Depuis
4.0.0
Exceptions

Référencé par Joomla\CMS\MVC\Model\loadForm(), et MVCFactory\setFormFactoryOnObject().

◆ getStageForNewItem()

Joomla\CMS\MVC\Model\getStageForNewItem ( Form  $form,
  $data 
)
protected

Try to load a workflow stage for newly created items which does not have a workflow assigned yet. If the category is not the carrier, overwrite it on your model and deliver your own carrier.

Paramètres
Form$formA Form object.
mixed$dataThe data expected for the form.
Renvoie
boolean|integer An integer, holding the stage ID or false
Depuis
4.0.0

Références $data, $field, $form, null, et value.

Référencé par Joomla\CMS\MVC\Model\addTransitionField(), et Joomla\CMS\MVC\Model\workflowAfterSave().

◆ getState()

Joomla\CMS\MVC\Model\getState (   $property = null,
  $default = null 
)

Method to get state variables.

Paramètres
string$propertyOptional parameter name
mixed$defaultOptional default value
Renvoie
mixed The property where specified, the state object where omitted
Depuis
4.0.0

Références $default, null, et Joomla\CMS\MVC\Model\populateState().

Référencé par InstallerModel\_getList(), PluginsModel\_getList(), ModulesModel\_getList(), UpdateModel\_getList(), TasksModel\_getList(), ContactModel\buildContactExtendedData(), AdminModel\checkin(), TemplateModel\checkNewName(), AdminModel\checkout(), TemplateModel\child(), TemplateModel\cleanup(), BannerModel\click(), TemplateModel\copy(), TemplateModel\copyStyles(), TracksModel\delete(), OverridesModel\delete(), MediumModel\delete(), TemplateModel\fixTemplateName(), UserModel\getAssignedGroups(), CategoriesModel\getAssoc(), CategoryModel\getAssoc(), TracksModel\getBaseName(), CategoryModel\getCategory(), TracksModel\getCategoryName(), CategoryModel\getChildren(), InstalledModel\getClient(), TracksModel\getClientName(), ComponentModel\getComponent(), TracksModel\getContent(), ProfileModel\getData(), CacheModel\getData(), InstalledModel\getData(), DebuguserModel\getDebugActions(), DebuggroupModel\getDebugActions(), ModulesModel\getEmptyStateQuery(), CategoriesModel\getEmptyStateQuery(), TracksModel\getFileType(), FilterModel\getFilter(), WorkflowsModel\getFilterForm(), TransitionsModel\getFilterForm(), FieldsModel\getFilterForm(), MenutypesModel\getFolders(), OverrideModel\getForm(), FormModel\getForm(), ComponentModel\getForm(), GroupModel\getForm(), ContactModel\getForm(), MenuModel\getForm(), TaskModel\getForm(), CategoryModel\getForm(), ArticleModel\getForm(), FieldModel\getForm(), ItemModel\getForm(), DebuggroupModel\getGroup(), AdapterModel\getItem(), MediumModel\getItem(), ConfigModel\getItem(), NewsfeedModel\getItem(), ArticleModel\getItem(), FormModel\getItem(), OverrideModel\getItem(), UserModel\getItem(), LanguageModel\getItem(), TagModel\getItem(), MessageModel\getItem(), MenuModel\getItem(), TemplateModel\getItem(), PluginModel\getItem(), ContactModel\getItem(), CategoryModel\getItem(), StyleModel\getItem(), GroupModel\getItem(), FieldModel\getItem(), ItemModel\getItem(), ModuleModel\getItem(), AdminModel\getItem(), MediaModel\getItems(), DebuguserModel\getItems(), DebuggroupModel\getItems(), PositionsModel\getItems(), FeaturedModel\getItems(), CategoryModel\getItems(), SelectModel\getItems(), UsersModel\getItems(), CheckinModel\getItems(), ListModel\getItems(), BannersModel\getItems(), TagsModel\getItems(), CategoriesModel\getItems(), ArticlesModel\getItems(), LanguagesModel\getLanguages(), RequestsModel\getListQuery(), FiltersModel\getListQuery(), ConsentsModel\getListQuery(), SuggestionsModel\getListQuery(), NotesModel\getListQuery(), FeaturedModel\getListQuery(), SelectModel\getListQuery(), ActionlogsModel\getListQuery(), ArchiveModel\getListQuery(), TracksModel\getListQuery(), DiscoverModel\getListQuery(), ClientsModel\getListQuery(), UpdateModel\getListQuery(), BannersModel\getListQuery(), LevelsModel\getListQuery(), SearchesModel\getListQuery(), MessagesModel\getListQuery(), TasksModel\getListQuery(), LanguagesModel\getListQuery(), TemplatesModel\getListQuery(), StylesModel\getListQuery(), GroupsModel\getListQuery(), StagesModel\getListQuery(), TransitionsModel\getListQuery(), SearchModel\getListQuery(), LinksModel\getListQuery(), FieldsModel\getListQuery(), TagModel\getListQuery(), ContactsModel\getListQuery(), NewsfeedsModel\getListQuery(), TagsModel\getListQuery(), MenusModel\getListQuery(), AssociationsModel\getListQuery(), CategoriesModel\getListQuery(), MapsModel\getListQuery(), IndexModel\getListQuery(), DebuguserModel\getListQuery(), PluginsModel\getListQuery(), DebuggroupModel\getListQuery(), WorkflowsModel\getListQuery(), ArticlesModel\getListQuery(), ItemsModel\getListQuery(), ModulesModel\getListQuery(), UsersModel\getListQuery(), ManageModel\getListQuery(), HistoryModel\getListQuery(), DatabaseModel\getListQuery(), UpdatesitesModel\getListQuery(), ActionlogsModel\getLogsForItem(), TemplateModel\getMaster(), TracksModel\getMimeType(), MenusModel\getModMenuId(), ItemModel\getModules(), InstalledModel\getOption(), OverridesModel\getOverrides(), MethodModel\getPageTitle(), CacheModel\getPagination(), ListModel\getPagination(), FormModel\getReturnPage(), Indexer\getSignature(), TemplateModel\getSource(), ListModel\getStart(), ArticlesModel\getStart(), SelectModel\getStoreId(), ClientsModel\getStoreId(), SearchesModel\getStoreId(), TasksModel\getStoreId(), LevelsModel\getStoreId(), MessagesModel\getStoreId(), PluginsModel\getStoreId(), StylesModel\getStoreId(), GroupsModel\getStoreId(), FiltersModel\getStoreId(), CacheModel\getStoreId(), LinksModel\getStoreId(), FieldsModel\getStoreId(), ContactsModel\getStoreId(), RequestsModel\getStoreId(), NewsfeedsModel\getStoreId(), TagsModel\getStoreId(), SuggestionsModel\getStoreId(), ConsentsModel\getStoreId(), InstalledModel\getStoreId(), UsersModel\getStoreId(), AssociationsModel\getStoreId(), CategoriesModel\getStoreId(), FeaturedModel\getStoreId(), ModulesModel\getStoreId(), DebuggroupModel\getStoreId(), DebuguserModel\getStoreId(), NotesModel\getStoreId(), TemplatesModel\getStoreId(), ArticlesModel\getStoreId(), ItemsModel\getStoreId(), LanguagesModel\getStoreId(), BannersModel\getStoreId(), MapsModel\getStoreId(), IndexModel\getStoreId(), SearchModel\getStoreId(), ListModel\getStoreId(), UpdatesitesModel\getStoreId(), TemplateModel\getTemplate(), TemplateModel\getTemplateList(), MenutypesModel\getTypeOptionsByComponent(), MenutypesModel\getTypeOptionsFromLayouts(), TemplateModel\getUpdatedList(), DebuguserModel\getUser(), NotesModel\getUser(), StagesModel\getWorkflow(), TransitionsModel\getWorkflow(), NewsfeedModel\hit(), ArticleModel\hit(), ContactModel\hit(), CategoryModel\hit(), Indexer\index(), DownloadModel\loadFormData(), NoteModel\loadFormData(), ComponentModel\loadFormData(), NewsfeedModel\loadFormData(), BannerModel\loadFormData(), ContactModel\loadFormData(), ListModel\loadFormData(), ItemModel\loadFormData(), ArticleModel\loadFormData(), Adapter\onBeforeIndex(), Adapter\onBuildIndex(), Adapter\onStartIndex(), ModulesModel\preprocessForm(), PluginModel\preprocessForm(), FormModel\preprocessForm(), StyleModel\preprocessForm(), CategoryModel\preprocessForm(), ItemsModel\preprocessForm(), ModuleModel\preprocessForm(), ItemModel\preprocessForm(), PublishedButton\render(), FeaturedButton\render(), ActionButton\render(), LevelsModel\reorder(), WorkflowModel\save(), StageModel\save(), MediumModel\save(), FieldModel\save(), ConfigModel\save(), OverrideModel\save(), TransitionModel\save(), LanguageModel\save(), UserModel\save(), MenuModel\save(), ProfileModel\save(), TemplateModel\save(), RequestModel\save(), StyleModel\save(), CategoryModel\save(), TaskModel\save(), ModuleModel\save(), AdminModel\save(), ItemModel\save(), ModulesModel\translate(), et Joomla\CMS\MVC\Model\workflowAfterSave().

◆ importWorkflowPlugins()

Joomla\CMS\MVC\Model\importWorkflowPlugins ( )
protected

◆ loadForm()

Joomla\CMS\MVC\Model\loadForm (   $name,
  $source = null,
  $options = array(),
  $clear = false,
  $xpath = null 
)
protected

Method to get a form object.

Paramètres
string$nameThe name of the form.
string$sourceThe form source. Can be XML string if file flag is set to false.
array$optionsOptional array of options for the form creation.
boolean$clearOptional argument to force load a new form.
string$xpathAn optional xpath to search for the fields.
Renvoie
Form
Voir également
Form
Depuis
4.0.0
Exceptions

Références $data, $form, $hash, $name, $options, Form\addFieldPath(), Form\addFormPath(), class, Factory\getContainer(), Joomla\CMS\MVC\Model\getFormFactory(), ArrayHelper\getValue(), Joomla\CMS\MVC\Model\loadFormData(), et Joomla\CMS\MVC\Model\preprocessForm().

Référencé par ListModel\getFilterForm(), AssociationModel\getForm(), FileModel\getForm(), OverrideModel\getForm(), LoginModel\getForm(), MailModel\getForm(), ResetModel\getForm(), NoteModel\getForm(), UpdatesiteModel\getForm(), TemplatesModel\getForm(), ModulesModel\getForm(), DownloadModel\getForm(), LinkModel\getForm(), RequestModel\getForm(), ApplicationModel\getForm(), ComponentModel\getForm(), TemplateModel\getForm(), PluginModel\getForm(), ClientModel\getForm(), GroupModel\getForm(), FilterModel\getForm(), ConfigModel\getForm(), NewsfeedModel\getForm(), ProfileModel\getForm(), UserModel\getForm(), RemindModel\getForm(), LanguageModel\getForm(), WorkflowModel\getForm(), TagModel\getForm(), TaskModel\getForm(), MenuModel\getForm(), ContactModel\getForm(), ConfirmModel\getForm(), LevelModel\getForm(), BannerModel\getForm(), MessageModel\getForm(), StageModel\getForm(), TransitionModel\getForm(), CategoryModel\getForm(), StyleModel\getForm(), RegistrationModel\getForm(), ArticleModel\getForm(), FieldModel\getForm(), ItemModel\getForm(), ModuleModel\getForm(), ResetModel\getResetCompleteForm(), et ResetModel\getResetConfirmForm().

◆ loadFormData()

Joomla\CMS\MVC\Model\loadFormData ( )
protected

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

Renvoie
array The default data is an empty array.
Depuis
4.0.0

Référencé par ProfileModel\getForm(), ItemModel\getForm(), UpdateModel\getForm(), Joomla\CMS\MVC\Model\loadForm(), FormModel\loadForm(), et PluginsModel\loadFormData().

◆ populateState()

Joomla\CMS\MVC\Model\populateState ( )
protected

Method to auto-populate the state.

This method should only be called once per instantiation and is designed to be called on the first call to the getState() method unless the configuration flag to ignore the request is set.

Renvoie
void
Note
Calling getState in this method will result in recursion.
Depuis
4.0.0

Référencé par Joomla\CMS\MVC\Model\getState(), StageModel\populateState(), TransitionModel\populateState(), WorkflowModel\populateState(), ArchiveModel\populateState(), MenutypesModel\populateState(), MessageModel\populateState(), SearchesModel\populateState(), InstallModel\populateState(), ClientsModel\populateState(), PositionsModel\populateState(), StagesModel\populateState(), StylesModel\populateState(), LevelsModel\populateState(), CheckinModel\populateState(), TransitionsModel\populateState(), TemplatesModel\populateState(), DiscoverModel\populateState(), MessagesModel\populateState(), WorkflowsModel\populateState(), PluginsModel\populateState(), ActionlogsModel\populateState(), UpdateModel\populateState(), AssociationsModel\populateState(), TracksModel\populateState(), ManageModel\populateState(), FeaturedModel\populateState(), ModulesModel\populateState(), ContactsModel\populateState(), NewsfeedsModel\populateState(), FieldsModel\populateState(), GroupsModel\populateState(), ItemsModel\populateState(), CacheModel\populateState(), UsersModel\populateState(), CategoriesModel\populateState(), TagsModel\populateState(), LinksModel\populateState(), InstalledModel\populateState(), DebuggroupModel\populateState(), DebuguserModel\populateState(), ArticlesModel\populateState(), FiltersModel\populateState(), NoteModel\populateState(), RequestsModel\populateState(), ConsentsModel\populateState(), OverridesModel\populateState(), GroupModel\populateState(), MenusModel\populateState(), NotesModel\populateState(), PluginModel\populateState(), LanguagesModel\populateState(), DatabaseModel\populateState(), BannersModel\populateState(), MapsModel\populateState(), HistoryModel\populateState(), IndexModel\populateState(), TemplateModel\populateState(), TasksModel\populateState(), et UpdatesitesModel\populateState().

◆ preprocessData()

◆ preprocessForm()

◆ setDbo()

Joomla\CMS\MVC\Model\setDbo ( DatabaseInterface  $db = null)

Set the database driver.

Paramètres
DatabaseInterface$dbThe database driver.
Renvoie
void
Depuis
4.0.0
Obsolète:
5.0 Use the trait from the database package

Références $db.

Référencé par BaseDatabaseModel\__construct().

◆ setState()

Joomla\CMS\MVC\Model\setState (   $property,
  $value = null 
)

Method to set state variables.

Paramètres
string$propertyThe name of the property
mixed$valueThe value of the property to set or null
Renvoie
mixed The previous value of the property or null if not set
Depuis
4.0.0

Références $value, et null.

Référencé par InstallerModel\_getList(), ModulesModel\_getList(), UpdateModel\_getList(), DiscoverModel\discover_install(), DatabaseModel\fetchSchemaCache(), PluginModel\getForm(), GroupModel\getForm(), ProfileModel\getForm(), CategoryModel\getForm(), StyleModel\getForm(), FieldModel\getForm(), ItemModel\getForm(), ModuleModel\getForm(), ItemModel\getItem(), PositionsModel\getItems(), FeaturedModel\getItems(), BannersModel\getItems(), TagsModel\getListQuery(), InstallModel\install(), UpdateModel\install(), ItemModel\loadFormData(), Adapter\onBuildIndex(), Adapter\onStartIndex(), LoginModel\populateState(), StageModel\populateState(), TransitionModel\populateState(), WorkflowModel\populateState(), ConfigModel\populateState(), DownloadModel\populateState(), SelectModel\populateState(), MessagesModel\populateState(), NewsfeedModel\populateState(), ArchiveModel\populateState(), ArticleModel\populateState(), MessageModel\populateState(), SearchesModel\populateState(), InstallModel\populateState(), ClientsModel\populateState(), PositionsModel\populateState(), StagesModel\populateState(), StylesModel\populateState(), LevelsModel\populateState(), TemplatesModel\populateState(), TransitionsModel\populateState(), DiscoverModel\populateState(), WorkflowsModel\populateState(), PluginsModel\populateState(), UpdateModel\populateState(), AssociationsModel\populateState(), TracksModel\populateState(), ManageModel\populateState(), FeaturedModel\populateState(), ModulesModel\populateState(), ContactsModel\populateState(), TagModel\populateState(), LanguageModel\populateState(), NewsfeedsModel\populateState(), FieldsModel\populateState(), GroupsModel\populateState(), CacheModel\populateState(), ItemsModel\populateState(), UsersModel\populateState(), CategoriesModel\populateState(), TagsModel\populateState(), LinksModel\populateState(), StyleModel\populateState(), InstalledModel\populateState(), MenuModel\populateState(), CapabilitiesModel\populateState(), DebuggroupModel\populateState(), DebuguserModel\populateState(), ModuleModel\populateState(), ArticlesModel\populateState(), FiltersModel\populateState(), NoteModel\populateState(), ResetModel\populateState(), RequestsModel\populateState(), SuggestionsModel\populateState(), ConsentsModel\populateState(), OverridesModel\populateState(), CategoryModel\populateState(), FormModel\populateState(), RemindModel\populateState(), RemoveModel\populateState(), GroupModel\populateState(), OverrideModel\populateState(), MenusModel\populateState(), ConfirmModel\populateState(), ProfileModel\populateState(), PluginModel\populateState(), TaskModel\populateState(), RequestModel\populateState(), LanguagesModel\populateState(), DatabaseModel\populateState(), BannersModel\populateState(), MapsModel\populateState(), HistoryModel\populateState(), ExportModel\populateState(), SearchModel\populateState(), IndexModel\populateState(), TemplateModel\populateState(), RegistrationModel\populateState(), UpdatesitesModel\populateState(), ListModel\populateState(), FieldModel\populateState(), ItemModel\populateState(), AdminModel\populateState(), ManageModel\remove(), LanguageModel\save(), UserModel\save(), MenuModel\save(), MessageModel\save(), TemplateModel\save(), StyleModel\save(), CategoryModel\save(), ModuleModel\save(), AdminModel\save(), ItemModel\save(), et UpdateModel\update().

◆ setUpWorkflow()

Joomla\CMS\MVC\Model\setUpWorkflow (   $extension)

Set Up the workflow

Paramètres
string$extensionThe option and section separated by.
Renvoie
void
Depuis
4.0.0

Références $extension, $params, $parts, Joomla\CMS\MVC\Model\enableWorkflowBatch(), extension, et ComponentHelper\getParams().

Référencé par ArticleModel\__construct().

◆ workflowAfterSave()

Joomla\CMS\MVC\Model\workflowAfterSave (   $data)

◆ workflowBeforeSave()

Joomla\CMS\MVC\Model\workflowBeforeSave ( )

Preparation of workflow data/plugins

Renvoie
void
Depuis
4.0.0

Références Joomla\CMS\MVC\Model\importWorkflowPlugins().

◆ workflowBeforeStageChange()

Joomla\CMS\MVC\Model\workflowBeforeStageChange ( )

Let plugins access stage change events

Renvoie
void
Depuis
4.0.0

Références Joomla\CMS\MVC\Model\importWorkflowPlugins().

Référencé par ArticleModel\featured(), et ArticleModel\publish().

◆ workflowCleanupBatchMove()

Joomla\CMS\MVC\Model\workflowCleanupBatchMove (   $oldId,
  $newId 
)

Batch change workflow stage or current.

Paramètres
integer$oldIdThe ID of the item copied from
integer$newIdThe ID of the new item
Renvoie
null
Depuis
4.0.0

Références Joomla\CMS\MVC\Model\importWorkflowPlugins().

Référencé par ArticleModel\cleanupPostBatchCopy().

◆ workflowPreprocessForm()

Joomla\CMS\MVC\Model\workflowPreprocessForm ( Form  $form,
  $data 
)

Method to allow derived classes to preprocess the form.

Paramètres
Form$formA Form object.
mixed$dataThe data expected for the form.
Renvoie
void
Depuis
4.0.0
Voir également
FormField

Références $data, Joomla\CMS\MVC\Model\addTransitionField(), et Joomla\CMS\MVC\Model\importWorkflowPlugins().

Référencé par ArticleModel\preprocessForm().

Documentation des variables

◆ $section

$section = ''
protected

◆ $state

$state = null
protected

◆ $workflow

◆ $workflowEnabled

$workflowEnabled = false
protected

◆ DatabaseAwareTrait

trait DatabaseAwareTrait
Valeur initiale :
{
protected $_db

Database aware trait.

Depuis
4.0.0
Obsolète:
5.0 Use the trait from the database package

◆ FormBehaviorTrait

trait FormBehaviorTrait
Valeur initiale :
{
protected $_forms = array()

Trait which supports form behavior.

Depuis
4.0.0

◆ StateBehaviorTrait

trait StateBehaviorTrait
Valeur initiale :
{
protected $__state_set = null
! $readonly null
Definition: layouts/joomla/form/field/calendar.php:80

Trait which supports state behavior

Depuis
4.0.0

◆ WorkflowBehaviorTrait

trait WorkflowBehaviorTrait
Valeur initiale :
{
protected $extension = null
! $readonly null
Definition: layouts/joomla/form/field/calendar.php:80
$extension
Definition: administrator/components/com_categories/tmpl/categories/default.php:29

Trait which supports state behavior

Depuis
4.0.0