當前位置: 首頁>>代碼示例>>PHP>>正文


PHP PluginEngine::sendMessage方法代碼示例

本文整理匯總了PHP中PluginEngine::sendMessage方法的典型用法代碼示例。如果您正苦於以下問題:PHP PluginEngine::sendMessage方法的具體用法?PHP PluginEngine::sendMessage怎麽用?PHP PluginEngine::sendMessage使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在PluginEngine的用法示例。


在下文中一共展示了PluginEngine::sendMessage方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

                </a>
                <br>

                <!-- Like -->
                <span class="likes" id="like_<?php 
echo $post['topic_id'];
?>
">
                    <?php 
echo $this->render_partial('index/_like', array('topic_id' => $post['topic_id']));
?>
                </span>
            </dd>

            <? foreach (PluginEngine::sendMessage('PostingApplet', 'getHTML', $post['name_raw'], $post['content_raw'],
                    PluginEngine::getLink('coreforum/index/index/' . $post['topic_id'] .'#'. $post['topic_id']),
                    $post['user_id']) as $applet_data) : ?>
            <dd>
                <?php 
echo $applet_data;
?>
            </dd>
            <? endforeach ?>
        </dl>
        
        <? if ($is_new): ?>
        <span class="new_posting">
            <?php 
echo Icon::create('forum+new', 'attention', ['title' => _("Dieser Beitrag ist seit Ihrem letzten Besuch hinzugekommen.")])->asImg(16);
?>
        </span>
開發者ID:ratbird,項目名稱:hope,代碼行數:31,代碼來源:_post.php

示例2: setupRoutes

 /**
  * Searches and registers available routes.
  */
 private function setupRoutes()
 {
     // A bit ugly, I confess
     static $was_setup = false;
     if ($was_setup) {
         return;
     }
     $was_setup = true;
     // Register default routes
     $routes = words('Blubber Contacts Course Discovery Events Files Forum Messages News Schedule Semester Studip User UserConfig Wiki');
     foreach ($routes as $route) {
         require_once "app/routes/{$route}.php";
         $class = "\\RESTAPI\\Routes\\{$route}";
         $this->registerRoutes(new $class());
     }
     // Register plugin routes
     $router = $this;
     array_walk(array_flatten(\PluginEngine::sendMessage('RESTAPIPlugin', 'getRouteMaps')), function ($route) use($router) {
         $router->registerRoutes($route);
     });
 }
開發者ID:ratbird,項目名稱:hope,代碼行數:24,代碼來源:Router.php

示例3: Seminar_User

require_once 'vendor/studip_ws/studip_ws.php';
require_once 'vendor/studip_ws/soap_dispatcher.php';
# requiring phpxmlrpc
require_once 'vendor/phpxmlrpc/xmlrpc.inc';
require_once 'vendor/phpxmlrpc/xmlrpcs.inc';
require_once 'vendor/phpxmlrpc/docxmlrpcs.inc';
require_once 'vendor/phpxmlrpc/jsonrpc.inc';
require_once 'vendor/phpxmlrpc/jsonrpcs.inc';
# requiring xmlrpc_dispatcher
require_once 'vendor/studip_ws/studip_ws.php';
require_once 'vendor/studip_ws/xmlrpc_dispatcher.php';
# requiring jsonrpc_dispatcher
require_once 'vendor/studip_ws/studip_ws.php';
require_once 'vendor/studip_ws/jsonrpc_dispatcher.php';
# requiring all the webservices
require_once 'lib/webservices/services/access_controlled_webservice.php';
require_once 'lib/webservices/services/user_webservice.php';
require_once 'lib/webservices/services/session_webservice.php';
require_once 'lib/webservices/services/contentmodule_webservice.php';
require_once 'lib/webservices/services/seminar_webservice.php';
require_once 'lib/webservices/services/lecture_tree_webservice.php';
require_once 'lib/webservices/services/institute_webservice.php';
// set up dummy user environment (but no session)
$user = new Seminar_User('nobody');
$auth = new Seminar_Default_Auth();
$perm = new Seminar_Perm();
$AVAILABLE_SERVICES = array('UserService', 'SessionService', 'SeminarService', 'ContentmoduleService', 'LectureTreeService', 'InstituteService');
$AVAILABLE_SERVICES = array_merge($AVAILABLE_SERVICES, array_flatten(PluginEngine::sendMessage("WebServicePlugin", "getWebServices")));
if (!get_config('WEBSERVICES_ENABLE')) {
    throw new Exception("Webservices not available");
}
開發者ID:ratbird,項目名稱:hope,代碼行數:31,代碼來源:webservices_bootstrap.php


注:本文中的PluginEngine::sendMessage方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。