LEPTON CMS 7.4.0
feel free to keep it strictly simple...
Loading...
Searching...
No Matches
LEPTON_basics Class Reference

Static Public Member Functions

static getInstance ()
 
static get_errorlevels ()
 
static get_backend_translation (string $sKey="")
 
static getLanguagePath (string $sRootDir="")
 

Data Fields

const SYSTEM_DEFAULT_STR = 'System Default'
 

Static Public Attributes

static $instance
 

Detailed Description

This file is part of LEPTON Core, released under the GNU GPL Please see LICENSE and COPYING files in your package for details, specially for terms and warranties.

NOTICE:LEPTON CMS Package has several different licenses. Please see the individual license in the header of each single file or info.php of modules and templates.

Author
LEPTON Project

Definition at line 24 of file lepton_basics.php.

Member Function Documentation

◆ get_backend_translation()

static get_backend_translation ( string $sKey = "")
static

Backend-Theme specific language values

Parameters
string$sKeyAny valid key-string. Default is "".
Returns
string The value if the key or a warning about the missing key.

@notice You can use the method to "preload" the theme-language file passing NULL to load them where you need them!

Backend-Theme can also have additional language-files

Definition at line 92 of file lepton_basics.php.

◆ get_errorlevels()

static get_errorlevels ( )
static

Get the error-levels.

Returns
array An assoc. array with the error-levels.

Definition at line 59 of file lepton_basics.php.

◆ getInstance()

static getInstance ( )
static

Return the internal instance.

Returns
object The instance of this class.

Definition at line 41 of file lepton_basics.php.

◆ getLanguagePath()

static getLanguagePath ( string $sRootDir = "")
static

Returns the path to the language file inside a given directory; mostly the current module.

Parameters
string$sRootDirA path to the "look-up" dir
Returns
string The path to the language file, if the corresponding one to the current LANGUAGE doesn't exist the EN version will return.

Definition at line 140 of file lepton_basics.php.

Field Documentation

◆ $instance

$instance
static

Holds the 'singleton' instance of this class.

@type object

Definition at line 33 of file lepton_basics.php.

◆ SYSTEM_DEFAULT_STR

const SYSTEM_DEFAULT_STR = 'System Default'

Definition at line 26 of file lepton_basics.php.


The documentation for this class was generated from the following file: