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.
createNewXml() : string
Inherited
XML Writer helps for create this file.
| 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.
initRevisions() : array
Inherited
Its filter also timestamp and version files
| inherited_from |
\Version::initRevisions() |
Returns
arrayreturns xml file names
This function looks if maximum number of stored versions is achieved.
prune() : void
Inherited
If true, it will be delete the first version.
| inherited_from |
\Version::prune() |
Messagebox for build selectBox.
getMessages()
Inherited
Dynamic allocation for type.
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
$aRevisionFiles
Inherited
| access |
public |
| inherited_from |
\Version::$$aRevisionFiles |
$iDisplayNotification
Inherited
| inherited_from |
\Version::$$iDisplayNotification |
$sDescripion
Its not required to use it.
$aBodyData
Inherited
| access |
protected |
| inherited_from |
\Version::$$aBodyData |
$aCfg
Inherited
| access |
protected |
| inherited_from |
\Version::$$aCfg |
$aCfgClient
Inherited
| access |
protected |
| inherited_from |
\Version::$$aCfgClient |
$dActualTimestamp
Inherited
| access |
protected |
| inherited_from |
\Version::$$dActualTimestamp |
$dCreated
Inherited
| access |
protected |
| inherited_from |
\Version::$$dCreated |
$dLastModified
Inherited
| access |
protected |
| inherited_from |
\Version::$$dLastModified |
$dTimestamp
Inherited
| access |
protected |
| inherited_from |
\Version::$$dTimestamp |
$iClient
Inherited
| access |
protected |
| inherited_from |
\Version::$$iClient |
$iFrame
Inherited
| access |
protected |
| inherited_from |
\Version::$$iFrame |
$iIdentity
Inherited
| access |
protected |
| inherited_from |
\Version::$$iIdentity |
$iRevisionNumber
Inherited
| access |
private |
| inherited_from |
\Version::$$iRevisionNumber |
$oDB
Inherited
| access |
protected |
| inherited_from |
\Version::$$oDB |
$sAlternativePath
Inherited
| access |
protected |
| inherited_from |
\Version::$$sAlternativePath |
$sArea
Inherited
| access |
protected |
| inherited_from |
\Version::$$sArea |
$sAuthor
Inherited
| access |
protected |
| inherited_from |
\Version::$$sAuthor |
$sType
Inherited
| access |
protected |
| inherited_from |
\Version::$$sType |
$bVersionCreatActive
Inherited
| access |
private |
| inherited_from |
\Version::$$bVersionCreatActive |