本文整理匯總了PHP中Board::toHTML方法的典型用法代碼示例。如果您正苦於以下問題:PHP Board::toHTML方法的具體用法?PHP Board::toHTML怎麽用?PHP Board::toHTML使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Board
的用法示例。
在下文中一共展示了Board::toHTML方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: __construct
public function __construct()
{
/// Execute stuff automagically
new Admin();
if (isset($_GET['j'])) {
switch ($_GET['j']) {
case "Pag":
$m = new Menu();
$p = new Board();
$ap = new AdminPanel();
echo "<div id='menu' class='menu'>\n";
$m->toHTML();
echo "</div>\n";
echo "<div class='panel'>\n";
$p->toHTML();
echo "</div>\n";
echo "<div class='image_panel hidden'>\n";
echo "</div>\n";
if (CurrentUser::$admin) {
echo "<div class='infos'>\n";
$ap->toHTML();
echo "</div>\n";
}
break;
case "Log":
$p = new LoginPage();
$p->toHTML();
break;
case "Reg":
$p = new RegisterPage();
$p->toHTML();
break;
case "Pan":
if (is_file(CurrentUser::$path)) {
$b = new ImagePanel(CurrentUser::$path);
$b->toHTML();
} else {
$b = new Board(CurrentUser::$path);
$b->toHTML();
}
break;
case "Men":
$m = new Menu();
$m->toHTML();
break;
case "Pan":
$f = new AdminPanel();
$f->toHTML();
break;
case "Inf":
$f = new Infos();
$f->toHTML();
break;
case "Jud":
$j = new Judge(CurrentUser::$path);
$j->toHTML();
break;
case "Acc":
$f = new Group();
$f->toHTML();
break;
case "Comm":
$f = new Comments(CurrentUser::$path);
$f->toHTML();
break;
default:
break;
}
}
}