Property | Type | Description | |
---|---|---|---|
$classMap | list of namespaces currently in use |
Property | Type | Description | |
---|---|---|---|
$classExists | list of class exists checks |
Method | Description | |
---|---|---|
autoload ( $className ) | Class autoload loader. | |
createComponent ( $requestedType ) : |
Creates a component with the specified type. | |
exceptionHandler ( $exception ) | Default exception handler. | |
fatalError ( $msg ) | Fatal error handler. | |
getApplication ( ) : |
||
getFrameworkPath ( ) : string | ||
getLogger ( ) : |
||
getPathOfAlias ( $alias ) : string | ||
getPathOfNamespace ( $namespace, $ext = '' ) : string | Translates a namespace into a file path. | |
getPreferredLanguage ( ) : string | Returns the most preferred language by the client user. | |
getUserLanguages ( ) : array | Returns a list of user preferred languages. | |
getVersion ( ) : string | ||
init ( ) | ||
initAutoloader ( ) | Loads the static classmap and registers the autoload function. | |
initErrorHandlers ( ) | Initializes error handlers. | |
localize ( $text, $parameters = [], $catalogue = null, $charset = null ) : string | Localize a text to the locale/culture specified in the globalization handler. | |
log ( $msg, $level = TLogger::INFO, $category = 'Uncategorized', $ctl = null ) | Logs a message. | |
phpErrorHandler ( $errno, $errstr, $errfile, $errline ) | PHP error handler. | |
phpFatalErrorHandler ( ) | PHP shutdown function used to catch fatal errors. | |
poweredByPrado ( $logoType ) : string | ||
setApplication ( $application ) | Stores the application instance in the class static member. | |
setPathOfAlias ( $alias, $path ) | ||
trace ( $msg, $category = 'Uncategorized', $ctl = null ) | Writes a log message. | |
using ( $namespace, $checkClassExistence = true ) | Uses a namespace. | |
varDump ( $var, $depth = 10, $highlight = false ) : string | Converts a variable into a string representation. |
Method | Description | |
---|---|---|
getPathAliases ( ) | ||
prado3NamespaceToPhpNamespace ( $type ) : string | Convert old Prado namespaces to PHP namespaces |
public static autoload ( $className ) |
public static createComponent ( $requestedType ) : |
||
return | component instance of the specified type |
public static exceptionHandler ( $exception ) |
public static fatalError ( $msg ) |
public static getApplication ( ) : |
||
return | the application singleton, null if the singleton has not be created yet. |
public static getFrameworkPath ( ) : string | ||
return | string | the path of the framework |
public static getLogger ( ) : |
||
return | message logger |
public static getPathOfAlias ( $alias ) : string | ||
return | string | the path corresponding to the alias, null if alias not defined. |
public static getPathOfNamespace ( $namespace, $ext = '' ) : string | ||
return | string | file path corresponding to the namespace, null if namespace is invalid |
public static getPreferredLanguage ( ) : string | ||
return | string | the most preferred language by the client user, defaults to English. |
public static getUserLanguages ( ) : array | ||
return | array | list of user preferred languages. |
public static getVersion ( ) : string | ||
return | string | the version of Prado framework |
public static initAutoloader ( ) |
public static initErrorHandlers ( ) |
public static log ( $msg, $level = TLogger::INFO, $category = 'Uncategorized', $ctl = null ) |
public static phpErrorHandler ( $errno, $errstr, $errfile, $errline ) |
public static phpFatalErrorHandler ( ) |
public static poweredByPrado ( $logoType ) : string | ||
return | string | a string that can be displayed on your Web page showing powered-by-PRADO information |
protected static prado3NamespaceToPhpNamespace ( $type ) : string | ||
return | string | Equivalent class name in PHP namespace format |
public static setApplication ( $application ) |
public static trace ( $msg, $category = 'Uncategorized', $ctl = null ) |
public static using ( $namespace, $checkClassExistence = true ) |