1 <?xml version="1.0" encoding="UTF-8"?>
3 <sect2 id="zend.application.core-functionality.bootstrap-resourcebootstrapper">
4 <title>Zend_Application_Bootstrap_ResourceBootstrapper</title>
7 <classname>Zend_Application_Bootstrap_ResourceBootstrapper</classname> is an
8 interface to use when a bootstrap class will be loading external
9 resources -- i.e., one or more resources will not be defined directly in
10 the class, but rather via plugins. It should be used in conjunction with <link
11 linkend="zend.application.core-functionality.bootstrap-bootstrapper">Zend_Application_Bootstrap_Bootstrapper</link>;
13 linkend="zend.application.core-functionality.bootstrap-bootstrapabstract">Zend_Application_Bootstrap_BootstrapAbstract</link>
14 implements this functionality.
18 The following methods make up the definition of the interface.
21 <table id="zend.application.core-functionality.bootstrap-resourcebootstrapper.methods-table">
22 <title>Zend_Application_Bootstrap_ResourceBootstrapper Interface</title>
28 <entry>Return Value</entry>
29 <entry>Parameters</entry>
30 <entry>Description</entry>
37 <methodname>registerPluginResource($resource, $options = null)</methodname>
41 <classname>Zend_Application_Bootstrap_ResourceBootstrapper</classname>
48 <varname>$resource</varname>: <emphasis>required</emphasis>.
50 <classname>Zend_Application_Resource_Resource</classname>
57 <varname>$options</varname>: <emphasis>optional</emphasis>.
58 An array or <classname>Zend_Config</classname> object to pass
59 to the resource on instantiation.
67 Register a resource with the class, providing optional
68 configuration to pass to the resource.
74 <entry><methodname>unregisterPluginResource($resource)</methodname></entry>
77 <classname>Zend_Application_Bootstrap_ResourceBootstrapper</classname>
84 <varname>$resource</varname>: <emphasis>required</emphasis>.
85 Name of a resource to unregister from the class.
91 <entry><para>Remove a plugin resource from the class.</para></entry>
95 <entry><methodname>hasPluginResource($resource)</methodname></entry>
96 <entry><type>Boolean</type></entry>
102 <varname>$resource</varname>: <emphasis>required</emphasis>.
103 Name of the resource.
111 Determine if a specific resource has been registered with the class.
117 <entry><methodname>getPluginResource($resource)</methodname></entry>
118 <entry><classname>Zend_Application_Resource_Resource</classname></entry>
124 <varname>$resource</varname>: <emphasis>required</emphasis>.
125 Name of a resource to retrieve (string).
131 <entry><para>Retrieve a plugin resource instance by name.</para></entry>
135 <entry><methodname>getPluginResourceNames()</methodname></entry>
136 <entry><type>Array</type></entry>
139 <para>Retrieve a list of all registered plugin resource names.</para>
145 <methodname>setPluginLoader(Zend_Loader_PluginLoader_Interface
146 $loader)</methodname>
150 <classname>Zend_Application_Bootstrap_ResourceBootstrapper</classname>
157 <varname>$loader</varname>: <emphasis>required</emphasis>.
158 Plugin loader instance to use when resolving plugin
167 Register a plugin loader instance to use when resolving plugin class
174 <entry><methodname>getPluginLoader()</methodname></entry>
175 <entry><classname>Zend_Loader_PluginLoader_Interface</classname></entry>
177 <entry><para>Retrieve the registered plugin loader.</para></entry>