Overview

Packages

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

Classes

  • cLayoutHandler
  • cLayoutSynchronizer
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class cLayoutSynchronizer

This class synchronizes layouts from filesystem to database table.

Package: Core\LayoutHandler
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Rusmir Jusufovic
Located at classes/class.layout.synchronizer.php
Methods summary
public
# __construct( array $cfg, array $cfgClient, integer $lang, integer $client )

Parameters

$cfg
array
$cfg
$cfgClient
array
$cfgClient
$lang
integer
$lang
$client
integer
$client
private
# _addOrUpdateLayout( string $dir, string $oldLayoutName, string $newLayoutName, string $idclient )

Add a Layout to table or update a layout

Add a Layout to table or update a layout

Parameters

$dir
string
$dir
$oldLayoutName
string
$oldLayoutName
$newLayoutName
string
$newLayoutName
$idclient
string
$idclient
private
# _updateModulnameInDb( string $oldName, string $newName, integer $idclient )

Update the name of layout (if the name not allowes)

Update the name of layout (if the name not allowes)

Parameters

$oldName
string
$oldName old name
$newName
string
$newName new module name
$idclient
integer
$idclient id of client
private boolean
# _renameFileAndDir( string $dir, string $dirNameOld, string $dirNameNew, integer $client )

Rename the directory and files

Rename the directory and files

Parameters

$dir
string
$dir
$dirNameOld
string
$dirNameOld
$dirNameNew
string
$dirNameNew
$client
integer
$client

Returns

boolean
private boolean
# _isExistInTable( string $alias, integer $idclient )

Exist the layout in db-table

Exist the layout in db-table

Parameters

$alias
string
$alias layout name
$idclient
integer
$idclient client id

Returns

boolean
private
# _renameFiles( string $dir, string $oldLayoutName, string $newLayoutName )

Rename the Layout

Rename the Layout

Parameters

$dir
string
path to client layout-direcotry $dir
$oldLayoutName
string
$oldLayoutName layout name in file directory
$newLayoutName
string
$newLayoutName clear layout name
public
# setLastModified( integer $timestamp, integer $idlay )

Update the con_mod, the field lastmodified

Update the con_mod, the field lastmodified

Parameters

$timestamp
integer
$timestamp timestamp of last modification
$idlay
integer
$idlay Id of layout
private
# _compareFileAndLayoutTimestamp( )

Compare file change timestamp and the timestamp in ["tab"]["lay"]. If file had changed make new code :conGenerateCodeForAllArtsUsingMod

Compare file change timestamp and the timestamp in ["tab"]["lay"]. If file had changed make new code :conGenerateCodeForAllArtsUsingMod

private
# _showOutputMessage( )
private boolean
# _isValidFirstChar( string $file )

If the first char a '.' return false else true

If the first char a '.' return false else true

Parameters

$file
string
$file

Returns

boolean
true if the first char !='.' else false
public boolean
# synchronize( )

Synchronize the Layout directory with the lay-table und the lay-table with directory.

Synchronize the Layout directory with the lay-table und the lay-table with directory.

Returns

boolean
Properties summary
protected array $_cfg
#
protected array $_cfgClient
#
protected integer $_lang
#
protected integer $_client
#
private array $_outputMessage array()
#
CMS CONTENIDO 4.9.5 API documentation generated by ApiGen 2.8.0