[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Versioning/ -> Versioning.php (summary)

Joomla! Content Management System

Copyright: (C) 2020 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE.txt
File Size: 156 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Versioning:: (3 methods):
  get()
  delete()
  store()


Class: Versioning  - X-Ref

Handle the versioning of content items

get($typeAlias, $id)   X-Ref
Method to get a list of available versions of this item.

param: string   $typeAlias  Typealias of the component
param: integer  $id         ID of the content item to get
return: object[]   A list of history items

delete($typeAlias, $id)   X-Ref
Method to delete the history for an item.

param: string   $typeAlias  Typealias of the component
param: integer  $id         ID of the content item to delete
return: boolean  true on success, otherwise false.

store($typeAlias, $id, $data, $note = '')   X-Ref
Method to save a version snapshot to the content history table.

param: string   $typeAlias  Typealias of the content type
param: integer  $id         ID of the content item
param: mixed    $data       Array or object of data that can be
param: string   $note       Note for the version to store
return: boolean  True on success, otherwise false.



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer