<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.reflectionproperty.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'reflectionproperty.ispublic.php',
    1 => 'ReflectionProperty::isPublic',
    2 => 'public プロパティであるかどうかを調べる',
  ),
  'up' => 
  array (
    0 => 'class.reflectionproperty.php',
    1 => 'ReflectionProperty',
  ),
  'prev' => 
  array (
    0 => 'reflectionproperty.isprotectedset.php',
    1 => 'ReflectionProperty::isProtectedSet',
  ),
  'next' => 
  array (
    0 => 'reflectionproperty.isreadonly.php',
    1 => 'ReflectionProperty::isReadOnly',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/reflection/reflectionproperty/ispublic.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="reflectionproperty.ispublic" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">ReflectionProperty::isPublic</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">ReflectionProperty::isPublic</span> &mdash; <span class="dc-title">public プロパティであるかどうかを調べる</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-reflectionproperty.ispublic-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>ReflectionProperty::isPublic</strong></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   プロパティが public とマークされているか調べます。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-reflectionproperty.ispublic-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">この関数にはパラメータはありません。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-reflectionproperty.ispublic-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   public プロパティである場合に <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>、それ以外の場合に <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。
  </p>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <span class="simpara">
    これはデフォルトのアクセス権のみを参照します。<a href="language.oop5.visibility.php#language.oop5.visibility-members-aviz" class="link"><code class="literal">set</code> のアクセス権</a> は指定されていても無視されることに注意してください。
   </span>
  </p></blockquote>
 </div>


 <div class="refsect1 notes" id="refsect1-reflectionproperty.ispublic-notes">
  <h3 class="title">注意</h3>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <span class="simpara">
    プロパティが <code class="literal">public</code> だからといって、
    常に public に書き込み可能というわけではありません。
    プロパティは仮想的に <code class="literal">set</code>
    フックが存在しない場合がありますし、
    書き込みの権限が既に <code class="literal">readonly</code> である場合もあります。
    また、<a href="language.oop5.visibility.php#language.oop5.visibility-members-aviz" class="link"><code class="literal">set</code> のアクセス権設定</a> が non-public に設定されている場合もあります。
    これらのケース全ての場合、
    このメソッドは <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> を返しますが、プロパティは書き込み可能にはなりません。
   </span>
  </p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-reflectionproperty.ispublic-seealso">
  <h3 class="title">参考</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="reflectionproperty.isprotected.php" class="methodname" rel="rdfs-seeAlso">ReflectionProperty::isProtected()</a> - protected プロパティであるかどうかを調べる</span></li>
    <li><span class="methodname"><a href="reflectionproperty.isprotectedset.php" class="methodname" rel="rdfs-seeAlso">ReflectionProperty::isProtectedSet()</a> - プロパティが書き込みについて protected かどうかを調べる</span></li>
    <li><span class="methodname"><a href="reflectionproperty.isprivate.php" class="methodname" rel="rdfs-seeAlso">ReflectionProperty::isPrivate()</a> - private プロパティであるかどうかを調べる</span></li>
    <li><span class="methodname"><a href="reflectionproperty.isprivateset.php" class="methodname" rel="rdfs-seeAlso">ReflectionProperty::isPrivateSet()</a> - プロパティが書き込みについて private かどうかを調べる</span></li>
    <li><span class="methodname"><a href="reflectionproperty.isreadonly.php" class="methodname" rel="rdfs-seeAlso">ReflectionProperty::isReadOnly()</a> - プロパティが readonly かを調べる</span></li>
    <li><span class="methodname"><a href="reflectionproperty.isstatic.php" class="methodname" rel="rdfs-seeAlso">ReflectionProperty::isStatic()</a> - staticプロパティであるかどうかを調べる</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>