1 <?xml version="1.0" encoding="UTF-8"?>
3 <sect2 id="zend.application.core-functionality.bootstrap-bootstrapper">
4 <title>Zend_Application_Bootstrap_Bootstrapper</title>
7 <classname>Zend_Application_Bootstrap_Bootstrapper</classname> is the base interface
8 all bootstrap classes must implement. The base functionality is aimed at
9 configuration, identifying resources, bootstrapping (either individual
10 resources or the entire application), and dispatching the application.
14 The following methods make up the definition of the interface.
17 <table id="zend.application.core-functionality.bootstrap-bootstrapper.methods-table">
18 <title>Zend_Application_Bootstrap_Bootstrapper Interface</title>
24 <entry>Return Value</entry>
25 <entry>Parameters</entry>
26 <entry>Description</entry>
32 <entry><methodname>__construct($application)</methodname></entry>
33 <entry><type>Void</type></entry>
38 <varname>$application</varname>: <emphasis>required</emphasis>.
39 Should accept a <classname>Zend_Application</classname> or a
40 <classname>Zend_Application_Bootstrap_Bootstrapper</classname>
41 object as the sole argument.
49 Constructor. Accepts a single argument, which should be a
50 <classname>Zend_Application</classname> object, or another bootstrap
57 <entry><methodname>setOptions(array $options)</methodname></entry>
58 <entry><classname>Zend_Application_Bootstrap_Bootstrapper</classname></entry>
64 <varname>$options</varname>: <emphasis>required</emphasis>.
65 Array of options to set.
73 Typically, any option that has a matching setter will
74 invoke that setter; otherwise, the option will simply be
75 stored for later retrieval.
81 <entry><methodname>getApplication()</methodname></entry>
84 <classname>Zend_Application</classname> |
85 <classname>Zend_Application_Bootstrap_Bootstrapper</classname>
92 Retrieve the application or bootstrap object passed via the
99 <entry><methodname>getEnvironment()</methodname></entry>
100 <entry><type>String</type></entry>
105 Retrieve the environment string registered with the
106 parent application or bootstrap object.
112 <entry><methodname>getClassResources()</methodname></entry>
113 <entry><type>Array</type></entry>
118 Retrieve a list of available resource initializer names
119 as defined in the class. This may be implementation specific.
125 <entry><methodname>bootstrap($resource = null)</methodname></entry>
126 <entry><type>Mixed</type></entry>
131 <varname>$resource</varname>: <emphasis>optional</emphasis>.
139 If <varname>$resource</varname> is empty, execute all
140 bootstrap resources. If a string, execute that single
141 resource; if an array, execute each resource in the array.
147 <entry><methodname>run()</methodname></entry>
148 <entry><type>Void</type></entry>
152 <para>Defines what application logic to run after bootstrapping.</para>