|
|
@@ -0,0 +1,145 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+<!-- Reviewed: no -->
|
|
|
+<!-- EN-Revision: 15733 -->
|
|
|
+<sect2 id="zend.application.core-functionality.bootstrap-resourcebootstrapper">
|
|
|
+ <title>Zend_Application_Bootstrap_ResourceBootstrapper</title>
|
|
|
+
|
|
|
+ <para>
|
|
|
+ <classname>Zend_Application_Bootstrap_ResourceBootstrapper</classname>は、
|
|
|
+ ブートストラップ・クラスが外部リソースをロードしようとするとき、
|
|
|
+ 使用するインタフェースです。
|
|
|
+ すなわち、一つ以上のリソースがクラスで直接定められず、むしろプラグインによって定められます。
|
|
|
+ それは<link
|
|
|
+ linkend="zend.application.core-functionality.bootstrap-bootstrapper">Zend_Application_Bootstrap_Bootstrapper</link>
|
|
|
+ とともに使われなければなりません、
|
|
|
+ そして、<link
|
|
|
+ linkend="zend.application.core-functionality.bootstrap-bootstrapabstract">Zend_Application_Bootstrap_BootstrapAbstract</link>
|
|
|
+ がこの機能を実装します。
|
|
|
+ </para>
|
|
|
+
|
|
|
+ <para>
|
|
|
+ 以下のメソッドで、インターフェースの定義が用意されています。
|
|
|
+ </para>
|
|
|
+
|
|
|
+ <table id="zend.application.core-functionality.bootstrap-resourcebootstrapper.methods-table">
|
|
|
+ <title>Zend_Application_Bootstrap_ResourceBootstrapperインタフェース</title>
|
|
|
+ <tgroup cols="4">
|
|
|
+ <thead>
|
|
|
+ <row>
|
|
|
+ <entry>メソッド</entry>
|
|
|
+ <entry>返り値</entry>
|
|
|
+ <entry>パラメータ</entry>
|
|
|
+ <entry>説明</entry>
|
|
|
+ </row>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <row>
|
|
|
+ <entry>
|
|
|
+ <methodname>registerPluginResource($resource, $options = null)</methodname>
|
|
|
+ </entry>
|
|
|
+ <entry>
|
|
|
+ <classname>Zend_Application_Bootstrap_ResourceBootstrapper</classname>
|
|
|
+ </entry>
|
|
|
+ <entry><itemizedlist>
|
|
|
+ <listitem><para>
|
|
|
+ <varname>$resource</varname>: <emphasis>必須</emphasis>.
|
|
|
+ リソース名、または
|
|
|
+ <classname>Zend_Application_Resource_Resource</classname>オブジェクト
|
|
|
+ </para></listitem>
|
|
|
+
|
|
|
+ <listitem><para>
|
|
|
+ <varname>$options</varname>: <emphasis>任意</emphasis>.
|
|
|
+ インスタンス化でリソースに渡す
|
|
|
+ 配列、または<classname>Zend_Config</classname>オブジェクト
|
|
|
+ </para></listitem>
|
|
|
+ </itemizedlist></entry>
|
|
|
+ <entry><para>
|
|
|
+ クラスでリソースを登録します。
|
|
|
+ そして、リソースに渡すオプションの構成を提供します。
|
|
|
+ </para></entry>
|
|
|
+ </row>
|
|
|
+
|
|
|
+ <row>
|
|
|
+ <entry><methodname>unregisterPluginResource($resource)</methodname></entry>
|
|
|
+ <entry>
|
|
|
+ <classname>Zend_Application_Bootstrap_ResourceBootstrapper</classname>
|
|
|
+ </entry>
|
|
|
+ <entry><itemizedlist>
|
|
|
+ <listitem><para>
|
|
|
+ <varname>$resource</varname>: <emphasis>必須</emphasis>.
|
|
|
+ クラスから登録を抹消するリソース名
|
|
|
+ </para></listitem>
|
|
|
+ </itemizedlist></entry>
|
|
|
+ <entry><para>
|
|
|
+ クラスからプラグイン・リソースを除去します
|
|
|
+ </para></entry>
|
|
|
+ </row>
|
|
|
+
|
|
|
+ <row>
|
|
|
+ <entry><methodname>hasPluginResource($resource)</methodname></entry>
|
|
|
+ <entry><type>ブール値</type></entry>
|
|
|
+ <entry><itemizedlist>
|
|
|
+ <listitem><para>
|
|
|
+ <varname>$resource</varname>: <emphasis>必須</emphasis>.
|
|
|
+ リソース名
|
|
|
+ </para></listitem>
|
|
|
+ </itemizedlist></entry>
|
|
|
+ <entry><para>
|
|
|
+ 指定したりソースがクラスに登録されているか判断します
|
|
|
+ </para></entry>
|
|
|
+ </row>
|
|
|
+
|
|
|
+ <row>
|
|
|
+ <entry><methodname>getPluginResource($resource)</methodname></entry>
|
|
|
+ <entry><classname>Zend_Application_Resource_Resource</classname></entry>
|
|
|
+ <entry><itemizedlist>
|
|
|
+ <listitem><para>
|
|
|
+ <varname>$resource</varname>: <emphasis>必須</emphasis>.
|
|
|
+ 取得するリソース名 (文字列)
|
|
|
+ </para></listitem>
|
|
|
+ </itemizedlist></entry>
|
|
|
+ <entry><para>
|
|
|
+ プラグイン・リソースのインスタンスを名前により取得
|
|
|
+ </para></entry>
|
|
|
+ </row>
|
|
|
+
|
|
|
+ <row>
|
|
|
+ <entry><methodname>getPluginResourceNames()</methodname></entry>
|
|
|
+ <entry><type>配列</type></entry>
|
|
|
+ <entry>N/A</entry>
|
|
|
+ <entry><para>
|
|
|
+ 登録された全てのプラグインリソースの名前の一覧を取得
|
|
|
+ </para></entry>
|
|
|
+ </row>
|
|
|
+
|
|
|
+ <row>
|
|
|
+ <entry>
|
|
|
+ <methodname>setPluginLoader(Zend_Loader_PluginLoader_Interface
|
|
|
+ $loader)</methodname>
|
|
|
+ </entry>
|
|
|
+ <entry>
|
|
|
+ <classname>Zend_Application_Bootstrap_ResourceBootstrapper</classname>
|
|
|
+ </entry>
|
|
|
+ <entry><itemizedlist>
|
|
|
+ <listitem><para>
|
|
|
+ <varname>$loader</varname>: <emphasis>必須</emphasis>.
|
|
|
+ プラグイン名からクラスに解決するときに使うプラグインローダーのインスタンス
|
|
|
+ </para></listitem>
|
|
|
+ </itemizedlist></entry>
|
|
|
+ <entry><para>
|
|
|
+ プラグインのクラス名を解決するときに使うプラグインローダーのインスタンスを登録
|
|
|
+ </para></entry>
|
|
|
+ </row>
|
|
|
+
|
|
|
+ <row>
|
|
|
+ <entry><methodname>getPluginLoader()</methodname></entry>
|
|
|
+ <entry><classname>Zend_Loader_PluginLoader_Interface</classname></entry>
|
|
|
+ <entry>N/A</entry>
|
|
|
+ <entry><para>
|
|
|
+ 登録されたプラグインローダーを取得
|
|
|
+ </para></entry>
|
|
|
+ </row>
|
|
|
+ </tbody>
|
|
|
+ </tgroup>
|
|
|
+ </table>
|
|
|
+</sect2>
|