|
1
5
用一个 decorator :
|
|
2
1
这是不可能的,您必须更改函数才能实现这一点。但你可能需要一个 observer pattern observer pattern on zend.com (也是) |
|
|
3
1
|
|
|
4
1
目前PHP不支持这种开箱即用的方式,尽管您可以使用扩展。下面是一篇解释一些选项的帖子: http://sebastian-bergmann.de/archives/573-Current-State-of-AOP-for-PHP.html |
|
|
5
1
|