contenido\classes\class.versionImport.php

Show: PublicProtectedPrivateinherited
Table of Contents
Project: Contenido Content Management System

Description: Super class for revision

Requirements:

Author
Bilal Arslan, Timo Trautmann  
Con_php_req
5.0  
Copyright
four for business AG  
License
http://www.contenido.org/license/LIZENZ.txt  
Link
http://www.4fb.de  
Link
http://www.contenido.org  
Package
Contenido Backend classes  
Since
file available since contenido release >= 4.8.8 {@internal created 2008-08-12 }}  
Version
1.0.0  

\VersionImport

Package: Default
Parent(s)
\Version

Properties

>VPropertyprotected$aBodyData
inherited
Body data of xml file
Inherited from: \Version::$$aBodyData
Details
Type
n/a
Access
protected  
Inherited_from
\Version::$$aBodyData  
>VPropertyprotected$aCfg
inherited
For init global variable
Inherited from: \Version::$$aCfg
Details
Type
n/a
Access
protected  
Inherited_from
\Version::$$aCfg  
>VPropertyprotected$aCfgClient
inherited
For init global variable $cfgClient
Inherited from: \Version::$$aCfgClient
Details
Type
n/a
Access
protected  
Inherited_from
\Version::$$aCfgClient  
>VPropertyprivate$aCreateVersion
Array contents all version information
Details
Type
n/a
Access
public  
>VPropertypublic$aRevisionFiles
inherited
Revision files of current file
Inherited from: \Version::$$aRevisionFiles
Details
Type
n/a
Access
public  
Inherited_from
\Version::$$aRevisionFiles  
>VPropertyprotected$aVarForm
inherited
For init variables
Inherited from: \Version::$$aVarForm
Details
Type
n/a
Access
protected  
Inherited_from
\Version::$$aVarForm  
>VPropertyprivate$bDeletabel
Information of deletable
Details
Type
n/a
Access
private  
>VPropertyprivate$bVersionCreatActive
inherited
To take control versioning is switched off
Inherited from: \Version::$$bVersionCreatActive
Details
Type
n/a
Access
private  
Inherited_from
\Version::$$bVersionCreatActive  
>VPropertyprotected$dActualTimestamp
inherited
Timestamp
Inherited from: \Version::$$dActualTimestamp
Details
Type
n/a
Access
protected  
Inherited_from
\Version::$$dActualTimestamp  
>VPropertyprotected$dCreated
inherited
Time of created
Inherited from: \Version::$$dCreated
Details
Type
n/a
Access
protected  
Inherited_from
\Version::$$dCreated  
>VPropertyprotected$dLastModified
inherited
Time of last modified
Inherited from: \Version::$$dLastModified
Details
Type
n/a
Access
protected  
Inherited_from
\Version::$$dLastModified  
>VPropertyprotected$dTimestamp
inherited
Timestamp
Inherited from: \Version::$$dTimestamp
Details
Type
n/a
Access
protected  
Inherited_from
\Version::$$dTimestamp  
>VPropertyprotected$iClient
inherited
For init global variable $client
Inherited from: \Version::$$iClient
Details
Type
n/a
Access
protected  
Inherited_from
\Version::$$iClient  
>VPropertypublic$iDisplayNotification
staticinherited
Displays Notification only onetimes per object
Inherited from: \Version::$$iDisplayNotification
Details
Type
n/a
Inherited_from
\Version::$$iDisplayNotification  
>VPropertyprotected$iFrame
inherited
For init global variable $frame
Inherited from: \Version::$$iFrame
Details
Type
n/a
Access
protected  
Inherited_from
\Version::$$iFrame  
>VPropertyprotected$iIdentity
inherited
Identity the Id of Content Type
Inherited from: \Version::$$iIdentity
Details
Type
n/a
Access
protected  
Inherited_from
\Version::$$iIdentity  
>VPropertyprotected$iRevisionNumber
inherited
Number of Revision
Inherited from: \Version::$$iRevisionNumber
Details
Type
n/a
Access
private  
Inherited_from
\Version::$$iRevisionNumber  
>VPropertyprivate$iWert
Check variable for look version number
Details
Type
n/a
Access
public  
>VPropertyprotected$oDB
inherited
Database object
Inherited from: \Version::$$oDB
Details
Type
n/a
Access
protected  
Inherited_from
\Version::$$oDB  
>VPropertyprotected$sAlternativePath
inherited
Alternative Path for save version files
Inherited from: \Version::$$sAlternativePath
Details
Type
n/a
Access
protected  
Inherited_from
\Version::$$sAlternativePath  
>VPropertyprotected$sArea
inherited
For init global variable $area
Inherited from: \Version::$$sArea
Details
Type
n/a
Access
protected  
Inherited_from
\Version::$$sArea  
>VPropertyprotected$sAuthor
inherited
md5 coded name of author
Inherited from: \Version::$$sAuthor
Details
Type
n/a
Access
protected  
Inherited_from
\Version::$$sAuthor  
>VPropertyprivate$sCodeInput
Code Input
Details
Type
n/a
Access
private  
>VPropertyprivate$sCodeOutput
Code Output
Details
Type
n/a
Access
private  
>VPropertyprivate$sDescripion
Description of modul
Details
Type
n/a
Access
private  
>VPropertyprivate$sError
Error Output
Details
Type
n/a
Access
private  
>VPropertypublic$sModType
Type of modul
Details
Type
n/a
Access
public  
>VPropertyprivate$sName
The name of modul
Details
Type
n/a
Access
private  
>VPropertyprivate$sPackageData
Information of package data
Details
Type
n/a
Access
private  
>VPropertyprivate$sPackageGuid
Information about package guid
Details
Type
n/a
Access
private  
>VPropertyprivate$sStatic
static
Details
Type
n/a
Access
private  
>VPropertyprivate$sTableName
Table name of mod_history
Details
Type
n/a
Access
public  
>VPropertypublic$sTemplate
Template name of modul
Details
Type
n/a
Access
public  
>VPropertyprotected$sType
inherited
Id of Type
Inherited from: \Version::$$sType
Details
Type
n/a
Access
protected  
Inherited_from
\Version::$$sType  

Methods

methodpublicCreateHistoryVersion() : void

Creats xml files from table mod_history if exists any rows.

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

methodpublic__construct(array $aCfg, array $aCfgClient, object $oDB, integer $iClient, object $sArea, object $iFrame) : void

The class versionImport object constructor, initializes class variables

Parameters
NameTypeDescription
$aCfgarray
$aCfgClientarray
$oDBobject
$iClientinteger
$sAreaobject
$iFrameobject
methodpublicbuildSelectBox(string $sTableForm, string $sAddHeader, string $sLabelOfSelectBox, string $sIdOfSelectBox) : void
inherited

The general SelectBox function for get Revision.

Inherited from: \Version::buildSelectBox()
Parameters
NameTypeDescription
$sTableFormstring

The name of Table_Form class

$sAddHeaderstring

The Header Label of SelectBox Widget

$sLabelOfSelectBoxstring

The Label of SelectBox Widget

$sIdOfSelectBoxstring

Id of Select Box return string if is exists Revision, then returns HTML Code of full SelectBox else returns empty string

methodprotectedcheckPaths() : void
inherited

This function checks if needed version paths exists and were created if neccessary

Inherited from: \Version::checkPaths()
methodprivatecreateBodyXML() : void

Set with the body nodes of xml file

methodpubliccreateNewVersion() : void
inherited

This function creats new version in right folder.

Inherited from: \Version::createNewVersion()
methodpubliccreateNewXml() : string
inherited

This function creats an xml file.

Inherited from: \Version::createNewXml()

XML Writer helps for create this file.

Returns
TypeDescription
stringreturns content of xml file
methodpublicdeleteFile( $sFirstFile = "") : bool
inherited

This function deletes files and the the folder, for given path.

Inherited from: \Version::deleteFile()
Parameters
NameTypeDescription
$sFirstFile
Returns
TypeDescription
boolreturn true if successful
methodpublicdeleteRows( $iModHistory) : void

Deletes the row wich id of mod_history

Parameters
NameTypeDescription
$iModHistory
methodpublicdisplayNotification(string $sOutPut) : void
inherited

Displays your notification

Inherited from: \Version::displayNotification()
Parameters
NameTypeDescription
$sOutPutstring
methodpublicdropTable() : void

Drops table if table exists

methodpublicgetFilePath() : string
inherited

Get the frontendpath to revision

Inherited from: \Version::getFilePath()
Returns
TypeDescription
stringreturns path to revision file
methodprotectedgetFirstRevision() : string
inherited

Inits the first element of revision files

Inherited from: \Version::getFirstRevision()
Returns
TypeDescription
stringthe name of xml files
methodpublicgetFormatTimestamp() : array
inherited

This function generate version names for select-box

Inherited from: \Version::getFormatTimestamp()
Returns
TypeDescription
arrayreturns an array of revision file names
methodpublicgetLastRevision() : array
inherited

Get the last revision file

Inherited from: \Version::getLastRevision()
Returns
TypeDescription
arrayreturns Last Revision
methodprivategetMessages() : void
inherited

Messagebox for build selectBox.

Inherited from: \Version::getMessages()

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

methodprivategetModuleHistoryTable() : void

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

methodprivategetRevision() : integer
inherited

Makes new and init Revision Name

Inherited from: \Version::getRevision()
Returns
TypeDescription
integerreturns number of Revison File
methodpublicgetRevisionFiles() : array
inherited

Revision Files

Inherited from: \Version::getRevisionFiles()
Returns
TypeDescription
arrayreturns all Revison File
methodprivategetRows() : integer

Get all rows in tabel mod_con_history

Returns
TypeDescription
integercount of rows
methodprivategetSelectBox( $aTempVesions,  $sIdOfSelectBox) : void
inherited

A Class Function for fill version files

Inherited from: \Version::getSelectBox()
Parameters
NameTypeDescription
$aTempVesions
$sIdOfSelectBox
methodpublicgetTextBox(string $sName,  $sInitValue, integer $iWidth,  $bDisabled = false) : string
inherited

Build new Textfield with below parameters

Inherited from: \Version::getTextBox()
Parameters
NameTypeDescription
$sNamestring

The name of Input Textfield.

$sInitValue
$iWidthinteger

width of Input Textfield

$bDisabled
Returns
TypeDescription
stringHTML Code of Input Textfield
methodpublicgetTextarea(string $sName,  $sInitValue, integer $iWidth, integer $iHeight,  $sId = "") : string
inherited

Build new Textarea with below parameters

Inherited from: \Version::getTextarea()
Parameters
NameTypeDescription
$sNamestring

The name of Textarea.

$sInitValue
$iWidthinteger

width of Textarea

$iHeightinteger

height of Textarea

$sId
Returns
TypeDescription
stringHTML Code of Textarea
methodprotectedinitRevisions() : array
inherited

This function inits version files.

Inherited from: \Version::initRevisions()

Its filter also timestamp and version files

Returns
TypeDescription
arrayreturns xml file names
methodprotectedprune() : void
inherited

This function looks if maximum number of stored versions is achieved.

Inherited from: \Version::prune()

If true, it will be delete the first version.

methodpublicsetBodyNodeDescription(string $sDesc) : void
inherited

Set new node for xml file of description

Inherited from: \Version::setBodyNodeDescription()
Parameters
NameTypeDescription
$sDescstring

Content of node

methodpublicsetData(string $sKey, string $sValue) : array
inherited

This function initialize the body node of xml file

Inherited from: \Version::setData()
Parameters
NameTypeDescription
$sKeystring
$sValuestring
Returns
TypeDescription
arrayreturns an array for body node
methodpublicsetVarForm( $sKey,  $sValue) : array
inherited

This function generate version names for select-box

Inherited from: \Version::setVarForm()
Parameters
NameTypeDescription
$sKey
$sValue
Returns
TypeDescription
arrayreturns an array of revision file names
Documentation was generated by phpDocumentor 2.0.0a12.