Methods summary
public
|
#
__construct( )
Create new versioning class
Create new versioning class
|
public
array
|
#
sortResults( array $result )
Cms type sort function for article output.
Cms type sort function for article output.
Parameters
- $result
array $result[cms type][typeId] = value
Returns
array $result[cms type][typeId] = value
SuppressWarnings
docBlocks
|
public
string
|
#
getTimeDiff( unknown_type $lastModified )
Return date for select box. If current time - lastModified < 1 hour return
"%d minutes ago" else return "Y-M-D H:I:S".
Return date for select box. If current time - lastModified < 1 hour return
"%d minutes ago" else return "Y-M-D H:I:S".
Parameters
- $lastModified
unknown_type $lastModified
Returns
string
|
public static
string
|
#
getState( )
Returns the current versioning state (disabled (default), simple,
advanced).
Returns the current versioning state (disabled (default), simple,
advanced).
Returns
string $versioningState
|
public
cApiArticleLanguage |cApiArticleLanguageVersion
|
#
getSelectedArticle( integer $idArtLangVersion, integer $idArtLang, string $articleType, integer $selectedArticleId = NULL )
Returns selected article.
Returns selected article.
Parameters
- $idArtLangVersion
integer $idArtLangVersion
- $idArtLang
integer $idArtLang
- $articleType
string $articleType
- $selectedArticleId
integer $selectedArticleId [optional]
Returns
Todo
$idArtlangVersion <-> $selectedArticleId
|
public
array
|
#
getList( integer $idArtLang, string $articleType )
Returns $list[1] = CMS_HTMLHEAD for every content existing in article/version
with $idArtLang.
Returns $list[1] = CMS_HTMLHEAD for every content existing in article/version
with $idArtLang.
Parameters
- $idArtLang
integer $idArtLang
- $articleType
string $articleType
Returns
array $list
|
public
integer
|
|
public
string
|
#
getArticleType( integer $idArtLangVersion, integer $idArtLang, string $action, mixed $selectedArticleId )
Returns type of article (current, version or editable).
Returns type of article (current, version or editable).
Parameters
- $idArtLangVersion
integer $idArtLangVersion
- $idArtLang
integer $idArtLang
- $action
string $action
- $selectedArticleId
mixed $selectedArticleId
Returns
string $this->articleType
|
public
string
|
#
getVersionSelectionField( unknown_type $class, unknown_type $selectElement, unknown_type $copyToButton, unknown_type $infoText )
Parameters
- $class
unknown_type $class
- $selectElement
unknown_type $selectElement
- $copyToButton
unknown_type $copyToButton
- $infoText
unknown_type $infoText
Returns
string
|
public
integer
|
#
getEditableArticleId( integer $idArtLang )
Returns idartlangversion of editable article.
Returns idartlangversion of editable article.
Parameters
- $idArtLang
integer $idArtLang
Returns
integer $editableArticleId
|
public
array
|
#
getContentId( integer $idArtLang, integer $typeId, integer $type, integer $versioningState, integer $articleType, integer $version )
Returns idcontent or idcontentversion.
Returns idcontent or idcontentversion.
Parameters
- $idArtLang
integer $idArtLang
- $typeId
integer $typeId
- $type
integer $type
- $versioningState
integer $versioningState
- $articleType
integer $articleType
- $version
integer $version
Returns
array $idContent
Todo
check datatype of return value
|
public
array
|
#
getDataForSelectElement( integer $idArtLang, string $selectElementType = '' )
Returns $artLangVersionMap[version][idartlangversion] = lastmodified either
from each article-/content- or metatag-version.
Returns $artLangVersionMap[version][idartlangversion] = lastmodified either
from each article-/content- or metatag-version.
Parameters
- $idArtLang
integer $idArtLang
- $selectElementType
string $selectElementType [optional] either 'content', 'seo' or 'config'
Returns
array
|
public
|
#
prepareContentForSaving( unknown_type $idartlang, cApiContent $content, unknown_type $value )
Prepares content for saving (consider versioning-mode; prevents multiple
storings for filelists e.g.).
Prepares content for saving (consider versioning-mode; prevents multiple
storings for filelists e.g.).
Parameters
- $idartlang
unknown_type $idartlang the contents idartlang
- $content
cApiContent
$content the content to store
- $value
unknown_type the contents value to store
|
public
|
#
createContentVersion( array $parameters )
Create new content version.
Create new content version.
Parameters
- $parameters
mixed[] $parameters {
Type
int $idContent
int $idArtLang
int $idType
int $typeId
string $value
string $author
string $created
string $lastModified }
|
public
cApiArticleLanguageVersion
|
#
createArticleLanguageVersion( array $parameters )
Create new article language version.
Create new article language version.
Parameters
- $parameters
mixed[] $parameters {
Returns
Type
int $idart
int $idlang
string $title
string $urlname
string $pagetitle
string $summary
int $artspec
string $created
int $iscurrentverseion
string $author
string $lastmodified
string $modifiedby
string $published
string $publishedby
int $online
int $redirect
string $redirect_url
int $external_redirect
int $artsort
int $timemgmt
string $datestart
string $dateend
int $status
int $time_move_cat
int $time_target_cat
int $time_online_move
int $locked
mixed $free_use01
mixed $free_use02
mixed $free_use03
int $searchable
float $sitemapprio
string $changefreq }
|
public
cApiMetaTagVersion
|
#
createMetaTagVersion( array $parameters )
Create new Meta Tag Version.
Create new Meta Tag Version.
Parameters
- $parameters
mixed[] $parameters {
Returns
Type
int $idmetatag
int $idartlang
string $idmetatype
string $value
int version }
|