mirror of
https://git.beihong.wang/wangbeihong/blog-source.git
synced 2026-04-23 17:33:04 +08:00
initial
This commit is contained in:
35
var/Widget/Users/Author.php
Executable file
35
var/Widget/Users/Author.php
Executable file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
|
||||
namespace Widget\Users;
|
||||
|
||||
use Typecho\Db\Exception;
|
||||
use Widget\Base\Users;
|
||||
|
||||
if (!defined('__TYPECHO_ROOT_DIR__')) {
|
||||
exit;
|
||||
}
|
||||
|
||||
/**
|
||||
* 相关内容组件(根据标签关联)
|
||||
*
|
||||
* @author qining
|
||||
* @category typecho
|
||||
* @package Widget
|
||||
* @copyright Copyright (c) 2008 Typecho team (http://www.typecho.org)
|
||||
* @license GNU General Public License 2.0
|
||||
*/
|
||||
class Author extends Users
|
||||
{
|
||||
/**
|
||||
* 执行函数,初始化数据
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
public function execute()
|
||||
{
|
||||
if (isset($this->parameter->uid)) {
|
||||
$this->db->fetchRow($this->select()
|
||||
->where('uid = ?', $this->parameter->uid), [$this, 'push']);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user