PHP Manualen
forrige |  | næste

# runkit_class_emancipate

(no version information, might be only in CVS)

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

## Beskrivelse

bool runkit_class_emancipate ( string classname )

## Parameterliste

classname

  Name of class to emancipate

## Returneringsværdier

Returnerer `TRUE` ved succes, `FALSE` ved fejl.

## Eksempler

Eksempel 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(); ?>`

Ovenstående eksempel vil udskrive:

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

## Se også

runkit_class_adopt()

forrige | hjem | næste
runkit_class_adopt | op | runkit_constant_add