adminbloguserslistview.class.php
来自「一个用PHP编写的」· PHP 代码 · 共 32 行
PHP
32 行
<?php lt_include( PLOG_CLASS_PATH."class/view/admin/admintemplatedview.class.php" ); lt_include( PLOG_CLASS_PATH."class/dao/users.class.php" ); /** * \ingroup View * @private * * shows a list with the users in the blog */ class AdminBlogUsersListView extends AdminTemplatedView { function AdminBlogUsersListView( $blogInfo ) { $this->AdminTemplatedView( $blogInfo, "blogusers" ); } function render() { // get the users of the blog $users = new Users(); $blogUsers = $users->getBlogUsers( $this->_blogInfo->getId(), false ); $this->setValue( "blogusers", $blogUsers ); // no need to do anything else, so... transfer control to the parent view! parent::render(); } } ?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?