Methods

The class versionLayout object constructor, initializes class variables

__construct(string $iIdLayout, array $aCfg, array $aCfgClient, object $oDB, integer $iClient, object $sArea, object $iFrame) : void

Parameters

$iIdLayout

string

The name of style file

$aCfg

array

$aCfgClient

array

$oDB

object

$iClient

integer

$sArea

object

$iFrame

object

The general SelectBox function for get Revision.

buildSelectBox(string $sTableForm, string $sAddHeader, string $sLabelOfSelectBox, string $sIdOfSelectBox) 
Inherited

inherited_from \Version::buildSelectBox()

Parameters

$sTableForm

string

The name of Table_Form class

$sAddHeader

string

The Header Label of SelectBox Widget

$sLabelOfSelectBox

string

The Label of SelectBox Widget

$sIdOfSelectBox

string

Id of Select Box return string if is exists Revision, then returns HTML Code of full SelectBox else returns empty string

This function creats new version in right folder.

createNewVersion() : void
Inherited

inherited_from \Version::createNewVersion()

This function creats an xml file. XML Writer helps for create this file.

createNewXml() : string
Inherited

inherited_from \Version::createNewXml()

Returns

stringreturns content of xml file

This function deletes files and the the folder, for given path.

deleteFile($sFirstFile) : bool
Inherited

inherited_from \Version::deleteFile()

Parameters

$sFirstFile

Returns

boolreturn true if successful

Displays your notification

displayNotification(string $sOutPut) : void
Inherited

inherited_from \Version::displayNotification()

Parameters

$sOutPut

string

Get the frontendpath to revision

getFilePath() : string
Inherited

inherited_from \Version::getFilePath()

Returns

stringreturns path to revision file

This function generate version names for select-box

getFormatTimestamp() : array
Inherited

inherited_from \Version::getFormatTimestamp()

Returns

arrayreturns an array of revision file names

Get the last revision file

getLastRevision() : array
Inherited

inherited_from \Version::getLastRevision()

Returns

arrayreturns Last Revision

Revision Files

getRevisionFiles() : array
Inherited

inherited_from \Version::getRevisionFiles()

Returns

arrayreturns all Revison File

Build new Textfield with below parameters

getTextBox(string $sName, $sInitValue, integer $iWidth, $bDisabled) : string
Inherited

inherited_from \Version::getTextBox()

Parameters

$sName

string

The name of Input Textfield.

$sInitValue

$iWidth

integer

width of Input Textfield

$bDisabled

Returns

stringHTML Code of Input Textfield

Build new Textarea with below parameters

getTextarea(string $sName, $sInitValue, integer $iWidth, integer $iHeight, $sId) : string
Inherited

inherited_from \Version::getTextarea()

Parameters

$sName

string

The name of Textarea.

$sInitValue

$iWidth

integer

width of Textarea

$iHeight

integer

height of Textarea

$sId

Returns

stringHTML Code of Textarea

This function read an xml file nodes

initXmlReader(string $sPath) : array

Parameters

$sPath

string

Path to file

Returns

arrayreturns array width this three nodes

Function returns javascript which refreshes contenido frames for file list an subnavigation.

renderReloadScript(string $sArea, integer $iIdLayout, object $sess) : string

This is neccessary, if filenames where changed, when a history entry is restored

Parameters

$sArea

string
  • name of contenido area in which this procedure should be done

$iIdLayout

integer
  • Id of layout to highlight

$sess

object
  • Contenido session object

Returns

string- Javascript for refrehing frames

Set new node for xml file of description

setBodyNodeDescription(string $sDesc) 
Inherited

inherited_from \Version::setBodyNodeDescription()

Parameters

$sDesc

string

Content of node

This function initialize the body node of xml file

setData(string $sKey, string $sValue) : array
Inherited

inherited_from \Version::setData()

Parameters

$sKey

string

$sValue

string

Returns

arrayreturns an array for body node

This function generate version names for select-box

setVarForm($sKey, $sValue) : array
Inherited

inherited_from \Version::setVarForm()

Parameters

$sKey

$sValue

Returns

arrayreturns an array of revision file names

This function checks if needed version paths exists and were created if neccessary

checkPaths() : void
Inherited

inherited_from \Version::checkPaths()

Inits the first element of revision files

getFirstRevision() : string
Inherited

inherited_from \Version::getFirstRevision()

Returns

stringthe name of xml files

This function inits version files. Its filter also timestamp and version files

initRevisions() : array
Inherited

inherited_from \Version::initRevisions()

Returns

arrayreturns xml file names

This function looks if maximum number of stored versions is achieved. If true, it will be delete the first version.

prune() : void
Inherited

inherited_from \Version::prune()

Messagebox for build selectBox. Dynamic allocation for type.

getMessages() 
Inherited

return array the attributes alt and poput returns

inherited_from \Version::getMessages()

Makes new and init Revision Name

getRevision() : integer
Inherited

inherited_from \Version::getRevision()

Returns

integerreturns number of Revison File

A Class Function for fill version files

getSelectBox($aTempVesions, $sIdOfSelectBox) 
Inherited

inherited_from \Version::getSelectBox()

Parameters

$aTempVesions

$sIdOfSelectBox

Function reads rows variables from table con_layout and init with the class members.

setLayoutTable() : void

 Properties

 

Revision files of current file

$aRevisionFiles 
Inherited

access public
inherited_from \Version::$$aRevisionFiles
 

Displays Notification only onetimes per object

$iDisplayNotification 
Inherited

inherited_from \Version::$$iDisplayNotification
 

Body data of xml file

$aBodyData 
Inherited

access protected
inherited_from \Version::$$aBodyData
 

For init global variable

$aCfg 
Inherited

access protected
inherited_from \Version::$$aCfg
 

For init global variable $cfgClient

$aCfgClient 
Inherited

access protected
inherited_from \Version::$$aCfgClient
 

For init variables

$aVarForm 
Inherited

access protected
inherited_from \Version::$$aVarForm
 

Timestamp

$dActualTimestamp 
Inherited

access protected
inherited_from \Version::$$dActualTimestamp
 

Time of created

$dCreated 
Inherited

access protected
inherited_from \Version::$$dCreated
 

Time of last modified

$dLastModified 
Inherited

access protected
inherited_from \Version::$$dLastModified
 

Timestamp

$dTimestamp 
Inherited

access protected
inherited_from \Version::$$dTimestamp
 

For init global variable $client

$iClient 
Inherited

access protected
inherited_from \Version::$$iClient
 

For init global variable $frame

$iFrame 
Inherited

access protected
inherited_from \Version::$$iFrame
 

Identity the Id of Content Type

$iIdentity 
Inherited

access protected
inherited_from \Version::$$iIdentity
 

Number of Revision

$iRevisionNumber 
Inherited

access private
inherited_from \Version::$$iRevisionNumber
 

Database object

$oDB 
Inherited

access protected
inherited_from \Version::$$oDB
 

Alternative Path for save version files

$sAlternativePath 
Inherited

access protected
inherited_from \Version::$$sAlternativePath
 

For init global variable $area

$sArea 
Inherited

access protected
inherited_from \Version::$$sArea
 

md5 coded name of author

$sAuthor 
Inherited

access protected
inherited_from \Version::$$sAuthor
 

Id of Type

$sType 
Inherited

access protected
inherited_from \Version::$$sType
 

To take control versioning is switched off

$bVersionCreatActive 
Inherited

access private
inherited_from \Version::$$bVersionCreatActive
 

The code of Layout

$sCode 

access private
 

The Metainformation about layout

$sDeletabel 

access private
 

The Description of Layout

$sDescripion 

access private
 

The name of Layout

$sName 

access private