/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

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- EN-Revision: 24249 -->
  3. <!-- Reviewed: no -->
  4. <sect2 id="zend.application.core-functionality.resource-resource">
  5. <title>Zend_Application_Resource_Resource</title>
  6. <para>
  7. <classname>Zend_Application_Resource_Resource</classname> ist ein Interface für Plugin
  8. Ressourcen die mit Bootstrap Klassen verwendet werden welche
  9. <classname>Zend_Application_Bootstrap_ResourceBootstrapper</classname> implementieren. Von
  10. Ressourcen Plugins wird erwartet das Sie Konfiguration erlauben, das Sie Bootstrapping
  11. erlauben, und ein Strategy Pattern für die Initialisierung der Ressource implementieren.
  12. </para>
  13. <table id="zend.application.core-functionality.resource-resource.api">
  14. <title>Zend_Application_Resource_Resource Interface</title>
  15. <tgroup cols="4">
  16. <thead>
  17. <row>
  18. <entry>Methode</entry>
  19. <entry>Rückgabewert</entry>
  20. <entry>Parameter</entry>
  21. <entry>Beschreibung</entry>
  22. </row>
  23. </thead>
  24. <tbody>
  25. <row>
  26. <entry><methodname>__construct($options = null)</methodname></entry>
  27. <entry><type>Void</type></entry>
  28. <entry>
  29. <itemizedlist>
  30. <listitem>
  31. <para>
  32. <varname>$options</varname>: <emphasis>Optional</emphasis>.
  33. Optionen mit denen der Status der Ressource gesetzt wird.
  34. </para>
  35. </listitem>
  36. </itemizedlist>
  37. </entry>
  38. <entry>
  39. <para>
  40. Der Konstruktor sollte die Übergabe von Optionen erlauben mit denen der
  41. Status initialisiert wird.
  42. </para>
  43. </entry>
  44. </row>
  45. <row>
  46. <entry>
  47. <methodname>setBootstrap(Zend_Application_Bootstrap_Bootstrapper
  48. $bootstrap)</methodname>
  49. </entry>
  50. <entry>
  51. <classname>Zend_Application_Resource_Resource</classname>
  52. </entry>
  53. <entry>
  54. <itemizedlist>
  55. <listitem>
  56. <para>
  57. <varname>$bootstrap</varname>: <emphasis>Benötigt</emphasis>.
  58. Eltern-Bootstrap das diese Ressource initialisiert.
  59. </para>
  60. </listitem>
  61. </itemizedlist>
  62. </entry>
  63. <entry>
  64. <para>Sollte es erlauben ein Eltern Bootstrap Objekt zu registrieren.</para>
  65. </entry>
  66. </row>
  67. <row>
  68. <entry><methodname>getBootstrap()</methodname></entry>
  69. <entry><classname>Zend_Application_Bootstrap_Bootstrapper</classname></entry>
  70. <entry>N/A</entry>
  71. <entry><para>Empfängt die registrierte Bootstrap Instanz.</para></entry>
  72. </row>
  73. <row>
  74. <entry><methodname>setOptions(array $options)</methodname></entry>
  75. <entry><classname>Zend_Application_Resource_Resource</classname></entry>
  76. <entry>
  77. <itemizedlist>
  78. <listitem>
  79. <para>
  80. <varname>$options</varname>: <emphasis>Benötigt</emphasis>.
  81. Optionen mit denen der Status gesetzt wird.
  82. </para>
  83. </listitem>
  84. </itemizedlist>
  85. </entry>
  86. <entry><para>Setzt den Ressource Status.</para></entry>
  87. </row>
  88. <row>
  89. <entry><methodname>getOptions()</methodname></entry>
  90. <entry><type>Array</type></entry>
  91. <entry>N/A</entry>
  92. <entry><para>Empfängt registrierte Optionen.</para></entry>
  93. </row>
  94. <row>
  95. <entry><methodname>init()</methodname></entry>
  96. <entry><type>Mixed</type></entry>
  97. <entry>N/A</entry>
  98. <entry>
  99. <para>
  100. Strategy Pattern: Führt die Initialisierung an der Ressource durch.
  101. </para>
  102. </entry>
  103. </row>
  104. </tbody>
  105. </tgroup>
  106. </table>
  107. </sect2>