本文整理汇总了PHP中getNormalParam函数的典型用法代码示例。如果您正苦于以下问题:PHP getNormalParam函数的具体用法?PHP getNormalParam怎么用?PHP getNormalParam使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了getNormalParam函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: analyzeChoices
function analyzeChoices()
{
#----------------------------------------------------------------------
global $chosenEventId, $chosenCompetitionId, $chosenShow, $chosenAnything;
$chosenEventId = getNormalParam('eventId');
$chosenCompetitionId = getNormalParam('competitionId');
$chosenShow = getBooleanParam('show');
$chosenAnything = $chosenEventId || $chosenCompetitionId;
}
示例2: analyzeChoices
function analyzeChoices()
{
#----------------------------------------------------------------------
global $chosenEventId, $chosenRegionId, $chosenPatternHtml, $chosenPatternMysql;
$chosenEventId = getNormalParam('eventId');
$chosenRegionId = getNormalParam('regionId');
$chosenPatternHtml = getHtmlParam('pattern');
$chosenPatternMysql = getMysqlParam('pattern');
}
示例3: analyzeChoices
function analyzeChoices()
{
#----------------------------------------------------------------------
global $chosenCompetitionId, $chosenShow, $competitionCondition, $competitionDescription;
$chosenCompetitionId = getNormalParam('competitionId');
$chosenShow = getBooleanParam('show');
$competitionCondition = competitionCondition();
$competitionDescription = $chosenCompetitionId ? $chosenCompetitionId : "all competitions";
}
示例4: analyzeChoices
function analyzeChoices () {
#----------------------------------------------------------------------
global $chosenUpload, $chosenConfirm, $chosenNamesFile, $chosenFilename;
$chosenUpload = getBooleanParam( 'upload' );
$chosenConfirm = getBooleanParam( 'confirm' );
$chosenNamesFile = getNormalParam( 'namesFile' );
$chosenFilename = getNormalParam( 'filename' );
}
示例5: analyzeChoices
function analyzeChoices()
{
#----------------------------------------------------------------------
global $chosenRegionId;
global $chosenSingle, $chosenAverage;
$chosenRegionId = getNormalParam('regionId');
$chosenSingle = getBooleanParam('single');
$chosenAverage = getBooleanParam('average');
if (!$chosenAverage) {
$chosenSingle = true;
}
}
示例6: analyzeChoices
function analyzeChoices()
{
#----------------------------------------------------------------------
global $chosenEventId, $chosenCompetitionId, $chosenWhat, $chosenShow, $chosenWhich, $competitionCondition;
$chosenEventId = getNormalParam('eventId');
$chosenCompetitionId = getNormalParam('competitionId');
$chosenWhat = getNormalParam('what');
$chosenShow = getBooleanParam('show');
$chosenWhich = "";
$chosenWhich .= $chosenEventId ? $chosenEventId : "all events";
$chosenWhich .= " in " . ($chosenCompetitionId ? $chosenCompetitionId : "all competitions");
$competitionCondition = eventCondition() . competitionCondition();
}
示例7: analyzeChoices
function analyzeChoices()
{
#----------------------------------------------------------------------
global $chosenYears, $chosenRegionId, $chosenOrder;
$chosenYears = getNormalParam('years');
$chosenRegionId = getNormalParam('regionId');
$chosenOrder = getNormalParam('order');
if (getNormalParam('filter') == '') {
$chosenYears = "only " . wcaDate('Y');
}
if (!preg_match('/^(date|submission)$/', $chosenOrder)) {
$chosenOrder = 'submission';
}
}
示例8: analyzeChoices
function analyzeChoices()
{
#----------------------------------------------------------------------
global $chosenEventId, $chosenRegionId, $chosenYears, $chosenShow;
global $chosenSingle, $chosenAverage;
$chosenEventId = getNormalParamDefault('eventId', '333');
$chosenRegionId = getNormalParam('regionId');
$chosenYears = getNormalParam('years');
$chosenShow = getNormalParamDefault('show', '100 Persons');
$chosenSingle = getBooleanParam('single');
$chosenAverage = getBooleanParam('average');
if (!$chosenAverage) {
$chosenSingle = true;
}
}
示例9: analyzeChoices
function analyzeChoices () {
#----------------------------------------------------------------------
global $chosenId, $chosenConfirm, $chosenName, $chosenNameHtml, $chosenCountryId, $chosenGender, $chosenDay, $chosenMonth, $chosenYear, $chosenUpdate, $chosenFix;
$chosenConfirm = getBooleanParam( 'confirm' );
$chosenUpdate = getBooleanParam( 'update' );
$chosenFix = getBooleanParam( 'fix' );
$chosenId = getNormalParam ( 'id' );
$chosenName = getMysqlParam ( 'name' );
$chosenNameHtml = getHtmlParam ( 'name' );
$chosenCountryId = getMysqlParam ( 'countryId' );
$chosenGender = getNormalParam ( 'gender' );
$chosenDay = getNormalParam ( 'day' );
$chosenMonth = getNormalParam ( 'month' );
$chosenYear = getNormalParam ( 'year' );
}
示例10: analyzeChoices
function analyzeChoices()
{
#----------------------------------------------------------------------
global $chosenRegionId, $chosenEventId, $chosenYears;
global $chosenMixed, $chosenSlim, $chosenSeparate, $chosenHistory, $chosenMixHist;
$chosenRegionId = getNormalParam('regionId');
$chosenEventId = getNormalParam('eventId');
$chosenYears = getNormalParam('years');
$chosenMixed = getBooleanParam('mixed');
$chosenSlim = getBooleanParam('slim');
$chosenSeparate = getBooleanParam('separate');
$chosenHistory = getBooleanParam('history');
$chosenMixHist = getBooleanParam('mixHist');
if (!$chosenSlim && !$chosenSeparate && !$chosenHistory && !$chosenMixHist) {
$chosenMixed = true;
}
}
示例11: analyzeChoices
function analyzeChoices()
{
#----------------------------------------------------------------------
global $chosenEventId, $chosenRegionId, $chosenYears, $chosenPatternHtml, $chosenPatternMysql, $chosenList, $chosenMap;
$chosenEventId = getNormalParam('eventId');
$chosenRegionId = getNormalParam('regionId');
$chosenPatternHtml = getHtmlParam('pattern');
$chosenPatternMysql = getMysqlParam('pattern');
$chosenYears = getNormalParam('years');
$chosenList = getBooleanParam('list');
$chosenMap = getBooleanParam('map');
if (!$chosenList && !$chosenMap) {
$chosenYears = "current";
}
if (!$chosenMap) {
$chosenList = true;
}
}
示例12: analyzeChoices
function analyzeChoices () {
#----------------------------------------------------------------------
global $chosenCompetitionId;
global $chosenByPerson, $chosenAllResults, $chosenTop3, $chosenWinners;
global $chosenForm, $chosenList;
$chosenCompetitionId = getNormalParam( 'competitionId' );
$chosenByPerson = getBooleanParam( 'byPerson' );
$chosenAllResults = getBooleanParam( 'allResults' );
$chosenTop3 = getBooleanParam( 'top3' );
$chosenWinners = getBooleanParam( 'winners' );
if( !$chosenAllResults && !$chosenTop3 && !$chosenByPerson )
$chosenWinners = true;
$chosenForm = getBooleanParam( 'form' );
$chosenList = getBooleanParam( 'list' );
if( !$chosenForm ) $chosenList = true;
}
示例13: analyzeChoices
function analyzeChoices()
{
#----------------------------------------------------------------------
global $chosenType, $chosenStatus, $chosenRegionId, $chosenOrder;
$chosenType = getNormalParam('type');
$chosenStatus = getNormalParam('status');
$chosenRegionId = getNormalParam('regionId');
$chosenOrder = getNormalParam('order');
if (!preg_match('/^(article|report|multimedia)$/', $chosenType)) {
$chosenType = '';
}
if (!preg_match('/^(date|submission)$/', $chosenOrder)) {
$chosenOrder = 'submission';
}
if (!preg_match('/^(pending|accepted)$/', $chosenStatus)) {
// Do we need a "refused" status ?
$chosenStatus = 'pending';
}
}
示例14: analyzeChoices
function analyzeChoices()
{
#----------------------------------------------------------------------
global $chosenId, $chosenConfirm, $chosenName, $chosenNameHtml, $chosenCountryId, $chosenGender, $chosenDay, $chosenMonth, $chosenYear, $chosenUpdate, $chosenFix;
$chosenConfirm = getBooleanParam('confirm');
$chosenUpdate = getBooleanParam('update');
$chosenFix = getBooleanParam('fix');
$chosenId = getNormalParam('id');
// Gah, this is awful. We can't call getNormalParam because it refuses to
// return anything if the parameter has a quote in it. We don't want to call
// getMysqlParam, as we're using pdo_query throughout this file, and we don't
// want double escaping to occur.
$chosenName = getRawParamThisShouldBeAnException('name');
$chosenNameHtml = getHtmlParam('name');
$chosenCountryId = getNormalParam('countryId');
$chosenGender = getNormalParam('gender');
$chosenDay = getNormalParam('day');
$chosenMonth = getNormalParam('month');
$chosenYear = getNormalParam('year');
}
示例15: analyzeChoices
function analyzeChoices()
{
#----------------------------------------------------------------------
global $chosenCompetitionId, $chosenType, $chosenText, $chosenUri;
global $chosenSubmitterName, $chosenSubmitterEmail, $chosenSubmitterComment;
global $chosenTextHtml, $chosenUriHtml, $chosenSubmitterNameHtml, $chosenSubmitterEmailHtml, $chosenSubmitterCommentHtml;
global $chosenRecaptchaChallenge, $chosenRecaptchaResponse;
$chosenCompetitionId = getNormalParam('competitionId');
$chosenType = getNormalParam('type');
$chosenText = getMysqlParam('text');
$chosenUri = getMysqlParam('uri');
$chosenSubmitterName = getMysqlParam('submitterName');
$chosenSubmitterEmail = getMysqlParam('submitterEmail');
$chosenSubmitterComment = getMysqlParam('submitterComment');
$chosenTextHtml = getHtmlParam('text');
$chosenUriHtml = getHtmlParam('uri');
$chosenSubmitterNameHtml = getHtmlParam('submitterName');
$chosenSubmitterEmailHtml = getHtmlParam('submitterEmail');
$chosenSubmitterCommentHtml = getHtmlParam('submitterComment');
$chosenRecaptchaChallenge = getRawParamThisShouldBeAnException('recaptcha_challenge_field');
$chosenRecaptchaResponse = getRawParamThisShouldBeAnException('recaptcha_response_field');
}