Methods

Creats xml files from table mod_history if exists any rows. After create a version it will be delete the current row.

CreateHistoryVersion() : void

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. 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

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

Set with the body nodes of xml file

createBodyXML() : void

Messagebox for build selectBox. Dynamic allocation for type.

getMessages() 
Inherited

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

 

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
 

Type of modul

$sModType 

access public
 

Template name of modul

$sTemplate 

access public
 

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
 

Array contents all version information

$aCreateVersion 

access public
 

Information of deletable

$bDeletabel 

access private
 

To take control versioning is switched off

$bVersionCreatActive 
Inherited

access private
inherited_from \Version::$$bVersionCreatActive
 

Check variable for look version number

$iWert 

access public
 

Code Input

$sCodeInput 

access private
 

Code Output

$sCodeOutput 

access private
 

Description of modul

$sDescripion 

access private
 

Error Output

$sError 

access private
 

The name of modul

$sName 

access private
 

Information of package data

$sPackageData 

access private
 

Information about package guid

$sPackageGuid 

access private
 

static

$sStatic 

access private
 

Table name of mod_history

$sTableName 

access public