classkit_import

(no version information, might be only in CVS)

classkit_import -- Import new class method definitions from a file

Popis

array classkit_import ( string filename )

Poznámka: T�to funkcia sa nemo�e pou�i� na manipul�ciu moment�lne be�iacej (alebo zre�azenej) met�dy.

Varovanie

T�to funkcia je EXPERIMENT�LNA. Spr�vanie tejto funkcie, n�zov tejto funkcie a hoci�o in� zdokumentovan� o tejto funkcii sa m�e zmeni� bez pov�imnutia v bud�com vydan� PHP. Pou��vajte t�to funkcii na svoje vlastn� riziko.

Parametre

filename

The filename of the class method definitions to import

Vrátené hodnoty

Associative array of imported methods

Príklady

Príklad 1. classkit_import() example

<?php
// file: newclass.php
class Example {
    function
foo() {
        return
"bar!\n";
    }
}
?>
<?php
// requires newclass.php (see above)
class Example {
    function
foo() {
        return
"foo!\n";
    }
}

$e = new Example();

// output original
echo $e->foo();

// import replacement method
classkit_import('newclass.php');

// output imported
echo $e->foo();

?>

V�stup pr�kladu uveden�ho vy�ie bude:

foo!
bar!

Tiež pozri

classkit_method_add()
classkit_method_copy()