Methods

__construct()

__construct($cfg, $cfgClient, $lang, $client) 

Parameters

$cfg

$cfgClient

$lang

$client

Update the con_mod, the field lastmodified

setLastModified(int $timestamp, $idlay) 

Parameters

$timestamp

int

timestamp of last modification

$idlay

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

synchronize() 

Add a layout to Db-table

_addLayout(string $name, int $idclient) 

Parameters

$name

string

$idclient

int

Add a Layout to table or update a layout

_addOrUpdateLayout(string $dir, string $oldLayoutName, string $newLayoutName, string $idclient) 

Parameters

$dir

string

$oldLayoutName

string

$newLayoutName

string

$idclient

string

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

_compareFileAndLayoutTimestamp() 

If file had changed make new code :conGenerateCodeForAllArtsUsingMod

Exist the layout in db-table

_isExistInTable(string $alias, int $idclient) 

Parameters

$alias

string

layout name

$idclient

int

client id

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

_isValidFirstChar(string $file) : boolean

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) 

Parameters

$dir

string

$dirNameOld

string

$dirNameNew

string

$client

int

Rename the Layout

_renameFiles(\path $dir, string $oldLayoutName, string $newLayoutName) 

Parameters

$dir

\path

to client layout-direcotry $dir

$oldLayoutName

string

layout name in file directory

$newLayoutName

string

clear layout name

_showOutputMessage()

_showOutputMessage() 

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

_updateModulnameInDb(string $oldName, string $newName, int $idclient) 

Parameters

$oldName

string

old name

$newName

string

new module name

$idclient

int

id of client

 Properties

 

$_cfg 
 

$_cfgClient 
 

$_client 
 

$_lang 
 

$_outputMessage