runkit_method_redefine
Opis
bool runkit_method_redefine ( string classname, string methodname, string args, string code [, int flags] )Notatka: Ta funkcja nie może być użyta do manipulacji aktualnie działającej (lub powiązanej) metody. This function cannot
| Ostrzeżenie |
Ta funkcja jest w stadium EKSPERYMENTALNYM. Oznacza to, że zachowanie funkcji, jej nazwa, w zasadzie wszystko udokumentowane tutaj może zostać zmienione w przyszłych wersjach PHP bez wcześniejszego uprzedzenia. Używaj tej funkcji na własne ryzyko. |
Parametry
classnameThe class in which to redefine the method
methodnameThe name of the method to redefine
argsComma-delimited list of arguments for the redefined method
codeThe new code to be evaluated when
methodnameis calledflagsThe redefined method can be RUNKIT_ACC_PUBLIC, RUNKIT_ACC_PROTECTED or RUNKIT_ACC_PRIVATE
Notatka: This parameter is only used as of PHP 5, because, prior to this, all methods were public.
Przykłady
Patrz także
| runkit_method_add() |
| runkit_method_copy() |
| runkit_method_remove() |
| runkit_method_rename() |
| runkit_function_redefine() |
| Poprzedni | Spis treści | Następny |
| runkit_method_copy | Początek rozdziału |