deprecated |
[2012-07-02] Use cVersion instead of this class. |
Methods
The Version object constructor, initializes class variables
__construct(array $aCfg, array $aCfgClient, object $oDB, integer $iClient, object $sArea, object $iFrame) : void
Parameters
$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 |
\cVersion::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 |
\cVersion::createNewVersion() |
This function creats an xml file.
createNewXml($sDirectory, string $sFileName) : bool
Inherited
XML Writer helps for create this file.
inherited_from |
\cVersion::createNewXml() |
Parameters
$sDirectory
$sFileName
string
name of xml file to create
Returns
bool
true if saving file was successful, otherwise false
This function deletes files and the the folder, for given path.
deleteFile($sFirstFile) : bool
Inherited
inherited_from |
\cVersion::deleteFile() |
Parameters
$sFirstFile
Returns
bool
return true if successful
Displays your notification
displayNotification(string $sOutPut) : void
Inherited
inherited_from |
\cVersion::displayNotification() |
Parameters
$sOutPut
string
Get the frontendpath to revision
getFilePath() : string
Inherited
inherited_from |
\cVersion::getFilePath() |
Returns
string
returns path to revision file
Get the last revision file
getLastRevision() : array
Inherited
inherited_from |
\cVersion::getLastRevision() |
Returns
array
returns Last Revision
Revision Files
getRevisionFiles() : array
Inherited
inherited_from |
\cVersion::getRevisionFiles() |
Returns
array
returns all Revison File
Build new Textfield with below parameters
getTextBox(string $sName, $sInitValue, int $iWidth, $bDisabled) : string
Inherited
inherited_from |
\cVersion::getTextBox() |
Parameters
$sName
string
The name of Input Textfield.
$sInitValue
$iWidth
int
width of Input Textfield
$bDisabled
Returns
string
HTML Code of Input Textfield
Build new Textarea with below parameters
getTextarea(string $sName, $sInitValue, int $iWidth, int $iHeight, $sId) : string
Inherited
inherited_from |
\cVersion::getTextarea() |
Parameters
$sName
string
The name of Textarea.
$sInitValue
$iWidth
int
width of Textarea
$iHeight
int
height of Textarea
$sId
Returns
string
HTML Code of Textarea
Set new node for xml file of description
setBodyNodeDescription(string $sDesc)
Inherited
inherited_from |
\cVersion::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 |
\cVersion::setData() |
Parameters
$sKey
string
$sValue
string
Returns
array
returns an array for body node
This function checks if needed version paths exists and were created if
neccessary
checkPaths() : void
Inherited
inherited_from |
\cVersion::checkPaths() |
Inits the first element of revision files
getFirstRevision() : string
Inherited
inherited_from |
\cVersion::getFirstRevision() |
Returns
string
the name of xml files
This function inits version files.
initRevisions() : array
Inherited
Its filter also timestamp and version files
inherited_from |
\cVersion::initRevisions() |
Returns
array
returns 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 |
\cVersion::prune() |
Messagebox for build selectBox.
getMessages()
Inherited
Dynamic allocation for type.
return array the attributes alt and poput returns
inherited_from |
\cVersion::getMessages() |
Makes new and init Revision Name
getRevision() : integer
Inherited
inherited_from |
\cVersion::getRevision() |
Returns
integer
returns number of Revison File
A Class Function for fill version files
getSelectBox($aTempVesions, $sIdOfSelectBox)
Inherited
inherited_from |
\cVersion::getSelectBox() |
Parameters
$aTempVesions
$sIdOfSelectBox
Properties
$aRevisionFiles : array
Inherited
inherited_from |
\cVersion::$$aRevisionFiles |
$iDisplayNotification : int
Inherited
inherited_from |
\cVersion::$$iDisplayNotification |
$aBodyData : string
Inherited
inherited_from |
\cVersion::$$aBodyData |
$aCfg : array
Inherited
inherited_from |
\cVersion::$$aCfg |
$aCfgClient : array
Inherited
inherited_from |
\cVersion::$$aCfgClient |
$dActualTimestamp : \???
Inherited
inherited_from |
\cVersion::$$dActualTimestamp |
$dCreated : \???
Inherited
inherited_from |
\cVersion::$$dCreated |
$dLastModified : \???
Inherited
inherited_from |
\cVersion::$$dLastModified |
$dTimestamp : \???
Inherited
inherited_from |
\cVersion::$$dTimestamp |
$iClient : int
Inherited
inherited_from |
\cVersion::$$iClient |
$iFrame : int
Inherited
inherited_from |
\cVersion::$$iFrame |
$iIdentity : int
Inherited
inherited_from |
\cVersion::$$iIdentity |
$iRevisionNumber : int
Inherited
inherited_from |
\cVersion::$$iRevisionNumber |
$oDB : \cDb
Inherited
inherited_from |
\cVersion::$$oDB |
$sAlternativePath : string
Inherited
inherited_from |
\cVersion::$$sAlternativePath |
$sArea : array
Inherited
inherited_from |
\cVersion::$$sArea |
$sAuthor : string
Inherited
inherited_from |
\cVersion::$$sAuthor |
$sType : string
Inherited
inherited_from |
\cVersion::$$sType |
$bVersioningActive : bool
Inherited
inherited_from |
\cVersion::$$bVersioningActive |