Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe ContenthistoryModelHistory
+ Graphe d'héritage de ContenthistoryModelHistory:

Fonctions membres publiques

 __construct ($config=array())
 
 delete (&$pks)
 
 getTable ($type='Contenthistory', $prefix='JTable', $config=array())
 
 keep (&$pks)
 

Fonctions membres protégées

 canDelete ($record)
 
 populateState ($ordering='h.save_date', $direction='DESC')
 
 getListQuery ()
 
 getSha1Hash ()
 

Description détaillée

Methods supporting a list of contenthistory records.

Depuis
3.2

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $config = array())

Constructor.

Paramètres
array$configAn optional associative array of configuration settings.
Voir également
JControllerLegacy
Depuis
3.2

Références $config.

Documentation des fonctions membres

◆ canDelete()

canDelete (   $record)
protected

Method to test whether a history record can be deleted. Note that we check whether we have edit permissions for the content item row.

Paramètres
JTableContenthistory$recordA JTable object.
Renvoie
boolean True if allowed to delete the record. Defaults to the permission set in the component.
Depuis
3.6

◆ delete()

delete ( $pks)

Method to delete one or more records from content history table.

Paramètres
array$pksAn array of record primary keys.
Renvoie
boolean True if successful, false if an error occurs.
Depuis
3.2

Références $i.

◆ getListQuery()

getListQuery ( )
protected

Build an SQL query to load the list data.

Renvoie
JDatabaseQuery
Depuis
3.2

Références $db, et $query.

◆ getSha1Hash()

getSha1Hash ( )
protected

Get the sha1 hash value for the current item being edited.

Renvoie
string sha1 hash of row data
Depuis
3.2

Références JPATH_ADMINISTRATOR, et json_encode.

◆ getTable()

getTable (   $type = 'Contenthistory',
  $prefix = 'JTable',
  $config = array() 
)

Method to get a table object, load it if necessary.

Paramètres
string$typeThe table name. Optional.
string$prefixThe class prefix. Optional.
array$configConfiguration array for model. Optional.
Renvoie
JTable A JTable object
Depuis
3.2

Références $config, $prefix, et $type.

◆ keep()

keep ( $pks)

Method to toggle on and off the keep forever value for one or more records from content history table.

Paramètres
array$pksAn array of record primary keys.
Renvoie
boolean True if successful, false if an error occurs.
Depuis
3.2

Références $i.

◆ populateState()

populateState (   $ordering = 'h.save_date',
  $direction = 'DESC' 
)
protected

Method to auto-populate the model state.

Note. Calling getState in this method will result in recursion.

Paramètres
string$orderingAn optional ordering field.
string$directionAn optional direction (asc|desc).
Renvoie
void
Depuis
3.2

Références $direction, $input, $itemId, $ordering, et $params.


La documentation de cette classe a été générée à partir du fichier suivant :