runkit
PHP Manual

runkit_class_emancipate

(PECL runkit:0.7-0.9)

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

Опи�ание

bool runkit_class_emancipate ( string $classname )

Спи�ок параметров

classname

Name of class to emancipate

Возвращаемые значени�

Возвращает TRUE в �лучае у�пешного завершени� или FALSE в �лучае возникновени� ошибки.

Примеры

Example#1 A runkit_class_emancipate() example

<?php
class myParent {
  function 
parentFunc () {
    echo 
"Parent Function Output\n";
  }
}
class 
myChild extends myParent {
}

myChild::parentFunc();
runkit_class_emancipate('myChild');
myChild::parentFunc();
?>

Результат выполнени� данного примера:

Parent Function Output Fatal error: Call to undefined function: parentFunc() in example.php on line 12

Смотрите также


runkit
PHP Manual