Methods
The class versionStyle object constructor, initializes class variables
__construct(string $iIdOfType, array $aFileInfo, $sFileName, $sTypeContent, array $aCfg, array $aCfgClient, object $oDB, integer $iClient, object $sArea, object $iFrame, $sVersionFileName) : void
Parameters
$iIdOfType
stringThe name of style file
$aFileInfo
arrayGet FileInformation from table file_information
$sFileName
$sTypeContent
$aCfg
array
$aCfgClient
array
$oDB
object
$iClient
integer
$sArea
object
$iFrame
object
$sVersionFileName
The general SelectBox function for get Revision.
buildSelectBox(string $sTableForm, string $sAddHeader, string $sLabelOfSelectBox, string $sIdOfSelectBox)
Inherited
| inherited_from |
\Version::buildSelectBox() |
Parameters
$sTableForm
stringThe name of Table_Form class
$sAddHeader
stringThe Header Label of SelectBox Widget
$sLabelOfSelectBox
stringThe Label of SelectBox Widget
$sIdOfSelectBox
stringId 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
Get the last revision file
getLastRevision() : array
Inherited
| inherited_from |
\Version::getLastRevision() |
Returns
arrayreturns Last Revision
This function reads the path of file
getPathFile() : string
Returns
stringthe path of file
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
stringThe name of Input Textfield.
$sInitValue
$iWidth
integerwidth 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
stringThe name of Textarea.
$sInitValue
$iWidth
integerwidth of Textarea
$iHeight
integerheight of Textarea
$sId
Returns
stringHTML Code of Textarea
This function read an xml file nodes
initXmlReader(string $sPath) : \{array}
Parameters
$sPath
stringPath to file
Returns
\{array}returns array width nodes
Function returns javascript which refreshes contenido frames for file list an subnavigation.
renderReloadScript(string $sArea, string $sFilename, 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
$sFilename
string
- new filename of file which should be updated in other frames
Returns
string- Javascript for refrehing frames
Set new node for xml file of description
setBodyNodeDescription(string $sDesc)
Inherited
| inherited_from |
\Version::setBodyNodeDescription() |
Parameters
$sDesc
stringContent 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 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 init the class member sCode with current file content
initFileContent() : void
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
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 |
Content code of current file.
$sCode
Description folder of history sub nav.
$sDescripion
Its not required to use it.
The id of Type.
$sFileName
The path of style file.
$sPath
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 |
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 |