当前位置: 首页>>代码示例>>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;未经允许,请勿转载。