43 lines
826 B
PHP
43 lines
826 B
PHP
|
<?php
|
||
|
namespace Westdc\Visual\Handle;
|
||
|
|
||
|
use \Helpers\View as view;
|
||
|
use \Helpers\dbh;
|
||
|
use \Helpers\Table;
|
||
|
|
||
|
//事件中存在的操作
|
||
|
class VisualHandler
|
||
|
{
|
||
|
private $db; //传入PDO对象误
|
||
|
private $config; //全局配置
|
||
|
|
||
|
public $table;
|
||
|
public $tbl_maillog = ""; //邮件日志表
|
||
|
|
||
|
function __construct()
|
||
|
{
|
||
|
$this->db = \Zend_Registry::get('db');
|
||
|
|
||
|
|
||
|
$this->config = \Zend_Registry::get('config');
|
||
|
$this->table = new Table();
|
||
|
}
|
||
|
|
||
|
public function deleteAuthor(\Zend_EventManager_Event $e)
|
||
|
{
|
||
|
$id = $e->getParam('id');
|
||
|
|
||
|
$ref = new Reference();
|
||
|
|
||
|
return $ref->deleteReferenceAuthor($id);
|
||
|
}
|
||
|
|
||
|
public function deleteTag(\Zend_EventManager_Event $e)
|
||
|
{
|
||
|
$id = $e->getParam('id');
|
||
|
|
||
|
$ref = new Reference();
|
||
|
|
||
|
return $ref->deleteReferenceTag($id);
|
||
|
}
|
||
|
}
|