Warning: include_once(/home/theraven/sites/theraven7.com/php/manual/en/toc/book.yaf.inc) [function.include-once]: failed to open stream: No such file or directory in /home/theraven/sites/theraven7.com/php/manual/en/class.yaf-application.php on line 5

Warning: include_once() [function.include]: Failed opening '/home/theraven/sites/theraven7.com/php/manual/en/toc/book.yaf.inc' for inclusion (include_path='.:/usr/local/lib/php:/usr/local/php5/lib/pear') in /home/theraven/sites/theraven7.com/php/manual/en/class.yaf-application.php on line 5
PHP: Yaf_Application - Manual
downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Yaf_Application::app> <Application Configuration
[edit] Last updated: Fri, 18 May 2012

view this page in

The Yaf_Application class

(No version information available, might only be in SVN)

Introduction

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

Note:

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.

Class synopsis

/* Properties */
protected $config ;
protected $dispatcher ;
protected static $_app ;
protected $_modules ;
protected $_running ;
protected $_environ ;
/* Methods */
public static void app ( void )
public void bootstrap ([ Yaf_Bootstrap_Abstract $bootstrap ] )
public Yaf_Application clearLastError ( void )
private void __clone ( void )
public __construct ( mixed $config [, string $envrion ] )
public void __destruct ( void )
public void environ ( void )
public void execute ( callable $entry , string $... )
public Yaf_Application getAppDirectory ( void )
public Yaf_Config_Abstract getConfig ( void )
public Yaf_Dispatcher getDispatcher ( void )
public string getLastErrorMsg ( void )
public int getLastErrorNo ( void )
public array getModules ( void )
public void run ( void )
public Yaf_Application setAppDirectory ( string $directory )
private void __sleep ( void )
private void __wakeup ( void )
}

Properties

config

dispatcher

_app

_modules

_running

_environ

Table of Contents



add a note add a note User Contributed Notes Yaf_Application
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites