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
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • 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
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • cLayoutHandler
  • cLayoutSynchronizer
  • Overview
  • Package
  • Class
  • Todo
  • Download

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
$cfgClient
$lang
$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
$oldLayoutName
$newLayoutName
$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
old name
$newName
new module name
$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
$dirNameOld
$dirNameNew
$client

Returns

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

Exist the layout in db-table

Exist the layout in db-table

Parameters

$alias
layout name
$idclient
client id

Returns

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

Rename the Layout

Rename the Layout

Parameters

$dir
to client layout-direcotry $dir
$oldLayoutName
layout name in file directory
$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
timestamp of last modification
$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( )
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.7 API documentation generated by ApiGen