|
| __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) |
|
| __construct ($config=array(), MVCFactoryInterface $factory=null, FormFactoryInterface $formFactory=null) |
|
| checkin ($pk=null) |
|
| checkout ($pk=null) |
|
| validate ($form, $data, $group=null) |
|
| __construct ($config=array(), MVCFactoryInterface $factory=null) |
|
| getTable ($name='', $prefix='', $options=array()) |
|
| isCheckedOut ($item) |
|
| getDbo () |
|
| setDbo (DatabaseInterface $db=null) |
|
| __get ($name) |
|
| __construct ($config=array()) |
|
| getName () |
|
| __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) |
|
| getState ($property=null, $default=null) |
|
| setState ($property, $value=null) |
|
| setDispatcher (DispatcherInterface $dispatcher) |
|
| setCurrentUser (User $currentUser) |
|
| setCacheControllerFactory (CacheControllerFactoryInterface $factory) |
|
| setDatabase (DatabaseInterface $db) |
|
| setFormFactory (FormFactoryInterface $factory) |
|
| getForm ($data=array(), $loadData=true) |
|
|
| 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) |
|
| _getList ($query, $limitstart=0, $limit=0) |
|
| _getListCount ($query) |
|
| _createTable ($name, $prefix='Table', $config=array()) |
|
| bootComponent ($component) |
|
| dispatchEvent (EventInterface $event) |
|
Prototype admin model.
- Depuis
- 1.6
◆ __construct()
Constructor.
- Paramètres
-
array | $config | An array of configuration options (name, state, dbo, table_path, ignore_request). |
MVCFactoryInterface | $factory | The factory. |
FormFactoryInterface | $formFactory | The form factory. |
- Depuis
- 1.6
- Exceptions
-
Références $config, Symfony\Contracts\Service\__construct(), et elseif.
◆ batch()
batch |
( |
|
$commands, |
|
|
|
$pks, |
|
|
|
$contexts |
|
) |
| |
Method to perform batch operations on an item or a set of items.
- Paramètres
-
array | $commands | An array of commands to perform. |
array | $pks | An array of item ids. |
array | $contexts | An array of item contexts. |
- Renvoie
- boolean Returns true on success, false on failure.
- Depuis
- 1.7
Références $result, Text\_(), elseif, ArrayHelper\getValue(), et ArrayHelper\toInteger().
◆ batchAccess()
batchAccess |
( |
|
$value, |
|
|
|
$pks, |
|
|
|
$contexts |
|
) |
| |
|
protected |
Batch access level changes for a group of rows.
- Paramètres
-
integer | $value | The new value matching an Asset Group ID. |
array | $pks | An array of row IDs. |
array | $contexts | An array of item contexts. |
- Renvoie
- boolean True if successful, false otherwise and internal error is set.
- Depuis
- 1.7
Références $value, et Text\_().
◆ batchCopy()
batchCopy |
( |
|
$value, |
|
|
|
$pks, |
|
|
|
$contexts |
|
) |
| |
|
protected |
◆ batchLanguage()
batchLanguage |
( |
|
$value, |
|
|
|
$pks, |
|
|
|
$contexts |
|
) |
| |
|
protected |
Batch language changes for a group of rows.
- Paramètres
-
string | $value | The new value matching a language. |
array | $pks | An array of row IDs. |
array | $contexts | An array of item contexts. |
- Renvoie
- boolean True if successful, false otherwise and internal error is set.
- Depuis
- 2.5
Références $value, et Text\_().
◆ batchMove()
batchMove |
( |
|
$value, |
|
|
|
$pks, |
|
|
|
$contexts |
|
) |
| |
|
protected |
Batch move items to a new category
- Paramètres
-
integer | $value | The new category ID. |
array | $pks | An array of row IDs. |
array | $contexts | An array of item contexts. |
- Renvoie
- boolean True if successful, false otherwise and internal error is set.
- Depuis
- 1.7
Références $value, Text\_(), et Text\sprintf().
◆ batchTag()
batchTag |
( |
|
$value, |
|
|
|
$pks, |
|
|
|
$contexts |
|
) |
| |
|
protected |
Batch tag a list of item.
- Paramètres
-
integer | $value | The value of the new tag. |
array | $pks | An array of row IDs. |
array | $contexts | An array of item contexts. |
- Renvoie
- boolean True if successful, false otherwise and internal error is set.
- Depuis
- 3.1
Références $value, Text\_(), et AbstractEvent\create().
◆ canDelete()
Method to test whether a record can be deleted.
- Paramètres
-
object | $record | A record object. |
- Renvoie
- boolean True if allowed to delete the record. Defaults to the permission for the component.
- Depuis
- 1.6
Références Factory\getUser().
◆ canEditState()
Method to test whether a record can have its state changed.
- Paramètres
-
object | $record | A record object. |
- Renvoie
- boolean True if allowed to change the state of the record. Defaults to the permission for the component.
- Depuis
- 1.6
Références Factory\getUser().
◆ checkCategoryId()
checkCategoryId |
( |
|
$categoryId | ) |
|
|
protected |
◆ checkin()
checkin |
( |
|
$pks = array() | ) |
|
Method override to check-in a record or an array of record
- Paramètres
-
mixed | $pks | The ID of the primary key or an array of IDs |
- Renvoie
- integer|boolean Boolean false if there is an error, otherwise the count of records checked in.
- Depuis
- 1.6
Références $count, et Joomla\CMS\MVC\Model\getState().
◆ checkout()
Method override to check-out a record.
- Paramètres
-
integer | $pk | The ID of the primary key. |
- Renvoie
- boolean True if successful, false if an error occurs.
- Depuis
- 1.6
Références Joomla\CMS\MVC\Model\getState().
◆ cleanupPostBatchCopy()
Function that can be overridden to do any data cleanup after batch copying data
- Paramètres
-
TableInterface | $table | The table object containing the newly created item |
integer | $newId | The id of the new item |
integer | $oldId | The original item id |
- Renvoie
- void
- Depuis
- 3.8.12
◆ delete()
Method to delete one or more records.
- Paramètres
-
array | &$pks | An array of record primary keys. |
- Renvoie
- boolean True if successful, false if an error occurs.
- Depuis
- 1.6
Références $context, $db, $i, $name, $query, $result, Text\_(), Log\add(), Factory\getApplication(), Joomla\CMS\MVC\Model\getDbo(), PluginHelper\importPlugin(), ParameterType\INTEGER, Associations\isEnabled(), ArrayHelper\toInteger(), et Log\WARNING.
◆ editAssociations()
editAssociations |
( |
|
$data | ) |
|
Method to load an item in com_associations.
- Paramètres
-
- Renvoie
- boolean True if successful, false otherwise.
- Depuis
- 3.9.0
- Obsolète:
- 5.0 It is handled by regular save method now.
Références $data.
◆ generateNewTitle()
generateNewTitle |
( |
|
$categoryId, |
|
|
|
$alias, |
|
|
|
$title |
|
) |
| |
|
protected |
Method to change the title & alias.
- Paramètres
-
integer | $categoryId | The id of the category. |
string | $alias | The alias. |
string | $title | The title. |
- Renvoie
- array Contains the modified title and alias.
- Depuis
- 1.7
Références $title, et StringHelper\increment().
◆ generateTitle()
generateTitle |
( |
|
$categoryId, |
|
|
|
$table |
|
) |
| |
A method to preprocess generating a new title in order to allow tables with alternative names for alias and title to use the batch move and copy methods
- Paramètres
-
integer | $categoryId | The target category id |
Table | $table | The Table within which move or copy is taking place |
- Renvoie
- void
- Depuis
- 3.2
Références $data.
◆ getItem()
◆ getReorderConditions()
getReorderConditions |
( |
|
$table | ) |
|
|
protected |
A protected method to get a set of ordering conditions.
- Paramètres
-
- Renvoie
- array An array of conditions to add to ordering queries.
- Depuis
- 1.6
◆ initBatch()
◆ populateState()
◆ prepareTable()
Prepare and sanitise the table data prior to saving.
- Paramètres
-
- Renvoie
- void
- Depuis
- 1.6
◆ publish()
publish |
( |
& |
$pks, |
|
|
|
$value = 1 |
|
) |
| |
Method to change the published state of one or more records.
- Paramètres
-
array | &$pks | A list of the primary keys to change. |
integer | $value | The value of the published state. |
- Renvoie
- boolean True on success.
- Depuis
- 1.6
Prune items that are already at the given state. Note: Only models whose table correctly sets 'published' column alias (if different than published) will benefit from this
Références $context, $i, $name, $result, $user, $value, Text\_(), Log\add(), Factory\getApplication(), Factory\getUser(), PluginHelper\importPlugin(), et Log\WARNING.
◆ redirectToAssociations()
redirectToAssociations |
( |
|
$data | ) |
|
|
protected |
Method to load an item in com_associations.
- Paramètres
-
- Renvoie
- boolean True if successful, false otherwise.
- Exceptions
-
If the site contains only 2 languages and an association exists for the item load directly the associated target item in the side by side view otherwise select already the target language
Références $app, $client, $component, $data, $extension, $id, $language, $languages, $target, $view, Text\_(), Route\_(), et Factory\getApplication().
◆ reorder()
reorder |
( |
|
$pks, |
|
|
|
$delta = 0 |
|
) |
| |
Method to adjust the ordering of a row.
Returns NULL if the user did not have edit privileges for any of the selected primary keys.
- Paramètres
-
integer | $pks | The ID of the primary key to move. |
integer | $delta | Increment, usually +1 or -1 |
- Renvoie
- boolean|null False on failure or error, true on success, null if the $pk is empty (no items selected).
- Depuis
- 1.6
Références $i, $result, Text\_(), Log\add(), null, et Log\WARNING.
◆ save()
Method to save the form data.
- Paramètres
-
- Renvoie
- boolean True on success, False on error.
- Depuis
- 1.6
Références $app, $context, $data, $db, $id, $key, $name, $query, $result, $this, Text\_(), Factory\getApplication(), Joomla\CMS\MVC\Model\getDbo(), Joomla\CMS\MVC\Model\getState(), PluginHelper\importPlugin(), ParameterType\INTEGER, Associations\isEnabled(), null, Joomla\CMS\MVC\Model\setState(), ParameterType\STRING, et ArrayHelper\toInteger().
◆ saveorder()
saveorder |
( |
|
$pks = array() , |
|
|
|
$order = null |
|
) |
| |
◆ $associationsContext
$associationsContext = null |
|
protected |
◆ $batch_commands
Valeur initiale := array(
'assetgroup_id' => 'batchAccess',
'language_id' => 'batchLanguage',
'tag' => 'batchTag'
)
◆ $batch_copymove
$batch_copymove = 'category_id' |
|
protected |
◆ $batchSet
◆ $contentType
◆ $event_after_delete
$event_after_delete = null |
|
protected |
◆ $event_after_save
◆ $event_before_batch
$event_before_batch = null |
|
protected |
◆ $event_before_change_state
$event_before_change_state = null |
|
protected |
◆ $event_before_delete
$event_before_delete = null |
|
protected |
◆ $event_before_save
$event_before_save = null |
|
protected |
◆ $event_change_state
$event_change_state = null |
|
protected |
◆ $table
◆ $tableClassName
◆ $text_prefix
◆ $type
◆ $typeAlias
◆ $user
La documentation de cette classe a été générée à partir du fichier suivant :