Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • PHP
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SIWECOS
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob

Classes

  • cContentVersioning
  • cVersion
  • cVersionFile
  • cVersionLayout
  • cVersionModule
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class cVersionFile

Class of File System We use super class Version to create a new Version.

cVersion
Extended by cVersionFile
Package: Core\Versioning
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Bilal Arslan
Author: Timo Trautmann
Located at classes/version/class.version.file.php
Methods summary
public
# __construct( string $iIdOfType, array $aFileInfo, string $sFileName, string $sTypeContent, array $aCfg, array $aCfgClient, cDb $oDB, integer $iClient, string $sArea, integer $iFrame, string $sVersionFileName = '' )

Constructor to create an instance of this class.

Constructor to create an instance of this class.

Initializes class variables.

Parameters

$iIdOfType
string
$iIdOfType The name of style file
$aFileInfo
array
$aFileInfo Get FileInformation from table file_information
$sFileName
string
$sFileName
$sTypeContent
string
$sTypeContent
$aCfg
array
$aCfg
$aCfgClient
array
$aCfgClient
$oDB
cDb
$oDB CONTENIDO database object
$iClient
integer
$iClient
$sArea
string
$sArea
$iFrame
integer
$iFrame
$sVersionFileName
string
$sVersionFileName [optional]

Throws

cInvalidArgumentException

Overrides

cVersion::__construct()
protected
# initFileContent( )

This function init the class member sCode with current file content

This function init the class member sCode with current file content

Throws

cInvalidArgumentException
public array
# initXmlReader( string $sPath )

This function read an xml file nodes

This function read an xml file nodes

Parameters

$sPath
string
$sPath Path to file

Returns

array
returns array width nodes

Throws

cException
public string
# getPathFile( )

This function reads the path of file

This function reads the path of file

Returns

string
the path of file
public string
# renderReloadScript( string $sArea, string $sFilename, object $sess )

Function returns javascript which refreshes CONTENIDO frames for file list an subnavigation. This is necessary, if filenames where changed, when a history entry is restored

Function returns javascript which refreshes CONTENIDO frames for file list an subnavigation. This is necessary, if filenames where changed, when a history entry is restored

Parameters

$sArea
string
$sArea name of CONTENIDO area in which this procedure should be done
$sFilename
string
$sFilename new filename of file which should be updated in other frames
$sess
object
$sess CONTENIDO session object

Returns

string
Javascript for refrehing frames
Methods inherited from cVersion
buildSelectBox(), checkPaths(), createNewVersion(), createNewXml(), deleteFile(), displayNotification(), getFilePath(), getFirstRevision(), getFormatTimestamp(), getLastRevision(), getRevisionFiles(), getTextBox(), getTextarea(), initRevisions(), prune(), setBodyNodeDescription(), setData(), setVarForm()
Properties summary
public string $sCode
#

Content code of current file.

Content code of current file.

public string $sDescription
#

Description folder of history sub nav. Its not required to use it.

Description folder of history sub nav. Its not required to use it.

public string $sPath
#

The path of style file.

The path of style file.

public string $sFileName
#

The id of Type.

The id of Type.

Properties inherited from cVersion
$aBodyData, $aCfg, $aCfgClient, $aRevisionFiles, $aVarForm, $dActualTimestamp, $dCreated, $dLastModified, $dTimestamp, $iClient, $iDisplayNotification, $iFrame, $iIdentity, $iRevisionNumber, $iVersion, $oDB, $sAlternativePath, $sArea, $sAuthor, $sDescripion, $sType
CMS CONTENIDO 4.10.1 API documentation generated by ApiGen 2.8.0