|
|
@@ -1,6 +1,6 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<!-- Reviewed: no -->
|
|
|
-<!-- EN-Revision: 24825 -->
|
|
|
+<!-- EN-Revision: 24872 -->
|
|
|
<sect1 id="zend.view.helpers" xmlns:xi="http://www.w3.org/2001/XInclude">
|
|
|
<title>ビューヘルパー</title>
|
|
|
|
|
|
@@ -335,12 +335,11 @@ echo $this->formMultiCheckbox(
|
|
|
]]></programlisting>
|
|
|
</listitem>
|
|
|
|
|
|
- <!-- TODO : to be translated -->
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <methodname>formNote($name, $value = null)</methodname>: Creates a
|
|
|
- simple text note. (e.g. as element for headlines in a
|
|
|
- <classname>Zend_Form</classname> object)
|
|
|
+ <methodname>formNote($name, $value = null)</methodname>:
|
|
|
+ 単純なテキスト・ノートを作成。例えば、
|
|
|
+ <classname>Zend_Form</classname> オブジェクトの見出しに対する要素として。
|
|
|
</para>
|
|
|
|
|
|
<programlisting language="php"><![CDATA[
|
|
|
@@ -449,9 +448,8 @@ echo $this->formRadio(
|
|
|
$value は初期選択状態を設定します。
|
|
|
</para>
|
|
|
|
|
|
-<!-- TODO : to be translated -->
|
|
|
<programlisting language="php"><![CDATA[
|
|
|
-// Using option groups:
|
|
|
+// オプション・グループを使用:
|
|
|
|
|
|
echo $view->formSelect(
|
|
|
'foo',
|
|
|
@@ -483,7 +481,7 @@ echo $view->formSelect(
|
|
|
</select>
|
|
|
*/
|
|
|
|
|
|
-// First example with 'multiple' option:
|
|
|
+// 'multiple' オプションの例その1:
|
|
|
|
|
|
echo $this->formSelect(
|
|
|
'foo[]',
|
|
|
@@ -505,7 +503,7 @@ echo $this->formSelect(
|
|
|
</select>
|
|
|
*/
|
|
|
|
|
|
-// Second example with 'multiple' option:
|
|
|
+// 'multiple' オプションの例その2:
|
|
|
|
|
|
echo $this->formSelect(
|
|
|
'foo',
|
|
|
@@ -556,19 +554,18 @@ echo $this->formSelect(
|
|
|
<varname>$urlOptions</varname> は、そのルートで使用するキーと値のペアの配列です。
|
|
|
</para>
|
|
|
|
|
|
-<!-- TODO : to be translated -->
|
|
|
<programlisting language="php"><![CDATA[
|
|
|
-// Using without options: (current request is: user/id/1)
|
|
|
+// オプション無しで使用: (現行のリクエスト: user/id/1)
|
|
|
echo $this->url();
|
|
|
// 出力: user/info/id/1
|
|
|
|
|
|
-// Set URL options:
|
|
|
+// URL オプションを設定:
|
|
|
echo $this->url(
|
|
|
array('controller' => 'user', 'action' => 'info', 'username' => 'foobar')
|
|
|
);
|
|
|
// 出力: user/info/username/foobar
|
|
|
|
|
|
-// Using a route:
|
|
|
+// ルートを使用:
|
|
|
$router->addRoute(
|
|
|
'user',
|
|
|
new Zend_Controller_Router_Route(
|
|
|
@@ -583,14 +580,14 @@ $router->addRoute(
|
|
|
echo $this->url(array('name' => 'foobar'), 'user');
|
|
|
// 出力: user/foobar
|
|
|
|
|
|
-// Using reset: (current request is: user/id/1)
|
|
|
+// リセットを使用: (現行のリクエスト: user/id/1)
|
|
|
echo $this->url(array('controller' => 'user', 'action' => 'info'), null, false);
|
|
|
// 出力: user/info/id/1
|
|
|
|
|
|
echo $this->url(array('controller' => 'user', 'action' => 'info'), null, true);
|
|
|
// 出力: user/info
|
|
|
|
|
|
-// Using encode:
|
|
|
+// エンコードを使用:
|
|
|
echo $this->url(
|
|
|
array('controller' => 'user', 'action' => 'info', 'username' => 'John Doe'), null, true, false
|
|
|
);
|
|
|
@@ -605,12 +602,12 @@ echo $this->url(
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <methodname>serverUrl($requestUri = null)</methodname>: Helper
|
|
|
- for returning the current server URL (optionally with request URI).
|
|
|
+ <methodname>serverUrl($requestUri = null)</methodname>:
|
|
|
+ 現行のサーバーの URL、および任意でリクエスト URI を返すヘルパー。
|
|
|
</para>
|
|
|
|
|
|
<programlisting language="php"><![CDATA[
|
|
|
-// Current server URL in the example is: http://www.example.com/foo.html
|
|
|
+// この例の現行のサーバー URL: http://www.example.com/foo.html
|
|
|
|
|
|
echo $this->serverUrl();
|
|
|
// 出力: http://www.example.com
|