|
|
@@ -1,6 +1,6 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<!-- Reviewed: no -->
|
|
|
-<!-- EN-Revision: 24249 -->
|
|
|
+<!-- EN-Revision: 24570 -->
|
|
|
<sect2 id="zend.validate.set.hostname">
|
|
|
|
|
|
<title>ホスト名</title>
|
|
|
@@ -20,37 +20,36 @@
|
|
|
<classname>Zend_Validate_Hostname</classname> では、下記のオプションがサポートされます。
|
|
|
</para>
|
|
|
|
|
|
- <!-- TODO : to be translated -->
|
|
|
<itemizedlist>
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <emphasis><property>allow</property></emphasis>: Defines the sort of hostname
|
|
|
- which is allowed to be used. See <link
|
|
|
- linkend="zend.validate.set.hostname.types">Hostname types</link> for
|
|
|
- details.
|
|
|
+ <emphasis><property>allow</property></emphasis>:
|
|
|
+ 使用できるホスト名のソートを定義します。
|
|
|
+ 詳しくは、<link linkend="zend.validate.set.hostname.types">ホスト名の種類</link> をご覧ください。
|
|
|
</para>
|
|
|
</listitem>
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <emphasis><property>idn</property></emphasis>: Defines if <acronym>IDN</acronym>
|
|
|
- domains are allowed or not. This option defaults to <constant>TRUE</constant>.
|
|
|
+ <emphasis><property>idn</property></emphasis>:
|
|
|
+ <acronym>IDN</acronym> ドメインが許可されるかどうか定義します。
|
|
|
+ このオプションのデフォルトは <constant>TRUE</constant> です。
|
|
|
</para>
|
|
|
</listitem>
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <emphasis><property>ip</property></emphasis>: Allows to define a own IP
|
|
|
- validator. This option defaults to a new instance of
|
|
|
- <classname>Zend_Validate_Ip</classname>.
|
|
|
+ <emphasis><property>ip</property></emphasis>:
|
|
|
+ これにより、固有の IP バリデーターを定義できます。
|
|
|
+ このオプションのデフォルトは <classname>Zend_Validate_Ip</classname> の新規インスタンスです。
|
|
|
</para>
|
|
|
</listitem>
|
|
|
|
|
|
<listitem>
|
|
|
<para>
|
|
|
- <emphasis><property>tld</property></emphasis>: Defines if
|
|
|
- <acronym>TLD</acronym>s are validated. This option defaults to
|
|
|
- <constant>TRUE</constant>.
|
|
|
+ <emphasis><property>tld</property></emphasis>:
|
|
|
+ <acronym>TLD</acronym> が検証されるかどうか定義します。
|
|
|
+ このオプションのデフォルトは <constant>TRUE</constant> です。
|
|
|
</para>
|
|
|
</listitem>
|
|
|
</itemizedlist>
|
|
|
@@ -94,20 +93,25 @@ if ($validator->isValid($hostname)) {
|
|
|
</para>
|
|
|
|
|
|
<para>
|
|
|
- <classname>Zend_Validate_Hostname</classname> の定数は次のとおりです。<constant>ALLOW_DNS</constant> は <acronym>DNS</acronym> ホスト名のみを許可し、
|
|
|
- <constant>ALLOW_IP</constant> は IP アドレスを許可します。また <constant>ALLOW_LOCAL</constant>
|
|
|
- はローカルネットワーク名を許可し、<constant>ALLOW_ALL</constant> は前述の三種類をすべて許可します。
|
|
|
+ <classname>Zend_Validate_Hostname</classname> の定数は次のとおりです。
|
|
|
+ <constant>ALLOW_DNS</constant> は <acronym>DNS</acronym> ホスト名のみ、
|
|
|
+ <constant>ALLOW_IP</constant> は IP アドレス、
|
|
|
+ <constant>ALLOW_LOCAL</constant> はローカルネットワーク名、
|
|
|
+ <constant>ALLOW_URI</constant> は <ulink
|
|
|
+ url="http://tools.ietf.org/html/rfc3986">RFC3986</ulink> に準拠するアドレス、
|
|
|
+ <constant>ALLOW_ALL</constant> は前述の4種類のすべて、
|
|
|
+ を許可します。
|
|
|
</para>
|
|
|
|
|
|
- <!-- TODO : to be translated -->
|
|
|
- <para>
|
|
|
- Additionally there is <constant>ALLOW_URI</constant> which allows to check hostnames
|
|
|
- according to <ulink url="http://tools.ietf.org/html/rfc3986">RFC3986</ulink>. These
|
|
|
- are registered names which are used by <acronym>WINS</acronym>, NetInfo and also local
|
|
|
- hostnames like those defined within your <filename>.hosts</filename> file. For security
|
|
|
- reasons <constant>ALLOW_URI</constant> is not contained within
|
|
|
- <constant>ALLOW_ALL</constant>.
|
|
|
- </para>
|
|
|
+ <note>
|
|
|
+ <title>ALLOW_URI に関する追加情報</title>
|
|
|
+ <para>
|
|
|
+ <constant>ALLOW_URI</constant> により、<ulink
|
|
|
+ url="http://tools.ietf.org/html/rfc3986">RFC3986</ulink> に従うホスト名をチェックできます。
|
|
|
+ これらは、<acronym>WINS</acronym>、NetInfo、および <filename>.hosts</filename>
|
|
|
+ ファイル内で定義されるそれらのようなローカル・ホスト名によって使用される登録された名前です。
|
|
|
+ </para>
|
|
|
+ </note>
|
|
|
|
|
|
<para>
|
|
|
IP アドレスだけをチェックするには、以下の例のようにします。
|