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) | |
getForm ($data=array(), $loadData=true) | |
getTable ($name='Task', $prefix='Table', $options=array()) | |
getItem ($pk=null) | |
getTask (array $options=[]) | |
save ($data) | |
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 statiques | |
static | configureTaskGetterOptions (OptionsResolver $resolver) |
Fonctions membres publiques statiques hérités de BaseModel | |
static | addIncludePath ($path='', $prefix='') |
Champs de données | |
const | TASK_TABLE = '#__scheduler_tasks' |
$typeAlias = 'com_scheduler.task' | |
Champs de données hérités de AdminModel | |
$typeAlias | |
Fonctions membres protégées | |
canDelete ($record) | |
populateState () | |
preprocessForm (Form $form, $data, $group='content') | |
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 | |
const | TASK_STATES |
$text_prefix = 'COM_SCHEDULER' | |
$app | |
$event_before_unlock = null | |
$event_unlock = 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 | |
processExecutionRules (array $unprocessedRules) | |
buildExecutionRules (array $executionRules) | |
wildcardIfMatch (array $target, array $reference, bool $targetToInt=false) | |
Membres hérités additionnels | |
Attributs protégés statiques hérités de BaseModel | |
static | $paths |
MVC Model to interact with the Scheduler DB. Implements methods to add, remove, edit tasks.
__construct | ( | $config = array() , |
|
MVCFactoryInterface | $factory = null , |
||
FormFactoryInterface | $formFactory = null |
||
) |
TaskModel constructor. Needed just to set $app
array | $config | An array of configuration options |
MVCFactoryInterface | null | $factory | The factory |
FormFactoryInterface | null | $formFactory | The form factory |
Références $config, Symfony\Contracts\Service\__construct(), elseif, et Factory\getApplication().
|
private |
Private method to build execution expression from input execution rules. This expression is used internally to determine execution times/conditions.
array | $executionRules | Execution rules from the Task form, post-processing. |
|
protected |
Determine whether a record may be deleted taking into consideration the user's permissions over the record.
object | $record | The database row/record in question |
|
static |
Set up an {
OptionsResolver | $resolver | The { |
AccessException |
Références OptionsResolver\setDefaults().
getForm | ( | $data = array() , |
|
$loadData = true |
|||
) |
Fetches the form object associated with this model. By default, loads the corresponding data from the DB and binds it with the form.
array | $data | Data that needs to go into the form |
bool | $loadData | Should the form load its data from the DB? |
loadForm() (defined by FormBehaviourTrait) also loads the form data by calling loadFormData() : $data [implemented here] and binds it to the form by calling $form->bind($data).
Implémente FormModelInterface.
Références $form, $this, $user, Form\addFieldPath(), Joomla\CMS\MVC\Model\getState(), JPATH_ADMINISTRATOR, Joomla\CMS\MVC\Model\loadForm(), et null.
getItem | ( | $pk = null | ) |
getTable | ( | $name = 'Task' , |
|
$prefix = 'Table' , |
|||
$options = array() |
|||
) |
Don't need to define this method since the parent getTable() implicitly deduces $name and $prefix anyways. This makes the object more transparent though.
string | $name | Name of the table |
string | $prefix | Class prefix |
array | $options | Model config array |
getTask | ( | array | $options = [] | ) |
Get a task from the database, only if an exclusive "lock" on the task can be acquired. The method supports options to customise the limitations on the fetch.
array | $options | Array with options to fetch the task:
|
UndefinedOptionsException|InvalidOptionsException | |
Références $db, $now, $options, $task, Joomla\Database\getDatabase(), Factory\getDate(), ParameterType\INTEGER, null, et ParameterType\STRING.
|
protected |
Populate the model state, we use these instead of toying with input or the global state
Références $app, ComponentHelper\getParams(), et Joomla\CMS\MVC\Model\setState().
Method to allow derived classes to preprocess the form.
Form | $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"). |
Références $data, $form, PluginHelper\importPlugin(), et Joomla\CMS\MVC\Model\preprocessForm().
|
private |
Clean up and standardise execution rules
array | $unprocessedRules | The form data [? can just replace with execution_interval] |
save | ( | $data | ) |
array | $data | The form data |
Références $data, $id, Factory\getDate(), Joomla\CMS\MVC\Model\getState(), et null.
|
private |
Determine if an array is populated by all its possible values by comparison to a reference array, if found a match a wildcard '*' is returned.
array | $target | The target array |
array | $reference | The reference array, populated by the complete set of possible values in $target |
bool | $targetToInt | If true, converts $target array values to integers before comparing |
Références $target.
|
protected |
The Application object, for convenience
|
protected |
|
protected |
|
protected |
$typeAlias = 'com_scheduler.task' |
|
protected |
const TASK_TABLE = '#__scheduler_tasks' |