[ZF-10089] Zend_Log
[zend.git] / documentation / manual / es / module_specs / Zend_Application-CoreFunctionality-Bootstrap_ResourceBootstrapper.xml
blobd0201ab95b28901e5e6aaf71717f780838e02378
1 <?xml version="1.0" encoding="UTF-8"?>
2     <!-- EN-Revision: 20763 -->
3     <!-- Reviewed: no -->
4 <sect2 id="zend.application.core-functionality.bootstrap-resourcebootstrapper">
5     <title>Zend_Application_Bootstrap_ResourceBootstrapper</title>
7     <para>
8         <classname>Zend_Application_Bootstrap_ResourceBootstrapper</classname>
9         es una
10         interfaz para usar cuando una clase de arranque cargará recursos
11         externos -- por
12         ejemplo, uno o más recursos no se definirán
13         directamente en la clase, sino más bien via
14         plugins.
15         Debe ser utilizado en conjunción con
16         <link linkend="zend.application.core-functionality.bootstrap-bootstrapper">Zend_Application_Bootstrap_Bootstrapper</link>
17         ;
18         <link linkend="zend.application.core-functionality.bootstrap-bootstrapabstract">Zend_Application_Bootstrap_BootstrapAbstract</link>
19         que implementan esta funcionalidad.
20     </para>
22     <para>
23         Los siguientes métodos conforman la definición de la interfaz.
24    </para>
26     <table id="zend.application.core-functionality.bootstrap-resourcebootstrapper.methods-table">
27         <title>Zend_Application_Bootstrap_ResourceBootstrapper Interface</title>
28         <tgroup cols="4">
29             <thead>
30                 <row>
31                     <entry>Método</entry>
32                     <entry>Valor de Retorno</entry>
33                     <entry>Parámetros</entry>
34                     <entry>Descripción</entry>
35                 </row>
36             </thead>
37             <tbody>
38                 <row>
39                     <entry>
40                         <methodname>registerPluginResource($resource, $options =
41                             null)</methodname>
42                     </entry>
43                     <entry>
44                         <classname>Zend_Application_Bootstrap_ResourceBootstrapper</classname>
45                     </entry>
46                     <entry>
47                         <itemizedlist>
48                             <listitem>
49                                 <para>
50                                     <varname>$resource</varname>
51                                     :
52                                     <emphasis>requerido</emphasis>
53                                     .
54                                     Un nombre de recurso o un objeto
55                                     <classname>Zend_Application_Resource_Resource</classname>
56                                     .
57                                 </para>
58                             </listitem>
60                             <listitem>
61                                 <para>
62                                     <varname>$options</varname>
63                                     :
64                                     <emphasis>opcional</emphasis>
65                                     .
66                                     Un array o un objeto
67                                     <classname>Zend_Config</classname>
68                                     para pasar al recurso en instanciación.
69                                 </para>
70                             </listitem>
71                         </itemizedlist>
72                     </entry>
73                     <entry>
74                         <para>
75                             Registre un recurso con la clase, proporcionando
76                             configuración opcional para pasar al recurso.
77                    </para>
78                     </entry>
79                 </row>
81                 <row>
82                     <entry>
83                         <methodname>unregisterPluginResource($resource)</methodname>
84                     </entry>
85                     <entry>
86                         <classname>Zend_Application_Bootstrap_ResourceBootstrapper</classname>
87                     </entry>
88                     <entry>
89                         <itemizedlist>
90                             <listitem>
91                                 <para>
92                                     <varname>$resource</varname>
93                                     :
94                                     <emphasis>requerido</emphasis>
95                                     .
96                                     Nombre de un recurso para des-registrar desde la clase.
97                                 </para>
98                             </listitem>
99                         </itemizedlist>
100                     </entry>
101                     <entry>
102                         <para>
103                             Eliminar un recurso de plugin de la clase.
104                    </para>
105                     </entry>
106                 </row>
108                 <row>
109                     <entry>
110                         <methodname>hasPluginResource($resource)</methodname>
111                     </entry>
112                     <entry>
113                         <type>Boolean</type>
114                     </entry>
115                     <entry>
116                         <itemizedlist>
117                             <listitem>
118                                 <para>
119                                     <varname>$resource</varname>
120                                     :
121                                     <emphasis>requerido</emphasis>
122                                     .
123                                     Nombre del recurso.
124                                 </para>
125                             </listitem>
126                         </itemizedlist>
127                     </entry>
128                     <entry>
129                         <para>
130                             Determinar si un recurso específico se ha registrado
131                             en la clase.
132                    </para>
133                     </entry>
134                 </row>
136                 <row>
137                     <entry>
138                         <methodname>getPluginResource($resource)</methodname>
139                     </entry>
140                     <entry>
141                         <classname>Zend_Application_Resource_Resource</classname>
142                     </entry>
143                     <entry>
144                         <itemizedlist>
145                             <listitem>
146                                 <para>
147                                     <varname>$resource</varname>
148                                     :
149                                     <emphasis>requerido</emphasis>
150                                     .
151                                     Nombre de un recurso a recuperar (string).
152                                 </para>
153                             </listitem>
154                         </itemizedlist>
155                     </entry>
156                     <entry>
157                         <para>
158                             Recuperar una instacia de un recurso de plugin por su nombre.
159                    </para>
160                     </entry>
161                 </row>
163                 <row>
164                     <entry>
165                         <methodname>getPluginResourceNames()</methodname>
166                     </entry>
167                     <entry>
168                         <type>Array</type>
169                     </entry>
170                     <entry>N/A</entry>
171                     <entry>
172                         <para>
173                             Recuperar una lista de todos los nombres de recursos de
174                             plugin registrados.
175                    </para>
176                     </entry>
177                 </row>
179                 <row>
180                     <entry>
181                         <methodname>setPluginLoader(Zend_Loader_PluginLoader_Interface
182                             $loader)</methodname>
183                     </entry>
184                     <entry>
185                         <classname>Zend_Application_Bootstrap_ResourceBootstrapper</classname>
186                     </entry>
187                     <entry>
188                         <itemizedlist>
189                             <listitem>
190                                 <para>
191                                     <varname>$loader</varname>
192                                     :
193                                     <emphasis>requerido</emphasis>
194                                     .
195                                     Instancia del cargador de plugin para utilizar
196                                     cuando se resuelven nombres de plugin a las clases.
197                                 </para>
198                             </listitem>
199                         </itemizedlist>
200                     </entry>
201                     <entry>
202                         <para>
203                             Registre una instancia del cargador de plugin para
204                             utilizar cuando se resuelven nombres de clases de plugin.
205                    </para>
206                     </entry>
207                 </row>
209                 <row>
210                     <entry>
211                         <methodname>getPluginLoader()</methodname>
212                     </entry>
213                     <entry>
214                         <classname>Zend_Loader_PluginLoader_Interface</classname>
215                     </entry>
216                     <entry>N/A</entry>
217                     <entry>
218                         <para>
219                             Recuperar el cargador de plugin registrado.
220                    </para>
221                     </entry>
222                 </row>
223             </tbody>
224         </tgroup>
225     </table>
226 </sect2>