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 ContentHistoryHelper
+ Graphe d'héritage de ContentHistoryHelper:

Fonctions membres publiques

 __construct ($typeAlias=null)
 
 deleteHistory ($table)
 
 getHistory ($typeId, $id)
 
 store ($table)
 
- Fonctions membres publiques hérités de CMSHelper
 getCurrentLanguage ($detectBrowser=true)
 
 getLanguageId ($langCode)
 
 getRowData (TableInterface $table)
 
 getDataObject (TableInterface $table)
 

Champs de données

 $typeAlias = null
 

Description détaillée

Versions helper class, provides methods to perform various tasks relevant versioning of content.

Depuis
3.2
Obsolète:
4.0 Deprecated in favour of in Joomla 4

Documentation des constructeurs et destructeur

◆ __construct()

__construct (   $typeAlias = null)

Constructor

Paramètres
string$typeAliasThe type of content to be versioned (for example, 'com_content.article').
Depuis
3.2
Obsolète:
4.0

Documentation des fonctions membres

◆ deleteHistory()

deleteHistory (   $table)

Method to delete the history for an item.

Paramètres
Table$tableTable object being versioned
Renvoie
boolean true on success, otherwise false.
Depuis
3.2
Obsolète:
4.0 Use ::delete in Joomla 4

Références $db, $id, $key, $query, et Table\getInstance().

◆ getHistory()

getHistory (   $typeId,
  $id 
)

Method to get a list of available versions of this item.

Paramètres
integer$typeIdType id for this component item.
mixed$idPrimary key of row to get history for.
Renvoie
mixed The return value or null if the query failed.
Depuis
3.2
Obsolète:
4.0 Use ::get in Joomla 4

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

◆ store()

store (   $table)

Method to save a version snapshot to the content history table.

Paramètres
Table$tableTable object being versioned
Renvoie
boolean True on success, otherwise false.
Depuis
3.2
Obsolète:
4.0 Use ::store in Joomla 4

Références $context, $data, $input, $key, elseif, Table\getInstance(), ComponentHelper\getParams(), et json_encode.

Documentation des champs

◆ $typeAlias

$typeAlias = null

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