deprecated [2011-11-15] Use cLayoutSynchronizer instead of this class.

 Methods

__construct()

__construct($cfg, $cfgClient, $lang, $client) 
deprecated [2011-11-15] Use cLayoutHandler instead of this class.

Parameters

$cfg

$cfgClient

$lang

$client

Update the con_mod, the field lastmodified

setLastModified(int $timestamp, $idlay) 
Inherited
inherited_from \cLayoutSynchronizer::setLastModified()

Parameters

$timestamp

int

timestamp of last modification

$idlay

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

synchronize() 
Inherited
inherited_from \cLayoutSynchronizer::synchronize()

Add a layout to Db-table

_addLayout(string $name, int $idclient) 
Inherited
inherited_from \cLayoutSynchronizer::_addLayout()

Parameters

$name

string

$idclient

int

Add a Layout to table or update a layout

_addOrUpdateLayout(string $dir, string $oldLayoutName, string $newLayoutName, string $idclient) 
Inherited
inherited_from \cLayoutSynchronizer::_addOrUpdateLayout()

Parameters

$dir

string

$oldLayoutName

string

$newLayoutName

string

$idclient

string

Compare file change timestemp and the timestemp in ["tab"]["lay"].

_compareFileAndLayoutTimestamp() 
Inherited

If file had changed make new code :conGenerateCodeForAllArtsUsingMod

inherited_from \cLayoutSynchronizer::_compareFileAndLayoutTimestamp()

Exist the layout in db-table

_isExistInTable(string $alias, int $idclient) 
Inherited
inherited_from \cLayoutSynchronizer::_isExistInTable()

Parameters

$alias

string

layout name

$idclient

int

client id

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

_isValidFirstChar(string $file) : boolean
Inherited
inherited_from \cLayoutSynchronizer::_isValidFirstChar()

Parameters

$file

string

Returns

booleantrue if the first char !='.' else false

Rename the directory and files

_renameFileAndDir(string $dir, string $dirNameOld, string $dirNameNew, int $client) 
Inherited
inherited_from \cLayoutSynchronizer::_renameFileAndDir()

Parameters

$dir

string

$dirNameOld

string

$dirNameNew

string

$client

int

Rename the Layout

_renameFiles(\path $dir, string $oldLayoutName, string $newLayoutName) 
Inherited
inherited_from \cLayoutSynchronizer::_renameFiles()

Parameters

$dir

\path

to client layout-direcotry $dir

$oldLayoutName

string

layout name in file directory

$newLayoutName

string

clear layout name

_showOutputMessage()

_showOutputMessage() 
Inherited
inherited_from \cLayoutSynchronizer::_showOutputMessage()

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

_updateModulnameInDb(string $oldName, string $newName, int $idclient) 
Inherited
inherited_from \cLayoutSynchronizer::_updateModulnameInDb()

Parameters

$oldName

string

old name

$newName

string

new module name

$idclient

int

id of client

 Properties

 

$_cfg 
Inherited
inherited_from \cLayoutSynchronizer::$$_cfg
 

$_cfgClient 
Inherited
inherited_from \cLayoutSynchronizer::$$_cfgClient
 

$_client 
Inherited
inherited_from \cLayoutSynchronizer::$$_client
 

$_lang 
Inherited
inherited_from \cLayoutSynchronizer::$$_lang
 

$_outputMessage 
Inherited
inherited_from \cLayoutSynchronizer::$$_outputMessage