Methods

Constructor

Contenido_Backend() 

Checks if choosen action exists.

getCode(\$action $action) : \$action

If so, execute/eval it.

Parameters

$action

\$action

String Action to execute

Returns

\$actionString Code for selected Action

Returns the specified file path.

getFile(\$which $which) 

Distinction between 'inc' and 'main' files.

'inc' => Required file like functions/classes etc. 'main' => Main file

Parameters

$which

\$which

String 'inc' / 'main'

Creates a log entry for the specified parameters.

log(\$idcat $idcat, \$idart $idart, \$client $client, \$lang $lang, \$action $idaction) 

Parameters

$idcat

\$idcat

Category-ID

$idart

\$idart

Article-ID

$client

\$client

Client-ID

$lang

\$lang

Language-ID

$idaction

\$action

Action (ID or canonical name)

Loads all required data from the DB and stores it in the $actions and $files array

select(\$area $area) : 

Parameters

$area

\$area

string selected area

Returns

Set the frame number in which the file is loaded

setFrame($frame_nr) : void

Parameters

$frame_nr

 Properties

 

Possible actions

$actions : array

 

Save area

$area : string

 

Debug flag

$debug 

 

Errors

$errors : array

 

Files

$files : array

 

Stores the frame number

$frame : int