Methods

Creats xml files from table mod_history if exists any rows.

CreateHistoryVersion() : void

After create a version it will be delete the current row. If no rows any available, it will be drop the table mod_history.

The class versionImport 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 \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.

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

Deletes the row wich id of mod_history

deleteRows($iModHistory) : void

Parameters

$iModHistory

Displays your notification

displayNotification(string $sOutPut) : void
Inherited
inherited_from \Version::displayNotification()

Parameters

$sOutPut

string

Drops table if table exists

dropTable() : void

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

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.

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()

Set with the body nodes of xml file

createBodyXML() : void

Messagebox for build selectBox.

getMessages() 
Inherited

Dynamic allocation for type. return array the attributes alt and poput returns

inherited_from \Version::getMessages()

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

getModuleHistoryTable() : void

Makes new and init Revision Name

getRevision() : integer
Inherited
inherited_from \Version::getRevision()

Returns

integerreturns number of Revison File

Get all rows in tabel mod_con_history

getRows() : integer

Returns

integercount of rows

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
 

$sModType 
access public
 

$sTemplate 
access public
 

$aBodyData 
Inherited
access protected
inherited_from \Version::$$aBodyData
 

$aCfg 
Inherited
access protected
inherited_from \Version::$$aCfg
 

$aCfgClient 
Inherited
access protected
inherited_from \Version::$$aCfgClient
 

$aVarForm 
Inherited
access protected
inherited_from \Version::$$aVarForm
 

$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
 

$aCreateVersion 
access public
 

$bDeletabel 
access private
 

$bVersionCreatActive 
Inherited
access private
inherited_from \Version::$$bVersionCreatActive
 

$iWert 
access public
 

$sCodeInput 
access private
 

$sCodeOutput 
access private
 

$sDescripion 
access private
 

$sError 
access private
 

$sName 
access private
 

$sPackageData 
access private
 

$sPackageGuid 
access private
 

$sStatic 
access private
 

$sTableName 
access public