1
0
mirror of https://github.com/php/doc-en.git synced 2026-04-26 16:58:08 +02:00
Files
archived-doc-en/reference/reflection/reflectionproperty/ispublic.xml
Larry Garfield e0e74c05cb Hooks reflection (#4110)
* Add reflection stubs for property hooks

* Document getHook().

* Document hasHook()

* Document getSettableType()

* Document getHooks()

* Document hasHooks()

* Document isFinal()

* Document isPrivateSet() and isProtectedSet()

* Document setRawValue()

* Document getRawValue()

* Document isVirtual()

* Document PropertyHookType.

* Document isAbstract()

---------

Co-authored-by: Gina Peter Banyard <girgias@php.net>
2025-02-21 19:16:44 +00:00

87 lines
2.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="reflectionproperty.ispublic" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>ReflectionProperty::isPublic</refname>
<refpurpose>Checks if property is public</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis role="ReflectionProperty">
<modifier>public</modifier> <type>bool</type><methodname>ReflectionProperty::isPublic</methodname>
<void/>
</methodsynopsis>
<para>
Checks whether the property is public.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
&no.function.parameters;
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&true; if the property is marked public, &false; otherwise.
</para>
<note>
<simpara>
Note this refers only to the main visibility, and not to a <link linkend="language.oop5.visibility-members-aviz">set-visibility</link>, if specified.
</simpara>
</note>
</refsect1>
<refsect1 role="notes">
&reftitle.notes;
<note>
<simpara>
Be aware that a property being <literal>public</literal> does not always
imply is it publicly writeable. A property could be virtual with no
<literal>set</literal> hook, or it could be <literal>readonly</literal>
and already have been written to, or it could have a
<link linkend="language.oop5.visibility-members-aviz"><literal>set</literal>
visibility defined</link> that is non-public. In all of those cases,
this method will return &true; but the property will not be writeable.
</simpara>
</note>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><methodname>ReflectionProperty::isProtected</methodname></member>
<member><methodname>ReflectionProperty::isProtectedSet</methodname></member>
<member><methodname>ReflectionProperty::isPrivate</methodname></member>
<member><methodname>ReflectionProperty::isPrivateSet</methodname></member>
<member><methodname>ReflectionProperty::isReadOnly</methodname></member>
<member><methodname>ReflectionProperty::isStatic</methodname></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->