Query: runkit_class_adopt
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
RUNKIT_CLASS_ADOPT(3) 1 RUNKIT_CLASS_ADOPT(3) runkit_class_adopt - Convert a base class to an inherited class, add ancestral methods when appropriateSYNOPSISbool runkit_class_adopt (string $classname, string $parentname)DESCRIPTIONPARAMETERSo $classname - Name of class to be adopted o $parentname - Parent class which child class is extendingRETURN VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #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 OutputSEE ALSOrunkit_class_emancipate(3). PHP Documentation Group RUNKIT_CLASS_ADOPT(3)
Related Man Pages |
---|
runkit_method_add(3) - php |
stream_wrapper_register(3) - php |
class_alias(3) - php |
classkit_method_rename(3) - php |
runkit_method_copy(3) - php |
Similar Topics in the Unix Linux Community |
---|
Simple rules of the UNIX.COM forums: |
User Guide: Posting in the Emergency Forum |
Forum Video Tutorial: How to Use Code Tags |
UNIX.COM 2017 Year End Summary |