[ZF-10089] Zend_Log
[zend.git] / documentation / manual / es / module_specs / Zend_Application-CoreFunctionality-Resource_Resource.xml
blob6fba564a3f925ceca98061c9367b7694c53a364a
1 <?xml version="1.0" encoding="UTF-8"?>
2     <!-- EN-Revision: 20763 -->
3     <!-- Reviewed: no -->
4 <sect2 id="zend.application.core-functionality.resource-resource">
5     <title>Zend_Application_Resource_Resource</title>
7     <para>
8         <classname>Zend_Application_Resource_Resource</classname>
9         es una
10         interfaz para recursos de plugin utilizados con clases bootstrap implementando
11         <classname>Zend_Application_Bootstrap_ResourceBootstrapper</classname>
12         .
13         Se espera que los recursos de plugins permitan la configuración,
14         estar enterados del
15         bootstrap, y aplicar un patrón de estrategia para la
16         inicialización de recursos.
17     </para>
19     <table id="zend.application.core-functionality.resource-resource.api">
20         <title>Zend_Application_Resource_Resource Interface</title>
21         <tgroup cols="4">
22             <thead>
23                 <row>
24                     <entry>Método</entry>
25                     <entry>Valor de Retorno</entry>
26                     <entry>Parámetros</entry>
27                     <entry>Descripción</entry>
28                 </row>
29             </thead>
30             <tbody>
31                 <row>
32                     <entry>
33                         <methodname>__construct($options = null)</methodname>
34                     </entry>
35                     <entry>
36                         <type>Void</type>
37                     </entry>
38                     <entry>
39                         <itemizedlist>
40                             <listitem>
41                                 <para>
42                                     <varname>$options</varname>
43                                     :
44                                     <emphasis>opcional</emphasis>
45                                     .
46                                     Opciones con las cuales establecer el estado de los recursos.
47                                 </para>
48                             </listitem>
49                         </itemizedlist>
50                     </entry>
51                     <entry>
52                         <para>
53                             El constructor debería permitir pasar opciones con las
54                             cuales inicializar el estado.
55                    </para>
56                     </entry>
57                 </row>
59                 <row>
60                     <entry>
61                         <methodname>setBootstrap(Zend_Application_Bootstrap_Bootstrapper $bootstrap)</methodname>
62                     </entry>
63                     <entry>
64                         <classname>Zend_Application_Resource_Resource</classname>
65                     </entry>
66                     <entry>
67                         <itemizedlist>
68                             <listitem>
69                                 <para>
70                                     <varname>$bootstrap</varname>
71                                     :
72                                     <emphasis>requerido</emphasis>
73                                     .
74                                     Padre del bootstrap inicializando este recurso.
75                                 </para>
76                             </listitem>
77                         </itemizedlist>
78                     </entry>
79                     <entry>
80                         <para>
81                             Debería permitir registrar el objeto padre del bootstrap.
82                    </para>
83                     </entry>
84                 </row>
86                 <row>
87                     <entry>
88                         <methodname>getBootstrap()</methodname>
89                     </entry>
90                     <entry>
91                         <classname>Zend_Application_Bootstrap_Bootstrapper</classname>
92                     </entry>
93                     <entry>N/A</entry>
94                     <entry>
95                         <para>
96                             Recuperar la instancia del bootstrap registrado.
97                    </para>
98                     </entry>
99                 </row>
101                 <row>
102                     <entry>
103                         <methodname>setOptions(array $options)</methodname>
104                     </entry>
105                     <entry>
106                         <classname>Zend_Application_Resource_Resource</classname>
107                     </entry>
108                     <entry>
109                         <itemizedlist>
110                             <listitem>
111                                 <para>
112                                     <varname>$options</varname>
113                                     :
114                                     <emphasis>requerido</emphasis>
115                                     .
116                                     Opciones con las cuales establecer el estado.
117                                 </para>
118                             </listitem>
119                         </itemizedlist>
120                     </entry>
121                     <entry>
122                         <para>
123                             Establecer el estado del recurso.
124                    </para>
125                     </entry>
126                 </row>
128                 <row>
129                     <entry>
130                         <methodname>getOptions()</methodname>
131                     </entry>
132                     <entry>
133                         <type>Array</type>
134                     </entry>
135                     <entry>N/A</entry>
136                     <entry>
137                         <para>
138                             Recuperar opciones registradas.
139                    </para>
140                     </entry>
141                 </row>
143                 <row>
144                     <entry>
145                         <methodname>init()</methodname>
146                     </entry>
147                     <entry>
148                         <type>Mixed</type>
149                     </entry>
150                     <entry>N/A</entry>
151                     <entry>
152                         <para>
153                             Patrón de estrategia: ejecute inicialización de los recursos.
154                    </para>
155                     </entry>
156                 </row>
157             </tbody>
158         </tgroup>
159     </table>
160 </sect2>