The Yaf_Application class

(Информация о версии неизвестна, возможно, только в SVN)

Введение

Yaf_Application provides a bootstrapping facility for applications which provides reusable resources, common- and module-based bootstrap classes and dependency checking.

Замечание:

Yaf_Application implements the singleton pattern, and Yaf_Application can not be serialized or unserialized which will cause problem when you try to use PHPUnit to write some test case for Yaf.

You may use @backupGlobals annotation of PHPUnit to control the backup and restore operations for global variables. thus can solve this promblem.

Обзор классов

/* Свойства */
protected $dispatcher ;
protected static $_app ;
protected $_modules ;
protected $_running ;
protected $_environ ;
/* Методы */
public static void Yaf_Application::app ( void )
public void Yaf_Application::bootstrap ([ Yaf_Bootstrap_Abstract $bootstrap ] )
public Yaf_Application Yaf_Application::clearLastError ( void )
private void Yaf_Application::__clone ( void )
public Yaf_Application::__construct ( mixed $config [, string $envrion ] )
public void Yaf_Application::__destruct ( void )
public void Yaf_Application::environ ( void )
public void Yaf_Application::execute ( callback $entry , string $... )
public Yaf_Application Yaf_Application::getAppDirectory ( void )
public Yaf_Config_Abstract Yaf_Application::getConfig ( void )
public Yaf_Dispatcher Yaf_Application::getDispatcher ( void )
public string Yaf_Application::getLastErrorMsg ( void )
public int Yaf_Application::getLastErrorNo ( void )
public array Yaf_Application::getModules ( void )
public void Yaf_Application::run ( void )
public Yaf_Application Yaf_Application::setAppDirectory ( string $directory )
private void Yaf_Application::__sleep ( void )
private void Yaf_Application::__wakeup ( void )
}

Свойства

config

dispatcher

_app

_modules

_running

_environ

Содержание


Участник рейтинга Тэглайн 2010