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


PHP SC::getParam方法代码示例

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


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

示例1: invitations_new

 public function invitations_new()
 {
     SC::loginRequired();
     global $current_user;
     $vars = array("invite_list" => SC::getParam("invite_list", true), "boardid" => $_GET["boardid"]);
     $cs = array("title" => "Invite others to this board", "head" => SCPartial::renderToString("shared/head"), "util_links" => SCPartial::renderToString("board/newthread_util_links", $vars), "content" => SCPartial::renderToString("board/invitations_new", $vars));
     SCLayout::render("main", $vars, $cs);
 }
开发者ID:jeffreytierney,项目名称:switchcomb,代码行数:8,代码来源:boards.php

示例2: _new

 public function _new()
 {
     SC::loginRequired();
     global $current_user;
     $type = $_GET["type"] or $type = "text";
     $parent = new SCBoard($_GET["boardid"]);
     $route_params = array("boardid" => $parent->boardid);
     $vars = array("subject" => SC::getParam("subject", true), "text" => SC::getParam("text", true), "type" => $type, "parent" => $parent, "controller" => "threads", "route_params" => $route_params, "action" => SCRoutes::set("threads", "create", $route_params));
     switch ($_GET["__content_type"]) {
         case "json":
             $output = array("content" => SCPartial::renderToString("message/new", $vars));
             echo SC::jsonify($output);
             break;
         case "html":
         default:
             $cs = array("title" => "Create Thread", "head" => SCPartial::renderToString("shared/head"), "util_links" => SCPartial::renderToString("board/newthread_util_links", $vars), "content" => SCPartial::renderToString("message/new", $vars));
             SCLayout::render("main", $vars, $cs);
     }
 }
开发者ID:jeffreytierney,项目名称:switchcomb,代码行数:19,代码来源:threads.php

示例3: _new

 public function _new()
 {
     $vars = array("username" => SC::getParam("username", true), "email" => SC::getParam("email", true), "displayname" => SC::getParam("displayname", true));
     $cs = array("title" => "Register", "content" => SCPartial::renderToString("user/new", $vars));
     SCLayout::render("main", $vars, $cs);
 }
开发者ID:jeffreytierney,项目名称:switchcomb,代码行数:6,代码来源:users.php


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