Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

yaf_bootstrap_abstract(3) [php man page]

YAF_BOOTSTRAP_ABSTRACT(3)						 1						 YAF_BOOTSTRAP_ABSTRACT(3)

The Yaf_Bootstrap_Abstract class

INTRODUCTION
Bootstrap is a mechanism used to do some intial config before a Application run. User may define their own Bootstrap class by inheriting Yaf_Bootstrap_Abstract Any method declared in Bootstrap class with leading "_init", will be called by Yaf_Application::bootstrap one by one according to their defined order. EXAMPLES
Example #1 Bootstrap example <?php /* bootstrap class should be defined under ./application/Bootstrap.php */ class Bootstrap extends Yaf_Bootstrap_Abstract { public function _initConfig(Yaf_Dispatcher $dispatcher) { var_dump(__METHOD__); } public function _initPlugin(Yaf_Dispatcher $dispatcher) { var_dump(__METHOD__); } } $config = array( "application" => array( "directory" => dirname(__FILE__) . "/application/", ), ); $app = new Yaf_Application($config); $app->bootstrap(); ?> The above example will output something similar to: string(22) "Bootstrap::_initConfig" string(22) "Bootstrap::_initPlugin" CLASS SYNOPSIS
Yaf_Bootstrap_Abstract abstract Yaf_Bootstrap_Abstract Properties Methods PHP Documentation Group YAF_BOOTSTRAP_ABSTRACT(3)

Check Out this Related Man Page

YAF_APPLICATION(3)							 1							YAF_APPLICATION(3)

The Yaf_Application class

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 problem. CLASS SYNOPSIS
Yaf_Application final Yaf_Application Properties o protected$config o protected$dispatcher o protectedstatic$_app o protected$_modules o protected$_running o protected$_environ Methods o publicstatic void Yaf_Application::app (void ) o public void Yaf_Application::bootstrap ([Yaf_Bootstrap_Abstract $bootstrap]) o public Yaf_Application Yaf_Application::clearLastError (void ) o private void Yaf_Application::__clone (void ) o public Yaf_Application::__construct (mixed $config, [string $envrion]) o public void Yaf_Application::__destruct (void ) o public void Yaf_Application::environ (void ) o public void Yaf_Application::execute (callable $entry, string $...) o public Yaf_Application Yaf_Application::getAppDirectory (void ) o public Yaf_Config_Abstract Yaf_Application::getConfig (void ) o public Yaf_Dispatcher Yaf_Application::getDispatcher (void ) o public string Yaf_Application::getLastErrorMsg (void ) o public int Yaf_Application::getLastErrorNo (void ) o public array Yaf_Application::getModules (void ) o public void Yaf_Application::run (void ) o public Yaf_Application Yaf_Application::setAppDirectory (string $directory) o private void Yaf_Application::__sleep (void ) o private void Yaf_Application::__wakeup (void ) PROPERTIES
o $config - o $dispatcher - o $_app - o $_modules - o $_running - o $_environ - PHP Documentation Group YAF_APPLICATION(3)
Man Page

12 More Discussions You Might Find Interesting

1. Solaris

Redirecting Bootstrap

Exactly how can I redirect bootstrap data generated by Networker to a file? The company's policy is to have this electronically saved remotely. The idea is to have the bootstrap info saved to a file and then use rsync to move that file to a remote server. So instead of sending it to a printer... (0 Replies)
Discussion started by: Jshwon
0 Replies

2. IP Networking

Traceroute response

I have 20 servers I installed an application to that is returning message " wrong dispatcher or port " when starting agents. They all have the same dispatcher ip and going through the same port number. After verifying there are no application issues, we figured it was firewall related. The Firewall... (1 Reply)
Discussion started by: HFJ
1 Replies

3. What is on Your Mind?

Scrollbars and Bootstrap Tables

Making some progress using CSS from Bootstrap; changing table classes to the Bootstrap "table" class and wrapping those tables in a div with a scroll bar. So, the good news is that now each post with large blocks of code that exceeds the width of the screen will have a scrollbar; but the bad... (0 Replies)
Discussion started by: Neo
0 Replies

4. What is on Your Mind?

Man Page Repositories - Added jQuery and Bootstrap

I added both jQuery and Bootstrap Javacript libs to all man page repository pages. TODO: I need to add pagination to these repos because most are very large and load to slow on a single page. For the first upgrade, I manually added one new CSS Class (repository) to the main repo tables and... (0 Replies)
Discussion started by: Neo
0 Replies

5. What is on Your Mind?

New Tooltips for Thread Views Using Bootstrap

Hi, Well, I changed the descriptions for threads to use Bootstrap's UI and here is the results (make sure you set your YT setting for 1080 HD): New Tooltip for UNIX.COM Using Bootstrap - YouTube Here is the simple CSS I'm using for the fonts and colors: .tooltip-inner { ... (0 Replies)
Discussion started by: Neo
0 Replies

6. What is on Your Mind?

Revised Tooltips for Thread Views Using Bootstrap

See attached screen movie that demos the revised tooltips which includes thread previews, or double click on the YT video below to go to YT and view in full screen mode, etc: HkObCAYg6LI (0 Replies)
Discussion started by: Neo
0 Replies

7. What is on Your Mind?

Reformatted Advanced UNIX.COM Search Page (Desktop)

Just enabled Bootstrap for the advanced forum search page (desktop view): https://www.unix.com/search.php That' page still needs work, and to be converted from <table> elements to <div> elements, and to be redesigned, but in the meantime, it's OK using Bootstrap CSS. Note: Before, we had... (0 Replies)
Discussion started by: Neo
0 Replies

8. Web Development

Bootstrap Changes to Forum LIST BBCODE Tags

Added some Bootstrap to our lists (first draft subject to change) with PHP changes to the functions_bbcode.php: if ($listtype) { $outstuff = '<ol class="list-group" style="list-style-type: ' . $listtype . '">' . $output . '</ol>'; ... (0 Replies)
Discussion started by: Neo
0 Replies

9. Web Development

Bootstrap Changes to Advanced Editor and Attachments Form

I changed the CSS and Javascript in the "Advanced Editor" to clean it up. This is also the editor seen in "New Thread" and "New Reply". Basically I got rid of the mouseover style changes which were messed up due to vB legacy JS code from a decade ago. While doing this change, I then completed... (8 Replies)
Discussion started by: Neo
8 Replies

10. What is on Your Mind?

Update to Advanced Search Page (Phase 1)

Update: I have completed the first phase of revamping the "Advanced Search" page using Bootstrap (desktop not mobile yet): https://www.unix.com/search.php https://www.unix.com/search.php I may change this to a Bootstrap modal later and change the CSS a bit more; but for now it is much... (0 Replies)
Discussion started by: Neo
0 Replies

11. Web Development

Getting Rid of Annoying Bootstrap Table Borders and Wayward Table Lines

Bootstrap is great; but we have had some issues with Bootstrapped <tables> (and legacy <fieldset> elements) showing annoying, wayward lines. I solved that problem today with this simple jQuery in the footer: <script> $(function(){ $('tr, td, fieldset,... (0 Replies)
Discussion started by: Neo
0 Replies

12. What is on Your Mind?

Developing Applications for UNIX.COM

A number of people have asked me about the best way to develop some cool new web app for UNIX.COM. In today's "very easy web dev" world, developers do not need to be burdened (like I am) to the "back end" of the site. The best way to develop web apps is to build the application on your desktop... (2 Replies)
Discussion started by: Neo
2 Replies