/** * 撤销行为插件绑定 */ function unbind() { foreach ($this->_dynamic_methods as $method_name) { $this->_meta->removeDynamicMethod($method_name); } foreach ($this->_static_methods as $method_name) { $this->_meta->removeStaticMethod($method_name); } foreach ($this->_event_handlers as $arr) { list($event_type, $callback) = $arr; $this->_meta->removeEventHandler($event_type, $callback); } foreach ($this->_getters as $prop_name) { $this->_meta->unsetPropGetter($prop_name); } foreach ($this->_setters as $prop_name) { $this->_meta->unsetPropSetter($prop_name); } }