|
|
@@ -0,0 +1,121 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+<!-- Reviewed: no -->
|
|
|
+<!-- EN-Revision: 15733 -->
|
|
|
+<sect2 id="zend.application.core-functionality.bootstrap-bootstrapper">
|
|
|
+ <title>Zend_Application_Bootstrap_Bootstrapper</title>
|
|
|
+
|
|
|
+ <para>
|
|
|
+ <classname>Zend_Application_Bootstrap_Bootstrapper</classname>は、
|
|
|
+ ブートストラップ・クラス全てで実装しなければならない基底インターフェースです。
|
|
|
+ 基本的な機能として、構成、リソースの確認、起動(個々のリソースかまたはアプリケーション全て)、
|
|
|
+ 及びアプリケーションのディスパッチを意図しています。
|
|
|
+ </para>
|
|
|
+
|
|
|
+ <para>
|
|
|
+ 以下のメソッドで、インターフェースの定義が用意されています。
|
|
|
+ </para>
|
|
|
+
|
|
|
+ <table id="zend.application.core-functionality.bootstrap-bootstrapper.methods-table">
|
|
|
+ <title>Zend_Application_Bootstrap_Bootstrapperインタフェース</title>
|
|
|
+ <tgroup cols="4">
|
|
|
+ <thead>
|
|
|
+ <row>
|
|
|
+ <entry>メソッド</entry>
|
|
|
+ <entry>返り値</entry>
|
|
|
+ <entry>パラメータ</entry>
|
|
|
+ <entry>説明</entry>
|
|
|
+ </row>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ <row>
|
|
|
+ <entry><methodname>__construct($application)</methodname></entry>
|
|
|
+ <entry><type>Void</type></entry>
|
|
|
+ <entry><itemizedlist>
|
|
|
+ <listitem><para>
|
|
|
+ <varname>$application</varname>: <emphasis>必須</emphasis>。
|
|
|
+ 唯一の引数として<classname>Zend_Application</classname>、
|
|
|
+ または<classname>Zend_Application_Bootstrap_Bootstrapper</classname>オブジェクトを受け取るべきです。
|
|
|
+ </para></listitem>
|
|
|
+ </itemizedlist></entry>
|
|
|
+ <entry><para>
|
|
|
+ コンストラクタ。<classname>Zend_Application</classname>オブジェクト、
|
|
|
+ または別のブートストラップ・オブジェクトのはずの単一の引数を扱います。
|
|
|
+ </para></entry>
|
|
|
+ </row>
|
|
|
+
|
|
|
+ <row>
|
|
|
+ <entry><methodname>setOptions(array $options)</methodname></entry>
|
|
|
+ <entry><classname>Zend_Application_Bootstrap_Bootstrapper</classname></entry>
|
|
|
+ <entry><itemizedlist>
|
|
|
+ <listitem><para>
|
|
|
+ <varname>$options</varname>: <emphasis>必須</emphasis>。
|
|
|
+ 設定するオプションの配列
|
|
|
+ </para></listitem>
|
|
|
+ </itemizedlist></entry>
|
|
|
+ <entry><para>
|
|
|
+ 一般的に、一致するセッターを持つどんな選択肢でも、そのセッターを起動します;
|
|
|
+ これ以外の場合には、選択肢は単純に後の検索に備えてたくわえられます。
|
|
|
+ </para></entry>
|
|
|
+ </row>
|
|
|
+
|
|
|
+ <row>
|
|
|
+ <entry><methodname>getApplication()</methodname></entry>
|
|
|
+ <entry>
|
|
|
+ <classname>Zend_Application</classname> |
|
|
|
+ <classname>Zend_Application_Bootstrap_Bootstrapper</classname>
|
|
|
+ </entry>
|
|
|
+ <entry>N/A</entry>
|
|
|
+ <entry><para>
|
|
|
+ コンストラクタによって渡されるアプリケーションまたはブートストラップ・オブジェクトを取得します。
|
|
|
+ </para></entry>
|
|
|
+ </row>
|
|
|
+
|
|
|
+ <row>
|
|
|
+ <entry><methodname>getEnvironment()</methodname></entry>
|
|
|
+ <entry><type>String</type></entry>
|
|
|
+ <entry>N/A</entry>
|
|
|
+ <entry><para>
|
|
|
+ 親アプリケーションまたはブートストラップ・オブジェクトで登録された環境文字列を取得します。
|
|
|
+ </para></entry>
|
|
|
+ </row>
|
|
|
+
|
|
|
+ <row>
|
|
|
+ <entry><methodname>getClassResources()</methodname></entry>
|
|
|
+ <entry><type>Array</type></entry>
|
|
|
+ <entry>N/A</entry>
|
|
|
+ <entry><para>
|
|
|
+ クラスで定義された、利用可能なりソース・イニシャライザ名のリストを取得します。
|
|
|
+ これは、固有の実装かもしれません。
|
|
|
+ </para></entry>
|
|
|
+ </row>
|
|
|
+
|
|
|
+ <row>
|
|
|
+ <entry><methodname>bootstrap($resource = null)</methodname></entry>
|
|
|
+ <entry>
|
|
|
+ <type>Mixed</type>
|
|
|
+ </entry>
|
|
|
+ <entry><itemizedlist>
|
|
|
+ <listitem><para>
|
|
|
+ <varname>$resource</varname>: <emphasis>任意</emphasis>
|
|
|
+ </para></listitem>
|
|
|
+ </itemizedlist></entry>
|
|
|
+ <entry><para>
|
|
|
+ もし<varname>$resource</varname>が空なら、
|
|
|
+ すべてのブートストラップ・リソースを実行します。
|
|
|
+ もし文字列なら、単一のリソースを実行します;
|
|
|
+ もし配列なら、配列の各々のリソースを実行します。
|
|
|
+ </para></entry>
|
|
|
+ </row>
|
|
|
+
|
|
|
+ <row>
|
|
|
+ <entry><methodname>run()</methodname></entry>
|
|
|
+ <entry><type>Void</type></entry>
|
|
|
+ <entry>N/A</entry>
|
|
|
+ <entry><para>
|
|
|
+ 起動した後にどんなアプリケーション・ロジックを実行すべきか定義します。
|
|
|
+ </para></entry>
|
|
|
+ </row>
|
|
|
+ </tbody>
|
|
|
+ </tgroup>
|
|
|
+ </table>
|
|
|
+</sect2>
|