mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
get_parent_class: update proto, document behavior when passed a string
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@66679 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
571c200602
commit
80b5936d4a
1 changed files with 12 additions and 7 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.30 $ -->
|
||||
<!-- $Revision: 1.31 $ -->
|
||||
<reference id="ref.classobj">
|
||||
<title>Class/Object Functions</title>
|
||||
<titleabbrev>Classes/Objects</titleabbrev>
|
||||
|
@ -616,23 +616,28 @@ print_r(get_object_vars($p1));
|
|||
<refentry id="function.get-parent-class">
|
||||
<refnamediv>
|
||||
<refname>get_parent_class</refname>
|
||||
<refpurpose>Returns the name of the parent class of an object</refpurpose>
|
||||
<refpurpose>Retrieves the parent class name for object or class</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<funcsynopsis>
|
||||
<funcprototype>
|
||||
<funcdef>string <function>get_parent_class</function></funcdef>
|
||||
<paramdef>object <parameter>obj</parameter></paramdef>
|
||||
<paramdef>mixed <parameter>obj</parameter></paramdef>
|
||||
</funcprototype>
|
||||
</funcsynopsis>
|
||||
<para>
|
||||
This function returns the name of the parent class to
|
||||
the class of which the object <parameter>obj</parameter>
|
||||
is an instance.
|
||||
If <parameter>obj</parameter> is an object, returns the name of the
|
||||
parent class of the class of which <parameter>obj</parameter> is an
|
||||
instance.
|
||||
</para>
|
||||
<para>
|
||||
If <parameter>obj</parameter> is a string, returns the name of the parent
|
||||
class of the class with that name. This functionality was added in PHP
|
||||
4.0.5.
|
||||
</para>
|
||||
<simpara>
|
||||
See also <function>get_class</function>,
|
||||
See also <function>get_class</function> and
|
||||
<function>is_subclass_of</function>
|
||||
</simpara>
|
||||
</refsect1>
|
||||
|
|
Loading…
Reference in a new issue