예제 #1
0
파일: Demo.php 프로젝트: lunnlew/Norma_Code
 /**
  * 供插件管理器主动加载的入口
  */
 public function __construct()
 {
     //你想自动挂接的钩子列表
     \Norma\Hook::register('hello', array(&$this, 'sayHello'));
     \Norma\Hook::register('bye', 'Norma\\Plugin\\Demo::sayBye');
     \Norma\Hook::register('hi', 'Norma\\Plugin\\Demo::sayHi', array('demo'));
 }
예제 #2
0
파일: demo.php 프로젝트: lunnlew/Norma_Code
 public function __construct()
 {
     \Norma\Hook::register('demo_app_plugin', array(&$this, 'demo_app_plugin'));
 }
예제 #3
0
 public function __construct()
 {
     \Norma\Hook::register('build_app', array(&$this, 'build_app'));
 }