static _addDirectory |
( |
|
$directory | ) |
|
|
staticprotected |
Adds a directory to the PtcHandyMan::$_dirs array to autoload classes.
- Parameters
-
string | $directory | the full path to the directory |
- Returns
- false if directory is already present, true otherwise
Definition at line 404 of file PtcHm.php.
static _addNamespaceDirectory |
( |
|
$namespace, |
|
|
|
$directory |
|
) |
| |
|
staticprotected |
Adds a directory to the PtcHandyMan::$_dirs array to load classes that use namespaces.
- Parameters
-
string | $namespace | the namespace for the path toa utoload classes |
string | $directory | the full path to the directory |
- Returns
- true if directory is not present, triggers an error otherwise
Definition at line 420 of file PtcHm.php.
static _buildAppPaths |
( |
| ) |
|
|
staticprotected |
static _debug |
( |
|
$string, |
|
|
|
$statement = null , |
|
|
|
$category = null |
|
) |
| |
|
staticprotected |
Send messsages to the PtcDebug class if present.
- Parameters
-
mixed | $string | the string to pass |
mixed | $statement | some statement if required |
string | $category | a category for the messages panel |
Definition at line 436 of file PtcHm.php.
static _guessFileName |
( |
|
$class, |
|
|
|
$path, |
|
|
|
$namespace = null |
|
) |
| |
|
staticprotected |
Tries to guess the filename to load based on the naming conventions and the separator properties.
- Parameters
-
string | $class | the class name without namespaces |
string | $path | the full path to the file |
string | $namespace | the class name with namespace if present |
- Returns
- true if a file is found, false otherwise
Definition at line 343 of file PtcHm.php.
static _loadClass |
( |
|
$class, |
|
|
|
$path, |
|
|
|
$namespace = null |
|
) |
| |
|
staticprotected |
Classes autoloader engine, tries various possibilities for file names.
- Parameters
-
string | $class | the class name without namespaces |
string | $path | the full path to the file |
string | $namespace | the class name with namespace if present |
- Returns
- true if a file is found, false otherwise
Definition at line 315 of file PtcHm.php.
static addAppPath |
( |
|
$path | ) |
|
|
static |
static addAppPaths |
( |
|
$paths | ) |
|
|
static |
static addConvention |
( |
|
$conventions | ) |
|
|
static |
static addConventions |
( |
|
$conventions | ) |
|
|
static |
static addFiles |
( |
|
$files | ) |
|
|
static |
Adds class file(s) to the autoloader.
See Adding Files
- Parameters
-
string | $files | full path of the class file |
Definition at line 74 of file PtcHm.php.
static addSeparator |
( |
|
$sep | ) |
|
|
static |
static addSeparators |
( |
|
$sep | ) |
|
|
static |
static getAppPath |
( |
|
$type = null | ) |
|
|
static |
static getAppPaths |
( |
|
$name = null | ) |
|
|
static |
static getConventions |
( |
| ) |
|
|
static |
Retrieves the naming conventions used by the autoloader.
Definition at line 127 of file PtcHm.php.
static getDirs |
( |
|
$type = null | ) |
|
|
static |
static getProperty |
( |
|
$object, |
|
|
|
$propertyName |
|
) |
| |
|
static |
Retrieves inaccessible properties from a class or object.
See Reading Inaccessible Properties
- Parameters
-
mixed | $object | the name of the class or the initialized object |
string | $propertyName | the name of the property |
- Returns
- the value of the property if found.
Definition at line 222 of file PtcHm.php.
Retrieves the separators used by the autoloader.
Definition at line 123 of file PtcHm.php.
Load classes automatically with namespaces support based on folder structure.
See Pointing The Autoloader To Files
- Parameters
-
string | $class | the name of the class to autoload |
- Returns
- true if a file has been loaded, false otherwise.
Definition at line 251 of file PtcHm.php.
static register |
( |
|
$addThisPath = true , |
|
|
|
$useHelpers = true , |
|
|
|
$registerAutoLoader = true |
|
) |
| |
|
static |
Registers the autoloader to load classes when needed.
See Getting Started
- Parameters
-
bool | $addThisPath | adds the path where the class resides as a directory |
bool | $useHelpers | load the ptc-helpers.php file if found, and registers the event class |
bool | $registerAutoLoader | registers the load method with the spl utilities |
Definition at line 103 of file PtcHm.php.
Application paths property.
Definition at line 307 of file PtcHm.php.
Paths for directories to autoload classes.
Definition at line 295 of file PtcHm.php.
$_namingConventions = array( ) |
|
staticprotected |
Naming conventions to attempt to load with the autoloader.
Definition at line 303 of file PtcHm.php.
Separators for naming conventions.
Definition at line 299 of file PtcHm.php.
The documentation for this class was generated from the following file: