Свойство | Тип | Описание | |
---|---|---|---|
$classMap | list of namespaces currently in use |
Свойство | Тип | Описание | |
---|---|---|---|
$classExists | list of class exists checks |
Метод | Описание | |
---|---|---|
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. |
Метод | Описание | |
---|---|---|
getPathAliases ( ) | ||
prado3NamespaceToPhpNamespace ( $type ) : string | Convert old Prado namespaces to PHP namespaces |
public static autoload ( $className ) |
public static createComponent ( $requestedType ) : |
||
Результат | component instance of the specified type |
public static exceptionHandler ( $exception ) |
public static fatalError ( $msg ) |
public static getApplication ( ) : |
||
Результат | the application singleton, null if the singleton has not be created yet. |
public static getFrameworkPath ( ) : string | ||
Результат | string | the path of the framework |
public static getLogger ( ) : |
||
Результат | message logger |
public static getPathOfAlias ( $alias ) : string | ||
Результат | string | the path corresponding to the alias, null if alias not defined. |
public static getPathOfNamespace ( $namespace, $ext = '' ) : string | ||
Результат | string | file path corresponding to the namespace, null if namespace is invalid |
public static getPreferredLanguage ( ) : string | ||
Результат | string | the most preferred language by the client user, defaults to English. |
public static getUserLanguages ( ) : array | ||
Результат | array | list of user preferred languages. |
public static getVersion ( ) : string | ||
Результат | 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 | ||
Результат | string | a string that can be displayed on your Web page showing powered-by-PRADO information |
protected static prado3NamespaceToPhpNamespace ( $type ) : string | ||
Результат | 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 ) |
protected static $classExists |