Class cModuleHandler
Class for new modul structure.
Saves the Modul-Input in file "input.php" and Modul-Output in file "output.php". All modules of a client are in [frontend]/modules/.
Direct known subclasses
cModuleFileTranslation, cModuleSearch, cModuleSynchronizer, cModuleTemplateHandlerCopyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Rusmir Jusufovic
Located at classes/module/class.module.handler.php
public
|
|
public static
mixed
|
|
public
boolean
|
|
public
string|boolean
|
#
saveContentToFile( string $templateName, string $fileType, string $fileContent, string $saveDirectory = 'cache' )
Save a content in the file, use for css/js. |
public static
string
|
|
public
|
|
protected
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
protected
string
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
#
createModuleFile( string $type, string $fileName = NULL, string $content = '' )
Create and save new file. |
public
boolean
|
|
public
string
|
|
public
string|boolean
|
#
getFilesContent( string $directory, string $fileTyp, string $fileName = NULL )
Get the content of file, modul js or css or template or php. |
protected
boolean
|
|
public
array
|
|
public
|
|
public
boolean
|
|
public
string|boolean
|
|
public
boolean|string
|
|
protected
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
true
|
#
saveInfoXML( string $moduleName = NULL, string $description = NULL, string $type = NULL, string $alias = NULL )
This method save a xml file with modul information. If the params not set, get the value from this. |
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
array
|
|
public
array
|
|
protected
array
|
|
protected
array
|
private
string
|
$_modulePath |
|
#
Path to a modul dir. |
private
string
|
$_path |
|
#
Path to the modul dir where are all the moduls of a client (frontendpath). |
protected
integer
|
$_idmod | NULL |
#
Id of the Modul. |
private
string
|
$_moduleName | NULL |
#
The name of the modul. |
protected
string
|
$_description |
|
#
Description of the modul. |
protected
string
|
$_type |
|
#
The type of the modul. |
protected
string
|
$_moduleAlias |
|
#
The alias name of the modul. |
protected
array
|
$_directories | array(
'css' => 'css/',
'js' => 'js/',
'template' => 'template/',
'image' => 'image/',
'lang' => 'lang/',
'php' => 'php/'
) |
#
The names of the modul directories. |
protected
array
|
$_cfg | NULL |
#
CONTENIDO cfg. |
protected
array
|
$_cfgClient | NULL |
#
CONTENIDO cfgClient. |
protected
integer
|
$_client | '0' |
#
id of the Client. |
protected
string
|
$_input | '' |
#
The code of the modul input. |
protected
string
|
$_output | '' |
#
The code of the modul output. |
protected
string
|
$_encoding | '' |
#
Encoding oft the site. |
protected
string
|
$_fileEncoding | '' |
#
Which format of encoding should be files (input/output/translation...) |
protected
integer
|
$_idlang | -1 |
#
The id of the lang. |
private
|
$_db | NULL |
|
protected static
array
|
$_encodingStore | array() |