classkit_method_redefine
Opis
bool classkit_method_redefine ( string classname, string methodname, string args, string code [, int flags] )Notatka: Ta funkcja nie może być użyta do manipulowania aktualnie wykonywaną metodą.
| 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 CLASSKIT_ACC_PUBLIC, CLASSKIT_ACC_PROTECTED or CLASSKIT_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
| classkit_method_add() |
| classkit_method_copy() |
| classkit_method_remove() |
| classkit_method_rename() |
| Poprzedni | Spis treści | Następny |
| classkit_method_copy | Początek rozdziału |