Joomla CMS
4.2.2
Documentation des API du CMS Joomla en version 4.2.2
|
Fonctions membres publiques | |
__construct (string $extension, ?CMSApplication $app=null, ?DatabaseDriver $db=null) | |
getConditionName (int $value) | |
getDefaultStageByCategory ($catId=0) | |
getValidTransition (array $pks, int $transitionId) | |
executeTransition (array $pks, int $transitionId) | |
createAssociation (int $pk, int $state) | |
updateAssociations (array $pks, int $state) | |
deleteAssociation (array $pks) | |
getAssociation (int $itemId) | |
Champs de données | |
const | CONDITION_NAMES |
const | CONDITION_PUBLISHED = 1 |
const | CONDITION_UNPUBLISHED = 0 |
const | CONDITION_TRASHED = -2 |
const | CONDITION_ARCHIVED = 2 |
Fonctions membres protégées | |
getComponent () | |
Attributs protégés | |
$component = null | |
$extension = null | |
$app | |
$db | |
Workflow Class.
__construct | ( | string | $extension, |
?CMSApplication | $app = null , |
||
?DatabaseDriver | $db = null |
||
) |
Class constructor
string | $extension | The extension name |
?CMSApplication | $app Application Object | |
?DatabaseDriver | $db Database Driver Object |
Références $app, $db, $extension, extension, Factory\getApplication(), et Factory\getDbo().
createAssociation | ( | int | $pk, |
int | $state | ||
) |
Creates an association for the workflow_associations table
integer | $pk | ID of the item |
integer | $state | ID of state |
Références $query, $state, extension, et ParameterType\INTEGER.
deleteAssociation | ( | array | $pks | ) |
Removes associations from the workflow_associations table
integer[] | $pks ID of content |
Références $query, extension, et ArrayHelper\toInteger().
executeTransition | ( | array | $pks, |
int | $transitionId | ||
) |
Executes a transition to change the current state in the association table
integer[] | $pks The item IDs, which should use the transition | |
integer | $transitionId | The transition which should be executed |
Références $assoc, $this, AbstractEvent\create(), extension, PluginHelper\importPlugin(), et ArrayHelper\toInteger().
getAssociation | ( | int | $itemId | ) |
Loads an existing association item with state and item ID
integer | $itemId | The item ID to load |
Références $itemId, $query, extension, et ParameterType\INTEGER.
|
protected |
Returns the booted component
Références $component, $parts, et extension.
getConditionName | ( | int | $value | ) |
Returns the translated condition name, based on the given number
integer | $value | The condition ID |
Références $component, $value, extension, et ArrayHelper\getValue().
getDefaultStageByCategory | ( | $catId = 0 | ) |
Try to load a workflow default stage by category ID.
integer | $catId | The category ID. |
Références $category, $query, elseif, extension, et ParameterType\INTEGER.
getValidTransition | ( | array | $pks, |
int | $transitionId | ||
) |
Check if a transition can be executed
integer[] | $pks The item IDs, which should use the transition | |
integer | $transitionId | The transition which should be executed |
Références $option, $parts, $query, $user, extension, ParameterType\INTEGER, null, et ArrayHelper\toInteger().
updateAssociations | ( | array | $pks, |
int | $state | ||
) |
Update an existing association with a new state
array | $pks | An Array of item IDs which should be changed |
integer | $state | The new state ID |
Références $query, $state, extension, ParameterType\INTEGER, et ArrayHelper\toInteger().
|
protected |
|
protected |
|
protected |
const CONDITION_ARCHIVED = 2 |
Every item with a state which has the condition ARCHIVED is archived
const CONDITION_NAMES |
Condition to names mapping
Référencé par Joomla\CMS\Workflow\getConditions().
const CONDITION_PUBLISHED = 1 |
Every item with a state which has the condition PUBLISHED is visible/active on the page
Référencé par Icon\edit(), et ArticleModel\prepareTable().
const CONDITION_TRASHED = -2 |
Every item with a state which has the condition TRASHED is trashed
const CONDITION_UNPUBLISHED = 0 |
Every item with a state which has the condition UNPUBLISHED is not visible/inactive on the page
Référencé par Icon\edit().