NamespaceMapping
in package
Tags
Table of Contents
- $basedir : string
- The basedir is the root directory of an application. For spitfire this is usually the /bin directory. This directory contains all the app specific data. Including controllers, views and models.
- $namespace : mixed
- $URISpace : mixed
- __construct() : mixed
- Creates a new App. Receives the directory where this app resides in and the URI namespace it uses.
- getBaseDir() : string
- getNameSpace() : string|null
- getURISpace() : string|null
Properties
$basedir
The basedir is the root directory of an application. For spitfire this is usually the /bin directory. This directory contains all the app specific data. Including controllers, views and models.
private
string
$basedir
In the specific case of Spitfire this folder also contains the 'child apps' that can be added to it.
$namespace
private
mixed
$namespace
$URISpace
private
mixed
$URISpace
Methods
__construct()
Creates a new App. Receives the directory where this app resides in and the URI namespace it uses.
public
__construct(string $basedir, string $URISpace, string $namespace) : mixed
Parameters
- $basedir : string
-
The root directory of this app
- $URISpace : string
-
The URI name-space it 'owns'
- $namespace : string
-
The class name-space it 'owns'
Return values
mixed —getBaseDir()
public
getBaseDir() : string
Return values
string —getNameSpace()
public
getNameSpace() : string|null
Return values
string|null —getURISpace()
public
getURISpace() : string|null