php man page for runkit_class_emancipate

Query: runkit_class_emancipate

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

RUNKIT_CLASS_EMANCIPATE(3)						 1						RUNKIT_CLASS_EMANCIPATE(3)

runkit_class_emancipate - Convert an inherited class to a base class, removes any method whose scope is ancestral

SYNOPSIS
bool runkit_class_emancipate (string $classname)
DESCRIPTION
PARAMETERS
o $classname - Name of class to emancipate
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1 A runkit_class_emancipate(3) example <?php class myParent { function parentFunc () { echo "Parent Function Output "; } } class myChild extends myParent { } myChild::parentFunc(); runkit_class_emancipate('myChild'); myChild::parentFunc(); ?> The above example will output: Parent Function Output Fatal error: Call to undefined function: parentFunc() in example.php on line 12
SEE ALSO
runkit_class_adopt(3). PHP Documentation Group RUNKIT_CLASS_EMANCIPATE(3)
Related Man Pages
get_class(3) - php
spl_autoload_register(3) - php
runkit_method_add(3) - php
class_exists(3) - php
classkit_method_redefine(3) - php
Similar Topics in the Unix Linux Community
Forum Video Tutorial: How to Use Code Tags
UNIX.COM 2017 Year End Summary
Coming Soon: Upgrade Forum Software (Dec 31 - Jan 1)
Please Welcome Don Cragun as Lead Moderator
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun