本文整理汇总了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);
}
示例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);
}
}
示例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);
}