com doc/ja: s/可視性/アク セス権/: appendices/migration80/ne w-features.xml language/oop5.xml language/oop5/deco n.xml
language/oop5/traits.xml language/predefined/cl osure/bind.xml language/predefined/closure/bindto.xml r
eference/reflection/reflectionclass/getconstants.xml

From: Date: Sat, 06 Mar 2021 07:25:01 +0000
Subject: com doc/ja: s/可視性/アク セス権/: appendices/migration80/ne w-features.xml language/oop5.xml language/oop5/deco n.xml
language/oop5/traits.xml language/predefined/cl osure/bind.xml language/predefined/closure/bindto.xml r
eference/reflection/reflectionclass/getconstants.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-6237@lists.php.net to get a copy of this message
Commit: 1f5b691780c7fd13d2aeb70484ef23cacb5bb5d8 Author: Yoshinari Takaoka <mumumu@mumumu.org> Sat, 6 Mar 2021 16:25:01 +0900 Parents: bf57c31db706b6ae480e5be563a2f185592bf0ed Branches: master Link: http://git.php.net/?p=doc/ja.git;a=commitdiff;h=1f5b691780c7fd13d2aeb70484ef23cacb5bb5d8 Log: s/可視性/アクセス権/ Changed paths: M appendices/migration80/new-features.xml M language/oop5.xml M language/oop5/decon.xml M language/oop5/traits.xml M language/predefined/closure/bind.xml M language/predefined/closure/bindto.xml M reference/reflection/reflectionclass/getconstants.xml Diff: diff --git a/appendices/migration80/new-features.xml b/appendices/migration80/new-features.xml index b1a0195514..d4be994921 100644 --- a/appendices/migration80/new-features.xml +++ b/appendices/migration80/new-features.xml @@ -219,7 +219,7 @@ class ParentClass { private final function method4() {} } class ChildClass extends ParentClass { - // 親クラスの private メソッドと可視性の修飾子が異なっている + // 親クラスの private メソッドとアクセス権の修飾子が異なっている // 以下の全ての宣言が許されるようになりました。 public abstract function method1() {} public static function method2() {} diff --git a/language/oop5.xml b/language/oop5.xml index 16d30c9969..9d8d27f19e 100644 --- a/language/oop5.xml +++ b/language/oop5.xml @@ -11,7 +11,7 @@ <para> PHP には完全なオブジェクトモデルが搭載されています。 搭載されている機能には - <link linkend="language.oop5.visibility">可視性</link>、 + <link linkend="language.oop5.visibility">アクセス権</link>、 <link linkend="language.oop5.abstract">abstract</link> クラスやメソッド、 <link linkend="language.oop5.final">final</link> クラスやメソッド、 新たな <link linkend="language.oop5.magic">マジックメソッド</link>、 diff --git a/language/oop5/decon.xml b/language/oop5/decon.xml index 6dabd719e0..2abc8423a9 100644 --- a/language/oop5/decon.xml +++ b/language/oop5/decon.xml @@ -146,7 +146,7 @@ class Point { </programlisting> </example> <para> - コンストラクタの引数に、可視性の修飾子が含まれている場合、 + コンストラクタの引数に、アクセス権の修飾子が含まれている場合、 PHP はそれをオブジェクトのプロパティ、かつコンストラクタの引数であると解釈します。 そして、その引数の値をプロパティに代入します。 コンストラクタの本体は空にすることもできますし、 diff --git a/language/oop5/traits.xml b/language/oop5/traits.xml index 338cbb8573..60d0f1b8fd 100644 --- a/language/oop5/traits.xml +++ b/language/oop5/traits.xml @@ -245,10 +245,10 @@ class Aliased_Talker { <title>メソッドの可視性の変更</title> <para> <literal>as</literal> 構文を使うと、 - クラス内でのメソッドの可視性も変更することができます。 + クラス内でのメソッドのアクセス権も変更することができます。 </para> <example xml:id="language.oop5.traits.visibility.ex1"> - <title>メソッドの可視性の変更</title> + <title>メソッドのアクセス権を変更する</title> <programlisting role="php"> <![CDATA[ <?php @@ -258,13 +258,13 @@ trait HelloWorld { } } -// sayHello の可視性を変更します +// sayHello のアクセス権を変更します class MyClass1 { use HelloWorld { sayHello as protected; } } // 可視性を変更したエイリアスメソッドを作ります -// sayHello 自体の可視性は変わりません +// sayHello 自体のアクセス権は変わりません class MyClass2 { use HelloWorld { sayHello as private myPrivateHello; } } diff --git a/language/predefined/closure/bind.xml b/language/predefined/closure/bind.xml index 06eef90335...c85de730d6 100644 --- a/language/predefined/closure/bind.xml +++ b/language/predefined/closure/bind.xml @@ -54,7 +54,7 @@ クロージャを関連づけるクラススコープ、あるいは 'static' で現在のスコープを維持します。 オブジェクトを渡した場合は、そのオブジェクトの型をその代わりに使います。 これは、バインドしたオブジェクトの protected メソッドや private - メソッドの可視性を決めます。 + メソッドのアクセス権を決めます。 このパラメータに、内部クラスのオブジェクトを渡すことはできません。 </para> </listitem> diff --git a/language/predefined/closure/bindto.xml b/language/predefined/closure/bindto.xml index 80209b93a3..0749626d49 100644 --- a/language/predefined/closure/bindto.xml +++ b/language/predefined/closure/bindto.xml @@ -75,7 +75,7 @@ クロージャを関連づけるクラススコープ、あるいは 'static' で現在のスコープを維持します。 オブジェクトを渡した場合は、そのオブジェクトの型をその代わりに使います。 これは、バインドしたオブジェクトの protected メソッドや private - メソッドの可視性を決めます。 + メソッドのアクセス権を決めます。 内部クラス (のオブジェクト) を をパラメータとして渡すことはできません。 </para> </listitem> diff --git a/reference/reflection/reflectionclass/getconstants.xml b/reference/reflection/reflectionclass/getconstants.xml index 8cbd3133cc..81d200c8a6 100644 --- a/reference/reflection/reflectionclass/getconstants.xml +++ b/reference/reflection/reflectionclass/getconstants.xml @@ -16,7 +16,7 @@ <methodparam choice="opt"><type class="union"><type>int</type><type>null</type></type><parameter>filter</parameter><initializer>&null;</initializer></methodparam> </methodsynopsis> <para> - 可視性にかかわらず、クラスで定義されているすべての定数を取得します。 + アクセス権にかかわらず、クラスで定義されているすべての定数を取得します。 </para> </refsect1>

« previous php.doc.ja (#6237) next »