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


PHP Server::create方法代码示例

本文整理汇总了PHP中Server::create方法的典型用法代码示例。如果您正苦于以下问题:PHP Server::create方法的具体用法?PHP Server::create怎么用?PHP Server::create使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Server的用法示例。


在下文中一共展示了Server::create方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: create

 /**
  * @param array $options
  * @return MemcachedServer
  */
 public static function create(array $options = [])
 {
     return parent::create($options);
 }
开发者ID:hitmeister,项目名称:rapido-cache,代码行数:8,代码来源:MemcachedServer.php

示例2:

<?php

Server::create(WEBROOT . 'api/v1', 'RestApi\\Auth')->setDebugMode(true)->addGetRoute('session', 'getSession')->addPostRoute('session', 'doSession')->addDeleteRoute('session', 'doLogout')->addGetRoute('logout', 'doLogout')->addSubController('search', 'RestApi\\Search')->addPostRoute('data', 'doSearchData')->addPostRoute('method', 'doSearchMethod')->addPostRoute('message', 'doSearchMessage')->addPostRoute('transaction', 'doSearchTransaction')->addPostRoute('sharelink', 'doShareLink')->addPostRoute('share/transaction', 'doSearchShareTransaction')->addPostRoute('share/export/pcap', 'doPcapExportById')->addPostRoute('share/export/text', 'doTextExportById')->addPostRoute('export/pcap', 'doPcapExport')->addPostRoute('export/text', 'doTextExport')->addPostRoute('export/data/pcap', 'doPcapExportData')->addPostRoute('export/data/text', 'doTextExportData')->addGetRoute('data', 'getSearchData')->done()->addSubController('statistic', 'RestApi\\Statistic')->addGetRoute('method', 'getStatisticMethod')->addPostRoute('method', 'doStatisticMethod')->addPostRoute('data', 'doStatisticData')->addGetRoute('data', 'getStatisticData')->addPostRoute('ip', 'doStatisticIP')->addGetRoute('ip', 'getStatisticIP')->addPostRoute('useragent', 'doStatisticUserAgent')->addGetRoute('useragent', 'getStatisticUserAgent')->done()->addSubController('alarm', 'RestApi\\Alarm')->addGetRoute('config/get', 'getAlarmConfig')->addPostRoute('config/new', 'doNewAlarmConfig')->addPostRoute('config/edit', 'doEditAlarmConfig')->addDeleteRoute('config/delete/([0-9]+)', 'deleteAlarmConfig')->addGetRoute('list/get', 'getAlarmList')->addPostRoute('list/edit', 'doEditAlarmList')->addGetRoute('method', 'getAlarmMethod')->addPostRoute('method', 'doAlarmMethod')->addPostRoute('ip', 'doAlarmIP')->addGetRoute('ip', 'getAlarmIP')->addPostRoute('useragent', 'doAlarmUserAgent')->addGetRoute('useragent', 'getAlarmUserAgent')->done()->addSubController('report', 'RestApi\\Report')->addPostRoute('rtcp', 'doRTCPReport')->addPostRoute('log', 'doLogReport')->addPostRoute('quality/([A-Za-z]+)', 'doQualityReport')->done()->addSubController('admin', 'RestApi\\Admin')->addGetRoute('user/get', 'getUser')->addGetRoute('user/get/([0-9A-Za-z_])', 'getUserById')->addPostRoute('user/new', 'doNewUser')->addPostRoute('user/edit', 'doEditUser')->addDeleteRoute('user/delete/([0-9]+)', 'deleteUser')->addGetRoute('alias/get', 'getAlias')->addGetRoute('user/get/([0-9A-Za-z_])', 'getAliasById')->addPostRoute('alias/new', 'doNewAlias')->addPostRoute('alias/edit', 'doEditAlias')->addDeleteRoute('user/delete/([0-9]+)', 'deleteAlias')->addGetRoute('node/get', 'getNode')->addGetRoute('node/get/([0-9A-Za-z_])', 'getNodeById')->addPostRoute('node/new', 'doNewNode')->addPostRoute('node/edit', 'doEditNode')->addDeleteRoute('node/delete/([0-9]+)', 'deleteNode')->addGetRoute('useragent', 'getAlarmUserAgent')->done()->addSubController('profile', 'RestApi\\Profile')->addPostRoute('store/([0-9A-Za-z_-]+)', 'postIdProfile')->addPostRoute('store', 'postProfile')->addGetRoute('store/([0-9A-Za-z_-]+)', 'getIdProfile')->addGetRoute('store', 'getProfile')->addDeleteRoute('store/([0-9A-Z_-]+)', 'deleteIdProfile')->addDeleteRoute('store', 'deleteProfile')->done()->addSubController('dashboard', 'RestApi\\Dashboard')->addPostRoute('store/([0-9A-Z_-]+)', 'postIdDashboard')->addPostRoute('store', 'postDashboard')->addPostRoute('upload', 'uploadDashboard')->addGetRoute('store/1)', 'newDashboard')->addPostRoute('menu/([0-9A-Z_-]+)', 'postMenuDashboard')->addGetRoute('node', 'getNode')->addGetRoute('store/([0-9A-Za-z_-]+)', 'getIdDashboard')->addGetRoute('store', 'getDashboard')->addDeleteRoute('store/([0-9A-Z_-]+)', 'deleteIdDashboard')->addDeleteRoute('store', 'deleteDashboard')->done()->run();
开发者ID:thomasquintana,项目名称:homer-api,代码行数:3,代码来源:doc.php

示例3: Server

}
$server = new Server();
switch ($server->get_action) {
    case 'login':
        $server->login();
        $loginPage = new HtmlEntities();
        echo $loginPage->getLoginPage();
        break;
    case 'logout':
        $server->logout();
        break;
    case 'save':
        $server->save();
        break;
    case 'isloggedin':
        $server->isLoggedIn();
        break;
    case 'duplicate':
        $server->duplicate();
        break;
    case 'mkdir':
        $server->mkdir();
        break;
    case 'create':
        $server->create();
        break;
    default:
        $errorPage = new HtmlEntities();
        echo $errorPage->getErrorPage();
        break;
}
开发者ID:2braincells2go,项目名称:inplaceeditor,代码行数:31,代码来源:server.php


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