|
|
@@ -0,0 +1,102 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+<!-- Reviewed: no -->
|
|
|
+<!-- EN-Revision: 15814 -->
|
|
|
+<sect2 id="zend.application.core-functionality.resource-resource">
|
|
|
+ <title>Zend_Application_Resource_Resource</title>
|
|
|
+
|
|
|
+ <para>
|
|
|
+ <classname>Zend_Application_Resource_Resource</classname>は、
|
|
|
+ <classname>Zend_Application_Bootstrap_ResourceBootstrapper</classname>を実装する
|
|
|
+ ブートストラップ・クラスで使われるプラグイン・リソースのためのインターフェースです。
|
|
|
+ プラグイン・リソースでは、構成を可能にし、ブートストラップを認識し、
|
|
|
+ そして、リソースを初期化するためのストラテジー・パターンを実装するよう、
|
|
|
+ 期待されます。
|
|
|
+ </para>
|
|
|
+
|
|
|
+ <table id="zend.application.core-functionality.resource-resource.api">
|
|
|
+ <title>Zend_Application_Resource_Resourceインターフェース</title>
|
|
|
+ <tgroup cols="4">
|
|
|
+ <thead>
|
|
|
+ <row>
|
|
|
+ <entry>メソッド</entry>
|
|
|
+ <entry>返り値</entry>
|
|
|
+ <entry>パラメータ</entry>
|
|
|
+ <entry>説明</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>任意</emphasis>.
|
|
|
+ リソース状態を設定するオプション
|
|
|
+ </para></listitem>
|
|
|
+ </itemizedlist></entry>
|
|
|
+ <entry><para>
|
|
|
+ 状態を初期化するためのオプションを、コンストラクタに渡すことができなければなりません。
|
|
|
+ </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>必須</emphasis>.
|
|
|
+ このリソースを初期化する親ブートストラップ
|
|
|
+ </para></listitem>
|
|
|
+ </itemizedlist></entry>
|
|
|
+ <entry><para>
|
|
|
+ 親ブートストラップ・オブジェクトを登録できるようにしなければいけません。
|
|
|
+ </para></entry>
|
|
|
+ </row>
|
|
|
+
|
|
|
+ <row>
|
|
|
+ <entry><methodname>getBootstrap()</methodname></entry>
|
|
|
+ <entry><classname>Zend_Application_Bootstrap_Bootstrapper</classname></entry>
|
|
|
+ <entry>N/A</entry>
|
|
|
+ <entry><para>
|
|
|
+ 登録されたブートストラップ・インスタンスを取得します。
|
|
|
+ </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>必須</emphasis>.
|
|
|
+ 状態を設定するオプション
|
|
|
+ </para></listitem>
|
|
|
+ </itemizedlist></entry>
|
|
|
+ <entry><para>
|
|
|
+ リソースの状態を設定。
|
|
|
+ </para></entry>
|
|
|
+ </row>
|
|
|
+
|
|
|
+ <row>
|
|
|
+ <entry><methodname>getOptions()</methodname></entry>
|
|
|
+ <entry><type>Array</type></entry>
|
|
|
+ <entry>N/A</entry>
|
|
|
+ <entry><para>
|
|
|
+ 登録されたオプションを取得
|
|
|
+ </para></entry>
|
|
|
+ </row>
|
|
|
+
|
|
|
+ <row>
|
|
|
+ <entry><methodname>init()</methodname></entry>
|
|
|
+ <entry><type>Mixed</type></entry>
|
|
|
+ <entry>N/A</entry>
|
|
|
+ <entry><para>
|
|
|
+ ストラテジー・パターン: リソースの初期化を実行。
|
|
|
+ </para></entry>
|
|
|
+ </row>
|
|
|
+ </tbody>
|
|
|
+ </tgroup>
|
|
|
+ </table>
|
|
|
+</sect2>
|