11111
runkit_class_adopt
След.
(no version information, might be only in CVS)runkit_class_adopt -- Convert a base class to an inherited class, add ancestral methods when appropriate
-
classname - Name of class to be adopted parentname - Parent class which child class is extending
- Name of class to be adopted
parentname - Parent class which child class is extending
- Parent class which child class is extending
- Возвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки.
Пример 1. A runkit_class_adopt() example
<?phpclass myParent { function parentFunc() { echo "Parent Function Output\n"; }}class myChild {}runkit_class_adopt('myChild','myParent');myChild::parentFunc();?>
Результат выполнения данного примера:
Parent Function Output
Пред.
Начало
Runkit_Sandbox
Уровень выше
runkit_class_emancipate 22222