runkit_class_adopt(3) php man page | unix.com

Man Page: runkit_class_adopt

Operating Environment: php

Section: 3

RUNKIT_CLASS_ADOPT(3)							 1						     RUNKIT_CLASS_ADOPT(3)

runkit_class_adopt - Convert a base class to an inherited class, add ancestral methods when appropriate

SYNOPSIS
bool runkit_class_adopt (string $classname, string $parentname)
DESCRIPTION
PARAMETERS
o $classname - Name of class to be adopted o $parentname - Parent class which child class is extending
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1 A runkit_class_adopt(3) example <?php class myParent { function parentFunc() { echo "Parent Function Output "; } } class myChild { } runkit_class_adopt('myChild','myParent'); myChild::parentFunc(); ?> The above example will output: Parent Function Output
SEE ALSO
runkit_class_emancipate(3). PHP Documentation Group RUNKIT_CLASS_ADOPT(3)
Related Man Pages
get_parent_class(3) - php
classkit_method_add(3) - php
class_alias(3) - php
is_a(3) - php
runkit_method_remove(3) - php
Similar Topics in the Unix Linux Community
Forum Video Tutorial: How to Use Code Tags
New Code Tags (Syntax Highlighting)
Please Welcome Ravinder Singh to the Moderation Team
Denial Of Service Attack Update
Please Welcome Nicki Paul to the Moderator Team!