Framework
in package
Class for doing initial setup of the Framework.
Table of Contents
- ADMINROLE = 'Admin'
- AUTHKEY = 'Some string of text.....'
- AUTHTOKEN = 'X-APPNAME-TOKEN'
- CONFIG = self::DBPREFIX . 'fwconfig'
- CONFIRM = self::DBPREFIX . 'confirm'
- DBPREFIX = ''
- DEVELROLE = 'Developer'
- FORM = self::DBPREFIX . 'form'
- FORMFIELD = self::DBPREFIX . 'formfield'
- FWCONTEXT = self::DBPREFIX . 'Site'
- PAGE = self::DBPREFIX . 'page'
- PAGEROLE = self::DBPREFIX . 'pagerole'
- ROLE = self::DBPREFIX . 'role'
- ROLECONTEXT = self::DBPREFIX . 'rolecontext'
- ROLENAME = self::DBPREFIX . 'rolename'
- TABLE = self::DBPREFIX . 'table'
- TEST = self::DBPREFIX . 'fwtest'
- TESTCONTEXT = self::DBPREFIX . 'Test'
- TESTROLE = 'Tester'
- USER = self::DBPREFIX . 'user'
- constant() : mixed
- Get the value of a Configuration constant. Rather than accessing constants directly This uses refelection to check for the value. This allows the framework to add new constants and not break old code.
- initialise() : void
- Initialise some standard things for any invocation of a page
Constants
ADMINROLE
public
mixed
ADMINROLE
= 'Admin'
AUTHKEY
public
mixed
AUTHKEY
= 'Some string of text.....'
AUTHTOKEN
public
mixed
AUTHTOKEN
= 'X-APPNAME-TOKEN'
CONFIG
public
mixed
CONFIG
= self::DBPREFIX . 'fwconfig'
CONFIRM
public
mixed
CONFIRM
= self::DBPREFIX . 'confirm'
DBPREFIX
public
mixed
DBPREFIX
= ''
DEVELROLE
public
mixed
DEVELROLE
= 'Developer'
FORM
public
mixed
FORM
= self::DBPREFIX . 'form'
FORMFIELD
public
mixed
FORMFIELD
= self::DBPREFIX . 'formfield'
FWCONTEXT
public
mixed
FWCONTEXT
= self::DBPREFIX . 'Site'
PAGE
public
mixed
PAGE
= self::DBPREFIX . 'page'
PAGEROLE
public
mixed
PAGEROLE
= self::DBPREFIX . 'pagerole'
ROLE
public
mixed
ROLE
= self::DBPREFIX . 'role'
ROLECONTEXT
public
mixed
ROLECONTEXT
= self::DBPREFIX . 'rolecontext'
ROLENAME
public
mixed
ROLENAME
= self::DBPREFIX . 'rolename'
TABLE
public
mixed
TABLE
= self::DBPREFIX . 'table'
TEST
public
mixed
TEST
= self::DBPREFIX . 'fwtest'
TESTCONTEXT
public
mixed
TESTCONTEXT
= self::DBPREFIX . 'Test'
TESTROLE
public
mixed
TESTROLE
= 'Tester'
USER
public
mixed
USER
= self::DBPREFIX . 'user'
Methods
constant()
Get the value of a Configuration constant. Rather than accessing constants directly This uses refelection to check for the value. This allows the framework to add new constants and not break old code.
public
static constant(string $name[, mixed $default = '' ]) : mixed
Parameters
- $name : string
-
The constant name - all in upper case
- $default : mixed = ''
-
A default value for if it is not defined
Return values
mixed —initialise()
Initialise some standard things for any invocation of a page
public
static initialise() : void