PHP
PHP教程 | PHP论坛 | PHP中文手册

Search for

XIII. Classkit 函数

简介

本类函数允许在运行时动态操作 PHP 的类。

注意: 本扩展已被 runkit 取代,不局限于操作类,而且能操作函数。

安装

» PECL 扩展未绑定于 PHP 中。

安装此 PECL 扩展库的信息可在手册中标题为 PECL 扩展库安装的一章中找到。 更多信息如新版本,下载,源文件,维护者信息以及更新日志等可以在这里找到:» http://pecl.php.net/package/classkit

可以从 » PHP 下载页面或者 » http://snaps.php.net/ 下载此 PECL 扩展的 DLL 文件。

运行时配置

本扩展模块在 php.ini 中未定义任何配置选项。

资源类型

本扩展模块未定义任何资源类型。

预定义常量

以下常量由本扩展模块定义,因此只有在本扩展模块被编译到 PHP 中,或者在运行时被动态加载后才有效。

CLASSKIT_ACC_PRIVATE (int)
将方法标记为 private
CLASSKIT_ACC_PROTECTED (int)
将方法标记为 protected
CLASSKIT_ACC_PUBLIC (int)
将方法标记为 public

目录

classkit_import — Import new class method definitions from a file
classkit_method_add — Dynamically adds a new method to a given class
classkit_method_copy — Copies a method from class to another
classkit_method_redefine — Dynamically changes the code of the given method
classkit_method_remove — Dynamically removes the given method
classkit_method_rename — Dynamically changes the name of the given method


User Contributed Notes Classkit 函数
There are no user contributed notes for this page.

 
PHP教程 | PHP论坛 | PHP中文手册