SimplOn PHP
 All Data Structures Namespaces Files Functions Variables
Public Member Functions | Static Public Member Functions | Data Fields | Static Public Attributes
Main Class Reference

Public Member Functions

 __construct ($ini=null)
 instance_of ($object, $class)

Static Public Member Functions

static run ($ini=null)
static addOnTheFlyAttribute ($class, $attributeName, $attribute)
static getOnTheFlyAttributes ($class)
static setup ($ini=null)
static dataStorage ()
static parameterEncoder ($p)
static encodeURL ($class=null, $construct_params=null, $method=null, $method_params=null, $dataName=null)
static decodeURL ()
static fixCode ($string, $encoding=true)
static fromArray (array $ini)
static createFile ($file_path, $data=null, $flags=null)
static localToRemotePath ($file_path)
static load_obj ($classToLoad)
static loadDom ($template)
static hasNoHtmlTags ($string)

Data Fields

const DEFAULT_INI = 'dof.ini'

Static Public Attributes

static $LOCAL_ROOT
static $REMOTE_ROOT
static $SimplOn_PATH
static $GENERIC_TEMPLATES_PATH
static $MASTER_TEMPLATE
static $CREATE_LAYOUT_TEMPLATES
static $OVERWRITE_LAYOUT_TEMPLATES
static $USE_LAYOUT_TEMPLATES
static $DEFAULT_RENDERER
static $DEFAULT_ELEMENT
static $DEFAULT_METHOD = 'index'
static $URL_METHOD_SEPARATOR = '!'
static $CREATE_FROM_TEMPLATES
static $OVERWRITE_FROM_TEMPLATES
static $USE_FROM_TEMPLATES
static $JS_FLAVOUR = 'jQuery'
static $CSS_FLAVOUR = 'jQuery'
static $PERMISSIONS = false
static $DEV_MODE = false
static $DATA_STORAGE
static $QUICK_DELETE = false
static $onTheFlyAttributes = array()
static $AUTOLOAD_DIRS
static $class
static $method
static $dataName
static $construct_params
static $method_params

Detailed Description

Definition at line 68 of file Main.php.


Constructor & Destructor Documentation

__construct ( ini = null)

Loads all the parameters specific to a website and loads needed classes.

Parameters:
mixed$iniCan be either the path to a ini file or an array with configuration parameters.
Returns:
unknown_type

Definition at line 129 of file Main.php.


Member Function Documentation

static addOnTheFlyAttribute ( class,
attributeName,
attribute 
) [static]

Definition at line 193 of file Main.php.

static createFile ( file_path,
data = null,
flags = null 
) [static]

Definition at line 372 of file Main.php.

static dataStorage ( ) [static]

Definition at line 233 of file Main.php.

static decodeURL ( ) [static]

Definition at line 287 of file Main.php.

static encodeURL ( class = null,
construct_params = null,
method = null,
method_params = null,
dataName = null 
) [static]

Definition at line 251 of file Main.php.

static fixCode ( string,
encoding = true 
) [static]

Definition at line 349 of file Main.php.

static fromArray ( array $  ini) [static]

Definition at line 367 of file Main.php.

static getOnTheFlyAttributes ( class) [static]

Definition at line 197 of file Main.php.

static hasNoHtmlTags ( string) [static]

Definition at line 456 of file Main.php.

instance_of ( object,
class 
)

Credits to Jennifer: http://www.php.net/manual/en/language.operators.type.php#103205

Definition at line 395 of file Main.php.

static load_obj ( classToLoad) [static]

Includes a (class)file looking for it in the following order 1.- Site directory, 2.- Site template directory, 3.- SimplOn directory

Definition at line 417 of file Main.php.

static loadDom ( template) [static]

Definition at line 452 of file Main.php.

static localToRemotePath ( file_path) [static]

Definition at line 410 of file Main.php.

static parameterEncoder ( p) [static]

Definition at line 241 of file Main.php.

static run ( ini = null) [static]

echo '
self::$class ';var_dump(self::$class); echo '
self::$construct_params ';var_dump(self::$construct_params); echo '
self::$dataName ';var_dump(self::$dataName); echo '
self::$method ';var_dump(self::$method); echo '
self::$method_params ';var_dump(self::$method_params); echo '

_SERVER:
';var_dump(

_SERVER,true); return; /*

Definition at line 134 of file Main.php.

static setup ( ini = null) [static]

Definition at line 201 of file Main.php.


Field Documentation

$AUTOLOAD_DIRS [static]
Initial value:
 array(
            '.',
            'DataStorages',
            'Datas',
            'Elements',
            'Utilities',
        )

Definition at line 108 of file Main.php.

$class [static]

Definition at line 117 of file Main.php.

$construct_params [static]

Definition at line 117 of file Main.php.

$CREATE_FROM_TEMPLATES [static]

Definition at line 87 of file Main.php.

$CREATE_LAYOUT_TEMPLATES [static]

Definition at line 72 of file Main.php.

$CSS_FLAVOUR = 'jQuery' [static]

Definition at line 94 of file Main.php.

$DATA_STORAGE [static]

Definition at line 98 of file Main.php.

$dataName [static]

Definition at line 117 of file Main.php.

$DEFAULT_ELEMENT [static]

Definition at line 72 of file Main.php.

$DEFAULT_METHOD = 'index' [static]

Definition at line 86 of file Main.php.

$DEFAULT_RENDERER [static]

Definition at line 72 of file Main.php.

$DEV_MODE = false [static]

Definition at line 98 of file Main.php.

$GENERIC_TEMPLATES_PATH [static]

Definition at line 72 of file Main.php.

$JS_FLAVOUR = 'jQuery' [static]

Definition at line 93 of file Main.php.

$LOCAL_ROOT [static]

Definition at line 72 of file Main.php.

$MASTER_TEMPLATE [static]

Definition at line 72 of file Main.php.

$method [static]

Definition at line 117 of file Main.php.

$method_params [static]

Definition at line 117 of file Main.php.

$onTheFlyAttributes = array() [static]

Definition at line 105 of file Main.php.

$OVERWRITE_FROM_TEMPLATES [static]

Definition at line 87 of file Main.php.

$OVERWRITE_LAYOUT_TEMPLATES [static]

Definition at line 72 of file Main.php.

$PERMISSIONS = false [static]

Definition at line 96 of file Main.php.

$QUICK_DELETE = false [static]

Definition at line 102 of file Main.php.

$REMOTE_ROOT [static]

Definition at line 72 of file Main.php.

$SimplOn_PATH [static]

Definition at line 72 of file Main.php.

$URL_METHOD_SEPARATOR = '!' [static]

Definition at line 87 of file Main.php.

$USE_FROM_TEMPLATES [static]

Definition at line 87 of file Main.php.

$USE_LAYOUT_TEMPLATES [static]

Definition at line 72 of file Main.php.

const DEFAULT_INI = 'dof.ini'

Definition at line 69 of file Main.php.


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