/documentation/manual/de/module_specs/Zend_Application-CoreFunctionality-Resource_Resource.xml
https://github.com/decaoz/zf1 · XML · 124 lines · 105 code · 17 blank · 2 comment · 0 complexity · a7739f88f9e6a9e896664880f3e958f0 MD5 · raw file
- <?xml version="1.0" encoding="UTF-8"?>
- <!-- EN-Revision: 24249 -->
- <!-- Reviewed: no -->
- <sect2 id="zend.application.core-functionality.resource-resource">
- <title>Zend_Application_Resource_Resource</title>
- <para>
- <classname>Zend_Application_Resource_Resource</classname> ist ein Interface für Plugin
- Ressourcen die mit Bootstrap Klassen verwendet werden welche
- <classname>Zend_Application_Bootstrap_ResourceBootstrapper</classname> implementieren. Von
- Ressourcen Plugins wird erwartet das Sie Konfiguration erlauben, das Sie Bootstrapping
- erlauben, und ein Strategy Pattern für die Initialisierung der Ressource implementieren.
- </para>
- <table id="zend.application.core-functionality.resource-resource.api">
- <title>Zend_Application_Resource_Resource Interface</title>
- <tgroup cols="4">
- <thead>
- <row>
- <entry>Methode</entry>
- <entry>Rückgabewert</entry>
- <entry>Parameter</entry>
- <entry>Beschreibung</entry>
- </row>
- </thead>
- <tbody>
- <row>
- <entry><methodname>__construct($options = null)</methodname></entry>
- <entry><type>Void</type></entry>
- <entry>
- <itemizedlist>
- <listitem>
- <para>
- <varname>$options</varname>: <emphasis>Optional</emphasis>.
- Optionen mit denen der Status der Ressource gesetzt wird.
- </para>
- </listitem>
- </itemizedlist>
- </entry>
- <entry>
- <para>
- Der Konstruktor sollte die Übergabe von Optionen erlauben mit denen der
- Status initialisiert wird.
- </para>
- </entry>
- </row>
- <row>
- <entry>
- <methodname>setBootstrap(Zend_Application_Bootstrap_Bootstrapper
- $bootstrap)</methodname>
- </entry>
- <entry>
- <classname>Zend_Application_Resource_Resource</classname>
- </entry>
- <entry>
- <itemizedlist>
- <listitem>
- <para>
- <varname>$bootstrap</varname>: <emphasis>Benötigt</emphasis>.
- Eltern-Bootstrap das diese Ressource initialisiert.
- </para>
- </listitem>
- </itemizedlist>
- </entry>
- <entry>
- <para>Sollte es erlauben ein Eltern Bootstrap Objekt zu registrieren.</para>
- </entry>
- </row>
- <row>
- <entry><methodname>getBootstrap()</methodname></entry>
- <entry><classname>Zend_Application_Bootstrap_Bootstrapper</classname></entry>
- <entry>N/A</entry>
- <entry><para>Empfängt die registrierte Bootstrap Instanz.</para></entry>
- </row>
- <row>
- <entry><methodname>setOptions(array $options)</methodname></entry>
- <entry><classname>Zend_Application_Resource_Resource</classname></entry>
- <entry>
- <itemizedlist>
- <listitem>
- <para>
- <varname>$options</varname>: <emphasis>Benötigt</emphasis>.
- Optionen mit denen der Status gesetzt wird.
- </para>
- </listitem>
- </itemizedlist>
- </entry>
- <entry><para>Setzt den Ressource Status.</para></entry>
- </row>
- <row>
- <entry><methodname>getOptions()</methodname></entry>
- <entry><type>Array</type></entry>
- <entry>N/A</entry>
- <entry><para>Empfängt registrierte Optionen.</para></entry>
- </row>
- <row>
- <entry><methodname>init()</methodname></entry>
- <entry><type>Mixed</type></entry>
- <entry>N/A</entry>
- <entry>
- <para>
- Strategy Pattern: Führt die Initialisierung an der Ressource durch.
- </para>
- </entry>
- </row>
- </tbody>
- </tgroup>
- </table>
- </sect2>