westdc-zf1/application/module/Order/Handler/ApplicationHandler.php

37 lines
661 B
PHP
Raw Permalink Normal View History

<?php
namespace Order\Handler;
use \Helpers\View as view;
use \Helpers\dbh;
use \Helpers\Table;
use \Files\Files;
class ApplicationHandler implements \Order\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;
}
}