PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

runkit_constant_add> <runkit_class_adopt
Last updated: Fri, 10 Oct 2008

view this page in

runkit_class_emancipate

(PECL runkit:0.7-0.9)

runkit_class_emancipate Convertit une classe héritée à une classe de base, supprime toute méthode pour qui la portée est ancestrale

Description

bool runkit_class_emancipate ( string $classname )

Liste de paramètres

classname

Nom de la classe à émanciper

Valeurs de retour

Cette fonction retourne TRUE en cas de succès, FALSE en cas d'échec.

Exemples

Exemple #1 Exemple avec runkit_class_emancipate()

<?php
class myParent {
  function 
parentFunc () {
    echo 
"Sortie Fonction Parente\n";
  }
}
class 
myChild extends myParent {
}

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

L'exemple ci-dessus va afficher :

Sortie Fonction Parente
Fatal error: Call to undefined function:  parentFunc() in example.php on line 12



add a note add a note User Contributed Notes
runkit_class_emancipate
There are no user contributed notes for this page.

runkit_constant_add> <runkit_class_adopt
Last updated: Fri, 10 Oct 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites