2009-08-15 14:39:48 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!-- $Revision$ -->
|
|
|
|
<phpdoc:classref xml:id="class.reflectionproperty" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
|
|
|
|
|
|
|
|
<title>The ReflectionProperty class</title>
|
|
|
|
<titleabbrev>ReflectionProperty</titleabbrev>
|
|
|
|
|
|
|
|
<partintro>
|
|
|
|
|
|
|
|
<!-- {{{ ReflectionProperty intro -->
|
|
|
|
<section xml:id="reflectionproperty.intro">
|
|
|
|
&reftitle.intro;
|
|
|
|
<para>
|
|
|
|
The <classname>ReflectionProperty</classname> class reports
|
2020-09-03 08:59:26 +00:00
|
|
|
information about class properties.
|
2009-08-15 14:39:48 +00:00
|
|
|
</para>
|
|
|
|
</section>
|
|
|
|
<!-- }}} -->
|
|
|
|
|
|
|
|
<section xml:id="reflectionproperty.synopsis">
|
|
|
|
&reftitle.classsynopsis;
|
|
|
|
|
|
|
|
<!-- {{{ Synopsis -->
|
|
|
|
<classsynopsis>
|
2021-11-23 13:15:35 +00:00
|
|
|
<ooclass>
|
|
|
|
<classname>ReflectionProperty</classname>
|
|
|
|
</ooclass>
|
2009-08-15 14:39:48 +00:00
|
|
|
|
|
|
|
<classsynopsisinfo>
|
|
|
|
<ooclass>
|
|
|
|
<classname>ReflectionProperty</classname>
|
|
|
|
</ooclass>
|
2021-11-23 13:15:35 +00:00
|
|
|
|
2009-08-15 14:39:48 +00:00
|
|
|
<oointerface>
|
|
|
|
<interfacename>Reflector</interfacename>
|
|
|
|
</oointerface>
|
|
|
|
</classsynopsisinfo>
|
2009-12-29 09:42:00 +00:00
|
|
|
<classsynopsisinfo role="comment">&Constants;</classsynopsisinfo>
|
2009-08-15 14:39:48 +00:00
|
|
|
<fieldsynopsis>
|
|
|
|
<modifier>const</modifier>
|
2020-11-02 15:39:04 +00:00
|
|
|
<type>int</type>
|
2009-08-15 14:39:48 +00:00
|
|
|
<varname linkend="reflectionproperty.constants.is-static">ReflectionProperty::IS_STATIC</varname>
|
2021-05-23 12:46:27 +00:00
|
|
|
<initializer>16</initializer>
|
2009-08-15 14:39:48 +00:00
|
|
|
</fieldsynopsis>
|
|
|
|
<fieldsynopsis>
|
|
|
|
<modifier>const</modifier>
|
2020-11-02 15:39:04 +00:00
|
|
|
<type>int</type>
|
2009-08-15 14:39:48 +00:00
|
|
|
<varname linkend="reflectionproperty.constants.is-public">ReflectionProperty::IS_PUBLIC</varname>
|
2021-05-23 12:46:27 +00:00
|
|
|
<initializer>1</initializer>
|
2009-08-15 14:39:48 +00:00
|
|
|
</fieldsynopsis>
|
|
|
|
<fieldsynopsis>
|
|
|
|
<modifier>const</modifier>
|
2020-11-02 15:39:04 +00:00
|
|
|
<type>int</type>
|
2009-08-15 14:39:48 +00:00
|
|
|
<varname linkend="reflectionproperty.constants.is-protected">ReflectionProperty::IS_PROTECTED</varname>
|
2021-05-23 12:46:27 +00:00
|
|
|
<initializer>2</initializer>
|
2009-08-15 14:39:48 +00:00
|
|
|
</fieldsynopsis>
|
|
|
|
<fieldsynopsis>
|
|
|
|
<modifier>const</modifier>
|
2020-11-02 15:39:04 +00:00
|
|
|
<type>int</type>
|
2009-08-15 14:39:48 +00:00
|
|
|
<varname linkend="reflectionproperty.constants.is-private">ReflectionProperty::IS_PRIVATE</varname>
|
2021-05-23 12:46:27 +00:00
|
|
|
<initializer>4</initializer>
|
2009-08-15 14:39:48 +00:00
|
|
|
</fieldsynopsis>
|
|
|
|
|
2009-12-29 09:42:00 +00:00
|
|
|
<classsynopsisinfo role="comment">&Properties;</classsynopsisinfo>
|
2009-08-15 14:39:48 +00:00
|
|
|
<fieldsynopsis>
|
|
|
|
<modifier>public</modifier>
|
2021-11-23 13:15:35 +00:00
|
|
|
<type>string</type>
|
2009-08-15 14:39:48 +00:00
|
|
|
<varname linkend="reflectionproperty.props.name">name</varname>
|
|
|
|
</fieldsynopsis>
|
|
|
|
<fieldsynopsis>
|
|
|
|
<modifier>public</modifier>
|
2021-11-23 13:15:35 +00:00
|
|
|
<type>string</type>
|
2009-08-15 14:39:48 +00:00
|
|
|
<varname linkend="reflectionproperty.props.class">class</varname>
|
|
|
|
</fieldsynopsis>
|
|
|
|
|
2009-12-29 09:42:00 +00:00
|
|
|
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
|
2020-12-30 17:35:49 +00:00
|
|
|
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.reflectionproperty')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[not(@role='procedural')])">
|
2021-11-23 13:15:35 +00:00
|
|
|
<xi:fallback/>
|
|
|
|
</xi:include>
|
|
|
|
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.reflectionproperty')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')])">
|
|
|
|
<xi:fallback/>
|
2020-12-30 17:35:49 +00:00
|
|
|
</xi:include>
|
2009-08-15 14:39:48 +00:00
|
|
|
</classsynopsis>
|
|
|
|
<!-- }}} -->
|
|
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- {{{ ReflectionProperty properties -->
|
|
|
|
<section xml:id="reflectionproperty.props">
|
|
|
|
&reftitle.properties;
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry xml:id="reflectionproperty.props.name">
|
|
|
|
<term><varname>name</varname></term>
|
|
|
|
<listitem>
|
2012-01-03 06:12:37 +00:00
|
|
|
<para>
|
|
|
|
Name of the property. Read-only, throws
|
|
|
|
<classname>ReflectionException</classname> in attempt to write.
|
|
|
|
</para>
|
2009-08-15 14:39:48 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry xml:id="reflectionproperty.props.class">
|
|
|
|
<term><varname>class</varname></term>
|
|
|
|
<listitem>
|
2012-01-03 06:12:37 +00:00
|
|
|
<para>
|
|
|
|
Name of the class where the property is defined. Read-only, throws
|
|
|
|
<classname>ReflectionException</classname> in attempt to write.
|
|
|
|
</para>
|
2009-08-15 14:39:48 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</section>
|
|
|
|
<!-- }}} -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- {{{ ReflectionProperty constants -->
|
|
|
|
<section xml:id="reflectionproperty.constants">
|
|
|
|
&reftitle.constants;
|
2012-01-03 06:12:37 +00:00
|
|
|
<section xml:id="reflectionproperty.constants.modifiers">
|
|
|
|
<title>ReflectionProperty Modifiers</title>
|
2009-08-15 14:39:48 +00:00
|
|
|
<variablelist>
|
|
|
|
|
|
|
|
<varlistentry xml:id="reflectionproperty.constants.is-static">
|
|
|
|
<term><constant>ReflectionProperty::IS_STATIC</constant></term>
|
|
|
|
<listitem>
|
2012-01-03 06:12:37 +00:00
|
|
|
<para>
|
|
|
|
Indicates <link linkend="language.oop5.static">static</link>
|
|
|
|
properties.
|
2021-05-23 12:46:27 +00:00
|
|
|
Prior to PHP 7.4.0, the value was <literal>1</literal>.
|
2012-01-03 06:12:37 +00:00
|
|
|
</para>
|
2009-08-15 14:39:48 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry xml:id="reflectionproperty.constants.is-public">
|
|
|
|
<term><constant>ReflectionProperty::IS_PUBLIC</constant></term>
|
|
|
|
<listitem>
|
2012-01-03 06:12:37 +00:00
|
|
|
<para>
|
|
|
|
Indicates <link linkend="language.oop5.visibility">public</link>
|
|
|
|
properties.
|
2021-05-23 12:46:27 +00:00
|
|
|
Prior to PHP 7.4.0, the value was <literal>256</literal>.
|
2012-01-03 06:12:37 +00:00
|
|
|
</para>
|
2009-08-15 14:39:48 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry xml:id="reflectionproperty.constants.is-protected">
|
|
|
|
<term><constant>ReflectionProperty::IS_PROTECTED</constant></term>
|
|
|
|
<listitem>
|
2012-01-03 06:12:37 +00:00
|
|
|
<para>
|
|
|
|
Indicates <link linkend="language.oop5.visibility">protected</link>
|
|
|
|
properties.
|
2021-05-23 12:46:27 +00:00
|
|
|
Prior to PHP 7.4.0, the value was <literal>512</literal>.
|
2012-01-03 06:12:37 +00:00
|
|
|
</para>
|
2009-08-15 14:39:48 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry xml:id="reflectionproperty.constants.is-private">
|
|
|
|
<term><constant>ReflectionProperty::IS_PRIVATE</constant></term>
|
|
|
|
<listitem>
|
2012-01-03 06:12:37 +00:00
|
|
|
<para>
|
|
|
|
Indicates <link linkend="language.oop5.visibility">private</link>
|
|
|
|
properties.
|
2021-05-23 12:46:27 +00:00
|
|
|
Prior to PHP 7.4.0, the value was <literal>1024</literal>.
|
2012-01-03 06:12:37 +00:00
|
|
|
</para>
|
2009-08-15 14:39:48 +00:00
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
2021-05-23 12:46:27 +00:00
|
|
|
<note>
|
|
|
|
<para>
|
|
|
|
The values of these constants may change between PHP versions.
|
|
|
|
It is recommended to always use the constants
|
|
|
|
and not rely on the values directly.
|
|
|
|
</para>
|
|
|
|
</note>
|
2009-08-15 14:39:48 +00:00
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<!-- }}} -->
|
|
|
|
|
|
|
|
|
|
|
|
</partintro>
|
|
|
|
|
|
|
|
&reference.reflection.entities.reflectionproperty;
|
|
|
|
|
|
|
|
</phpdoc:classref>
|
|
|
|
<!-- 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
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2009-08-15 14:39:48 +00:00
|
|
|
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
|
|
|
|
-->
|