VersionImport

deprecated [2012-07-02] Use cVersionImport instead of this class.

 Methods

Creats xml files from table mod_history if exists any rows.

CreateHistoryVersion() : void
Inherited

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

inherited_from \cVersionImport::CreateHistoryVersion()

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 \cVersion::buildSelectBox()
inherited_from \cVersionImport::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()
inherited_from \cVersionImport::createNewVersion()

This function creats an xml file.

createNewXml($sDirectory, string $sFileName) : bool
Inherited

XML Writer helps for create this file.

inherited_from \cVersion::createNewXml()
inherited_from \cVersionImport::createNewXml()

Parameters

$sDirectory

$sFileName

string

name of xml file to create

Returns

booltrue 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()
inherited_from \cVersionImport::deleteFile()

Parameters

$sFirstFile

Returns

boolreturn true if successful

Deletes the row wich id of mod_history

deleteRows($iModHistory) : void
Inherited
inherited_from \cVersionImport::deleteRows()

Parameters

$iModHistory

Displays your notification

displayNotification(string $sOutPut) : void
Inherited
inherited_from \cVersion::displayNotification()
inherited_from \cVersionImport::displayNotification()

Parameters

$sOutPut

string

Drops table if table exists

dropTable() : void
Inherited
inherited_from \cVersionImport::dropTable()

Get the frontendpath to revision

getFilePath() : string
Inherited
inherited_from \cVersion::getFilePath()
inherited_from \cVersionImport::getFilePath()

Returns

stringreturns path to revision file

This function generate version names for select-box

getFormatTimestamp() : array
Inherited
inherited_from \cVersion::getFormatTimestamp()
inherited_from \cVersionImport::getFormatTimestamp()

Returns

arrayreturns an array of revision file names

Get the last revision file

getLastRevision() : array
Inherited
inherited_from \cVersion::getLastRevision()
inherited_from \cVersionImport::getLastRevision()

Returns

arrayreturns Last Revision

Revision Files

getRevisionFiles() : array
Inherited
inherited_from \cVersion::getRevisionFiles()
inherited_from \cVersionImport::getRevisionFiles()

Returns

arrayreturns all Revison File

Build new Textfield with below parameters

getTextBox(string $sName, $sInitValue, int $iWidth, $bDisabled) : string
Inherited
inherited_from \cVersion::getTextBox()
inherited_from \cVersionImport::getTextBox()

Parameters

$sName

string

The name of Input Textfield.

$sInitValue

$iWidth

int

width of Input Textfield

$bDisabled

Returns

stringHTML 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()
inherited_from \cVersionImport::getTextarea()

Parameters

$sName

string

The name of Textarea.

$sInitValue

$iWidth

int

width of Textarea

$iHeight

int

height of Textarea

$sId

Returns

stringHTML Code of Textarea

Set new node for xml file of description

setBodyNodeDescription(string $sDesc) 
Inherited
inherited_from \cVersion::setBodyNodeDescription()
inherited_from \cVersionImport::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()
inherited_from \cVersionImport::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 \cVersion::setVarForm()
inherited_from \cVersionImport::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 \cVersion::checkPaths()
inherited_from \cVersionImport::checkPaths()

Inits the first element of revision files

getFirstRevision() : string
Inherited
inherited_from \cVersion::getFirstRevision()
inherited_from \cVersionImport::getFirstRevision()

Returns

stringthe name of xml files

This function inits version files.

initRevisions() : array
Inherited

Its filter also timestamp and version files

inherited_from \cVersion::initRevisions()
inherited_from \cVersionImport::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 \cVersion::prune()
inherited_from \cVersionImport::prune()

Set with the body nodes of xml file

createBodyXML() : void
Inherited
inherited_from \cVersionImport::createBodyXML()

Messagebox for build selectBox.

getMessages() 
Inherited

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

inherited_from \cVersion::getMessages()
inherited_from \cVersionImport::getMessages()

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

getModuleHistoryTable() : void
Inherited
inherited_from \cVersionImport::getModuleHistoryTable()

Makes new and init Revision Name

getRevision() : integer
Inherited
inherited_from \cVersion::getRevision()
inherited_from \cVersionImport::getRevision()

Returns

integerreturns number of Revison File

Get all rows in tabel mod_con_history

getRows() : integer
Inherited
inherited_from \cVersionImport::getRows()

Returns

integercount of rows

A Class Function for fill version files

getSelectBox($aTempVesions, $sIdOfSelectBox) 
Inherited
inherited_from \cVersion::getSelectBox()
inherited_from \cVersionImport::getSelectBox()

Parameters

$aTempVesions

$sIdOfSelectBox

 Properties

 

$aRevisionFiles : array
Inherited
inherited_from \cVersion::$$aRevisionFiles
inherited_from \cVersionImport::$$aRevisionFiles
 

$iDisplayNotification : int
Inherited
inherited_from \cVersion::$$iDisplayNotification
inherited_from \cVersionImport::$$iDisplayNotification
 

$aBodyData : string
Inherited
inherited_from \cVersion::$$aBodyData
inherited_from \cVersionImport::$$aBodyData
 

$aCfg : array
Inherited
inherited_from \cVersion::$$aCfg
inherited_from \cVersionImport::$$aCfg
 

$aCfgClient : array
Inherited
inherited_from \cVersion::$$aCfgClient
inherited_from \cVersionImport::$$aCfgClient
 

$aVarForm : array
Inherited
inherited_from \cVersion::$$aVarForm
inherited_from \cVersionImport::$$aVarForm
 

$dActualTimestamp : \???
Inherited
inherited_from \cVersion::$$dActualTimestamp
inherited_from \cVersionImport::$$dActualTimestamp
 

$dCreated : \???
Inherited
inherited_from \cVersion::$$dCreated
inherited_from \cVersionImport::$$dCreated
 

$dLastModified : \???
Inherited
inherited_from \cVersion::$$dLastModified
inherited_from \cVersionImport::$$dLastModified
 

$dTimestamp : \???
Inherited
inherited_from \cVersion::$$dTimestamp
inherited_from \cVersionImport::$$dTimestamp
 

$iClient : int
Inherited
inherited_from \cVersion::$$iClient
inherited_from \cVersionImport::$$iClient
 

$iFrame : int
Inherited
inherited_from \cVersion::$$iFrame
inherited_from \cVersionImport::$$iFrame
 

$iIdentity : int
Inherited
inherited_from \cVersion::$$iIdentity
inherited_from \cVersionImport::$$iIdentity
 

$iRevisionNumber : int
Inherited
inherited_from \cVersion::$$iRevisionNumber
inherited_from \cVersionImport::$$iRevisionNumber
 

$oDB : \cDb
Inherited
inherited_from \cVersion::$$oDB
inherited_from \cVersionImport::$$oDB
 

$sAlternativePath : string
Inherited
inherited_from \cVersion::$$sAlternativePath
inherited_from \cVersionImport::$$sAlternativePath
 

$sArea : array
Inherited
inherited_from \cVersion::$$sArea
inherited_from \cVersionImport::$$sArea
 

$sAuthor : string
Inherited
inherited_from \cVersion::$$sAuthor
inherited_from \cVersionImport::$$sAuthor
 

$sType : string
Inherited
inherited_from \cVersion::$$sType
inherited_from \cVersionImport::$$sType
 

$bVersioningActive : bool
Inherited
inherited_from \cVersion::$$bVersioningActive
inherited_from \cVersionImport::$$bVersioningActive