37 lines
673 B
PHP
37 lines
673 B
PHP
|
<?php
|
||
|
namespace Application\Handler;
|
||
|
|
||
|
use \Helpers\View as view;
|
||
|
use \Helpers\dbh;
|
||
|
use \Helpers\Table;
|
||
|
use \Files\Files;
|
||
|
|
||
|
class ApplicationHandler implements \Application\Event\ApplicationEvent
|
||
|
{
|
||
|
private $db; //传入PDO对象误
|
||
|
private $config; //全局配置
|
||
|
|
||
|
public $table;
|
||
|
|
||
|
function __construct($db = NULL)
|
||
|
{
|
||
|
if(empty($db))
|
||
|
{
|
||
|
$this->db = \Zend_Registry::get('db');
|
||
|
}else{
|
||
|
$this->db = $db;
|
||
|
}
|
||
|
|
||
|
$this->config = \Zend_Registry::get('config');
|
||
|
$this->table = new Table();
|
||
|
}
|
||
|
|
||
|
public function applicationCheckParam(\Zend_EventManager_Event $e)
|
||
|
{
|
||
|
$data = $e->getParam('data');
|
||
|
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
}
|