当前位置: 首页>>代码示例>>PHP>>正文


PHP Hooks::doAction方法代码示例

本文整理汇总了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);
 }
开发者ID:LobbyOS,项目名称:server,代码行数:7,代码来源:Router.php

示例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']);
开发者ID:LobbyOS,项目名称:server,代码行数:31,代码来源:lobby-store.php

示例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>
开发者ID:LobbyOS,项目名称:server,代码行数:30,代码来源:load.admin.php

示例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>
开发者ID:LobbyOS,项目名称:server,代码行数:30,代码来源:view.page.php

示例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");
开发者ID:LobbyOS,项目名称:server,代码行数:30,代码来源:load.php

示例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>
开发者ID:LobbyOS,项目名称:server,代码行数:31,代码来源:install.php


注:本文中的Hooks::doAction方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。