示例#1
0
文件: PreLoad.php 项目: JudonH/writer
 /**
  * 在该函数中添加需要预处理的项目
  */
 private static function _pre_init()
 {
     //可以在这里注销$_GET等变量
     App_Plugin::add_action(App_Key::$TAG_SERVICE_EXECUTE, array('Driver_Input', 'init'));
     App_Plugin::add_action(App_Key::$TAG_SERVICE_EXECUTE, array('Driver_Cookie', 'init'));
     //App_Plugin::add_action(App_Key::$TAG_SERVICE_EXECUTE, array('Driver_Session', 'init'));
     App_Plugin::add_action(App_Key::$TAG_SERVICE_EXECUTE, array('Driver_Limit', 'init'));
 }
示例#2
0
文件: File.php 项目: JudonH/writer
 function __construct()
 {
     parent::__construct();
     $this->_file_path = $this->_config['log_file_path'];
     App_Plugin::add_action(App_Key::$TAG_SERVICE_STOP, array($this, 'writer'));
 }
示例#3
0
 /**
  * 必须要实现的方法, 应用加载时执行
  * @see Plugin_Interface::setup()
  */
 public function setup()
 {
     App_Plugin::add_action(App_Key::$TAG_SERVICE_START, array($this, 'func_service_start'));
     App_Plugin::add_action(App_Key::$TAG_SERVICE_STOP, array($this, 'func_service_stop'));
 }