本文整理汇总了PHP中Hooks::doAction方法的典型用法代码示例。如果您正苦于以下问题:PHP Hooks::doAction方法的具体用法?PHP Hooks::doAction怎么用?PHP Hooks::doAction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Hooks
的用法示例。
在下文中一共展示了Hooks::doAction方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dispatch
public static function dispatch()
{
self::defaults();
\Hooks::doAction("router.finish");
self::statusRoutes();
self::$router->dispatch(null, null, false);
}
示例2: ser
}
}
?>
<html>
<head>
<?php
\Assets::css("apps-grid", "/admin/css/apps-grid.css");
\Assets::css("lobby-store", "/admin/css/lobby-store.css");
\Assets::js("lobby-store", "/admin/js/lobby-store.js");
\Hooks::doAction("admin.head.begin");
\Response::head($page_title);
?>
</head>
<body>
<?php
\Hooks::doAction("admin.body.begin");
?>
<div id="workspace">
<div class="contents">
<?php
if ($appID !== null) {
if ($app === false) {
echo ser("404 - App Not Found", "App was not found in Lobby Store.");
} else {
$appImage = $app['image'] != "" ? $app['image'] : L_URL . "/includes/lib/lobby/image/blank.png";
$c = $app['category'];
$sc = $app['sub_category'];
?>
<h1>
<?php
echo Lobby::l("/admin/lobby-store.php?id={$app['id']}", $app['name']);
示例3: foreach
} else {
$html .= $this->makePanelItem($item['text'], $item['href'], $id, "parent");
}
}
}
echo $html;
?>
</ul>
<ul class="right">
<?php
$html = "";
foreach ($panelRightItems as $id => $item) {
if (count($item['subItems']) !== 0) {
$html .= $this->makePanelTree($id, $item);
} else {
if ($item['html'] != null) {
$html .= $this->makePanelItem($item['html'], "htmlContent", $id, "parent");
} else {
$html .= $this->makePanelItem($item['text'], $item['href'], $id, "parent");
}
}
}
echo $html;
$this->addNotify();
?>
</ul>
<?php
\Hooks::doAction("panel.end");
?>
</nav>
示例4:
<head>
<?php
if (\Lobby::status("lobby.admin")) {
\Hooks::doAction("admin.head.begin");
} else {
\Hooks::doAction("head.begin");
}
\Response::head();
if (\Lobby::status("lobby.admin")) {
\Hooks::doAction("admin.head.end");
} else {
\Hooks::doAction("head.end");
}
?>
</head>
<body>
<?php
if (\Lobby::status("lobby.admin")) {
\Hooks::doAction("admin.body.begin");
} else {
\Hooks::doAction("body.begin");
}
?>
<div id="workspace">
<?php
echo \Response::getPageContent();
?>
</div>
</body>
</html>
示例5: array
$loader->setClassParameters("Lobby\\Apps", array(APPS_DIR, APPS_URL));
$loader->setClassParameters("Lobby\\UI\\Themes", array(THEMES_DIR, THEMES_URL));
$loader->processLoadedClasses();
/**
* Set constants & Load Modules
*/
require_once L_DIR . "/includes/extra.php";
/**
* These classes are not loaded by default by Composer
*/
$loader->loadClass("Lobby\\Require");
} catch (\Exception $e) {
\Lobby::log(array("fatal", $e->getMessage()));
}
/**
* Run not on CDN files serving
*/
if (!\Lobby::status("lobby.assets-serve")) {
/**
* Init the page setup
*/
require_once L_DIR . "/includes/init.php";
/**
* Is Lobby Installed ?
*/
if (!\Lobby::$installed && !\Lobby::status("lobby.install")) {
\Response::redirect("/admin/install.php");
}
}
\Hooks::doAction("init");
示例6: array
require "../load.php";
$install_step = Request::get('step');
?>
<!DOCTYPE html>
<html>
<head>
<?php
\Lobby\UI\Themes::loadTheme();
\Hooks::doAction("head.begin");
/**
* Install Head
*/
\Assets::css("install", "/admin/css/install.css");
\Assets::js("install", "/admin/js/install.js");
\Response::head("Install");
\Hooks::doAction("head.end");
?>
</head>
<body id="workspace">
<div class="contents" id="<?php
$steps = array("1", "2", "3", "4");
if (in_array($install_step, $steps)) {
echo "step{$install_step}";
}
?>
">
<h1 style="text-align: center;">
<?php
echo \Lobby::l(L_URL, "Install Lobby");
?>
</h1>