XOOPS  2.6.0
Xmf\Loader Class Reference

Static Public Member Functions

static loadClass ($class)
 
static loadFile ($file, $once=true)
 

Static Protected Member Functions

static securityCheck ($filename)
 

Detailed Description

Definition at line 26 of file Loader.php.

Member Function Documentation

static Xmf\Loader::loadClass (   $class)
static

Load a class file, part of old autoloader

Parameters
string$classname of class
Returns
bool if class exists

Definition at line 59 of file Loader.php.

References $file, and DIRECTORY_SEPARATOR.

static Xmf\Loader::loadFile (   $file,
  $once = true 
)
static

Load a file

Parameters
string$filefilename to load
bool$oncetrue to use include_once
Returns
bool true if file exists and was loaded

Definition at line 36 of file Loader.php.

References $file.

Referenced by Xmf\Module\Admin\getInstance(), and Xmf\Module\Permission\init().

Here is the caller graph for this function:

static Xmf\Loader::securityCheck (   $filename)
staticprotected

Ensure that filename does not contain exploits

exit() if name does not pass check

Parameters
string$filenamename of file to check
Returns
void

Security check

Definition at line 91 of file Loader.php.

References exit.


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