Class cContentVersioning
Versioning.
Package: Core\Versioning
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Jann Dieckmann
Located at classes/versioning/class.contentversioning.php
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Jann Dieckmann
Located at classes/versioning/class.contentversioning.php
public
|
|
public
array
|
|
public
string
|
#
getTimeDiff( string $lastModified )
Return date for select box. If current time - lastModified < 1 hour return "%d minutes ago" else return "Y-M-D H:I:S". |
public static
string
|
|
public
|
#
getSelectedArticle( integer $idArtLangVersion, integer $idArtLang, string $articleType, integer $selectedArticleId = NULL )
Returns selected article. |
public
array
|
|
public
integer
|
|
public
string
|
#
getArticleType( integer $idArtLangVersion, integer $idArtLang, string $action, mixed $selectedArticleId )
Returns type of article (current, version or editable). |
public
string
|
#
getVersionSelectionField( string $class, string $selectElement, string $copyToButton, string $infoText )
|
public
integer
|
|
public
array
|
#
getContentId( integer $idArtLang, integer $typeId, integer $type, integer $versioningState, integer $articleType, integer $version )
Returns idcontent or idcontentversion. |
public
array
|
#
getDataForSelectElement( integer $idArtLang, string $selectElementType = '' )
Returns $artLangVersionMap[version][idartlangversion] = lastmodified either from each article-/content- or metatag-version. |
public
|
#
prepareContentForSaving( integer $idartlang,
Prepares content for saving (consider versioning-mode; prevents multiple storings for filelists e.g.). |
public
|
|
public
|
|
public
|
protected
|
$db |
|
#
CONTENIDO database object |
protected
string
|
$articleType |
|
#
article type (current, version, editable) |
public
|
$selectedArticle |
|
#
selected article language (version) |
public
integer
|
$editableArticleId |
|
#
editable article language version id |