當前位置: 首頁>>代碼示例>>PHP>>正文


PHP I_PARAMS函數代碼示例

本文整理匯總了PHP中I_PARAMS函數的典型用法代碼示例。如果您正苦於以下問題:PHP I_PARAMS函數的具體用法?PHP I_PARAMS怎麽用?PHP I_PARAMS使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了I_PARAMS函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: init_args

/**
 * @return object returns the arguments for the page
 */
function init_args()
{
    $args = new stdClass();
    $bPostBack = sizeof($_POST);
    $source = $bPostBack ? "POST" : "GET";
    $iParams = array("doAction" => array($source, tlInputParameter::STRING_N, 0, 50), "id" => array($source, tlInputParameter::INT_N), "keyword" => array($source, tlInputParameter::STRING_N, 0, 100), "notes" => array($source, tlInputParameter::STRING_N));
    $pParams = I_PARAMS($iParams);
    $args = new stdClass();
    $args->doAction = $pParams["doAction"];
    $args->keyword_id = $pParams["id"];
    $args->keyword = $pParams["keyword"];
    $args->notes = $pParams["notes"];
    if ($args->doAction == "edit") {
        $_SESSION['s_keyword_id'] = $args->keyword_id;
    } else {
        if ($args->doAction == "do_update") {
            $args->keyword_id = $_SESSION['s_keyword_id'];
        }
    }
    $args->testproject_id = isset($_SESSION['testprojectID']) ? $_SESSION['testprojectID'] : 0;
    $args->testproject_name = isset($_SESSION['testprojectName']) ? $_SESSION['testprojectName'] : 0;
    // BUGID 4066 - take care of proper escaping when magic_quotes_gpc is enabled
    $_REQUEST = strings_stripSlashes($_REQUEST);
    return $args;
}
開發者ID:CristianOspinaOspina,項目名稱:testlinkpruebas,代碼行數:28,代碼來源:keywordsEdit.php

示例2: init_args

function init_args()
{
    $_REQUEST = strings_stripSlashes($_REQUEST);
    $args = new stdClass();
    $source = sizeof($_POST) ? "POST" : "GET";
    $iParams = array("doAction" => array($source, tlInputParameter::STRING_N, 0, 50), "id" => array($source, tlInputParameter::INT_N), "testcase" => array($source, tlInputParameter::STRING_N, 0, 100), "step" => array($source, tlInputParameter::STRING_N, 0, 50), "product" => array($source, tlInputParameter::STRING_N, 0, 100), "script" => array($source, tlInputParameter::STRING_N, 0, 50), "comment" => array($source, tlInputParameter::STRING_N));
    $pParams = I_PARAMS($iParams);
    $args->doAction = $pParams["doAction"];
    $args->issue_id = $pParams["id"];
    $args->testcase = $pParams["testcase"];
    $args->step = $pParams["step"];
    $args->product = $pParams["product"];
    $args->script = $pParams["script"];
    $args->comment = $pParams["comment"];
    if ($args->doAction == "edit") {
        $_SESSION['issue_id'] = $args->issue_id;
    } else {
        if ($args->doAction == "do_update") {
            $args->issue_id = $_SESSION['issue_id'];
        }
    }
    $args->testproject_id = isset($_SESSION['testprojectID']) ? $_SESSION['testprojectID'] : 0;
    $args->testproject_name = isset($_SESSION['testprojectName']) ? $_SESSION['testprojectName'] : 0;
    $args->currentUser = $_SESSION['currentUser'];
    return $args;
}
開發者ID:mokal,項目名稱:DCN_TestLink,代碼行數:26,代碼來源:issueEdit.php

示例3: init_args

/**
 * 
 *
 */
function init_args(&$dbHandler)
{
    $args = new stdClass();
    $_REQUEST = strings_stripSlashes($_REQUEST);
    $source = sizeof($_POST) ? "POST" : "GET";
    $iParams = array("doAction" => array($source, tlInputParameter::STRING_N, 0, 50), "id" => array($source, tlInputParameter::INT_N), "name" => array($source, tlInputParameter::STRING_N, 0, 100), "notes" => array($source, tlInputParameter::STRING_N));
    $pParams = I_PARAMS($iParams);
    $args->doAction = $pParams["doAction"];
    $args->platform_id = $pParams["id"];
    $args->name = $pParams["name"];
    $args->notes = $pParams["notes"];
    // why we need this logic ????
    if ($args->doAction == "edit") {
        $_SESSION['platform_id'] = $args->platform_id;
    } else {
        if ($args->doAction == "do_update") {
            $args->platform_id = $_SESSION['platform_id'];
        }
    }
    $args->currentUser = $_SESSION['currentUser'];
    $args->tproject_name = '';
    $args->tproject_id = isset($_REQUEST['tproject_id']) ? intval($_REQUEST['tproject_id']) : 0;
    if ($args->tproject_id > 0) {
        $treeMgr = new tree($dbHandler);
        $dummy = $treeMgr->get_node_hierarchy_info($args->tproject_id);
        $args->tproject_name = $dummy['name'];
    }
    return $args;
}
開發者ID:moraesmv,項目名稱:testlink-code,代碼行數:33,代碼來源:platformsEdit.php

示例4: init_args

/**
 * 
 * @return object returns the arguments of the page
 */
function init_args()
{
    $args = new stdClass();
    $iParams = array("exec_id" => array("GET", tlInputParameter::INT_N), "bug_id" => array("GET", tlInputParameter::STRING_N, 0, config_get('field_size')->bug_id));
    $pParams = I_PARAMS($iParams, $args);
    $args->tproject_id = isset($_REQUEST['tproject_id']) ? $_REQUEST['tproject_id'] : $_SESSION['testprojectID'];
    return $args;
}
開發者ID:CristianOspinaOspina,項目名稱:testlinkpruebas,代碼行數:12,代碼來源:bugDelete.php

示例5: init_args

/**
 * 
 * @return object returns the arguments of the page
 */
function init_args()
{
    global $g_bugInterface;
    $iParams = array("exec_id" => array("GET", tlInputParameter::INT_N), "bug_id" => array("GET", tlInputParameter::STRING_N, 0, $g_bugInterface->getBugIDMaxLength()));
    $args = new stdClass();
    $pParams = I_PARAMS($iParams, $args);
    return $args;
}
開發者ID:tamtrong,項目名稱:testlink,代碼行數:12,代碼來源:bugDelete.php

示例6: init_args

/**
 * @return object returns the arguments for the page
 */
function init_args()
{
    $iParams = array("id" => array("GET", tlInputParameter::INT_N), "tableName" => array("GET", tlInputParameter::STRING_N, 0, 250), "title" => array("POST", tlInputParameter::STRING_N, 0, 250));
    $args = new stdClass();
    I_PARAMS($iParams, $args);
    $args->bPostBack = sizeof($_POST);
    return $args;
}
開發者ID:mweyamutsvene,項目名稱:testlink,代碼行數:11,代碼來源:attachmentupload.php

示例7: init_args

/**
 * 
 * @return object returns the arguments of the page
 */
function init_args()
{
    $iParams = array("startDate" => array("POST", tlInputParameter::STRING_N, 0, 10), "endDate" => array("POST", tlInputParameter::STRING_N, 0, 10), "doAction" => array("POST", tlInputParameter::STRING_N, 0, 100), "object_id" => array("REQUEST", tlInputParameter::INT_N), "object_type" => array("REQUEST", tlInputParameter::STRING_N, 0, 15), "logLevel" => array("POST", tlInputParameter::ARRAY_INT), "testers" => array("REQUEST", tlInputParameter::ARRAY_INT));
    $args = new stdClass();
    I_PARAMS($iParams, $args);
    $args->currentUser = $_SESSION['currentUser'];
    return $args;
}
開發者ID:viglesiasce,項目名稱:tl_RC1,代碼行數:12,代碼來源:eventviewer.php

示例8: init_args

function init_args()
{
    $iParams = array("rolename" => array("POST", tlInputParameter::STRING_N, 0, 100), "roleid" => array("REQUEST", tlInputParameter::INT_N), "doAction" => array("REQUEST", tlInputParameter::STRING_N, 0, 100), "notes" => array("POST", tlInputParameter::STRING_N), "grant" => array("POST", tlInputParameter::ARRAY_STRING_N));
    $args = new stdClass();
    $pParams = I_PARAMS($iParams, $args);
    $args->basehref = $_SESSION['basehref'];
    return $args;
}
開發者ID:tamtrong,項目名稱:testlink,代碼行數:8,代碼來源:rolesEdit.php

示例9: init_args

function init_args()
{
    $iParams = array("doAction" => array("GET", tlInputParameter::STRING_N, 0, 50), "export_filename" => array("POST", tlInputParameter::STRING_N, 0, 255), "exportType" => array("POST", tlInputParameter::STRING_N, 0, 255));
    $args = new stdClass();
    $pParams = I_PARAMS($iParams, $args);
    $args->testproject_id = isset($_SESSION['testprojectID']) ? $_SESSION['testprojectID'] : 0;
    $args->testproject_name = $_SESSION['testprojectName'];
    return $args;
}
開發者ID:mweyamutsvene,項目名稱:testlink,代碼行數:9,代碼來源:keywordsExport.php

示例10: init_args

/**
 * 
 * @return object returns the arguments of the page
 */
function init_args()
{
    $iParams = array("startDate" => array("POST", tlInputParameter::STRING_N, 0, 10), "endDate" => array("POST", tlInputParameter::STRING_N, 0, 10), "doAction" => array("POST", tlInputParameter::STRING_N, 0, 100), "object_id" => array("REQUEST", tlInputParameter::INT_N), "object_type" => array("REQUEST", tlInputParameter::STRING_N, 0, 15), "logLevel" => array("POST", tlInputParameter::ARRAY_INT), "testers" => array("REQUEST", tlInputParameter::ARRAY_INT));
    $args = new stdClass();
    I_PARAMS($iParams, $args);
    // take care of proper escaping when magic_quotes_gpc is enabled
    $_REQUEST = strings_stripSlashes($_REQUEST);
    $args->currentUser = $_SESSION['currentUser'];
    return $args;
}
開發者ID:moraesmv,項目名稱:testlink-code,代碼行數:14,代碼來源:eventviewer.php

示例11: init_args

/**
 * 
 * @return object returns the arguments of the page
 */
function init_args()
{
    global $g_bugInterface;
    $iParams = array("exec_id" => array("GET", tlInputParameter::INT_N), "bug_id" => array("GET", tlInputParameter::STRING_N, 0, $g_bugInterface->getBugIDMaxLength()));
    $args = new stdClass();
    $pParams = I_PARAMS($iParams, $args);
    // BUGID 4066 - take care of proper escaping when magic_quotes_gpc is enabled
    $_REQUEST = strings_stripSlashes($_REQUEST);
    return $args;
}
開發者ID:moraesmv,項目名稱:testlink-code,代碼行數:14,代碼來源:bugDelete.php

示例12: init_args

/**
 * @return object returns the arguments for the page
 */
function init_args()
{
    $iParams = array("id" => array("GET", tlInputParameter::INT_N), "tableName" => array("GET", tlInputParameter::STRING_N, 0, 250), "title" => array("POST", tlInputParameter::STRING_N, 0, 250));
    $args = new stdClass();
    I_PARAMS($iParams, $args);
    // BUGID 4066 - take care of proper escaping when magic_quotes_gpc is enabled
    $_REQUEST = strings_stripSlashes($_REQUEST);
    $args->bPostBack = sizeof($_POST);
    return $args;
}
開發者ID:moraesmv,項目名稱:testlink-code,代碼行數:13,代碼來源:attachmentupload.php

示例13: init_args

/**
 * 
 * @return object returns the arguments of the page
 */
function init_args()
{
    $iParams = array("exec_id" => array("GET", tlInputParameter::INT_N), "bug_id" => array("POST", tlInputParameter::STRING_N), "tproject_id" => array("REQUEST", tlInputParameter::INT_N), "tcversion_id" => array("REQUEST", tlInputParameter::INT_N), "user_action" => array("REQUEST", tlInputParameter::STRING_N));
    $args = new stdClass();
    I_PARAMS($iParams, $args);
    if ($args->exec_id) {
        $_SESSION['bugAdd_execID'] = $args->exec_id;
    } else {
        $args->exec_id = isset($_SESSION['bugAdd_execID']) ? $_SESSION['bugAdd_execID'] : 0;
    }
    return $args;
}
開發者ID:mokal,項目名稱:DCN_TestLink,代碼行數:16,代碼來源:bugAdd.php

示例14: init_args

function init_args()
{
    $_REQUEST = strings_stripSlashes($_REQUEST);
    $args = new stdClass();
    $source = sizeof($_POST) ? "POST" : "GET";
    $iParams = array("doAction" => array($source, tlInputParameter::STRING_N, 0, 50));
    $pParams = I_PARAMS($iParams);
    $args->testproject_id = isset($_SESSION['testprojectID']) ? $_SESSION['testprojectID'] : 0;
    $args->testproject_name = isset($_SESSION['testprojectName']) ? $_SESSION['testprojectName'] : 0;
    $args->currentUser = $_SESSION['currentUser'];
    return $args;
}
開發者ID:mokal,項目名稱:DCN_TestLink,代碼行數:12,代碼來源:jobsDetail.php

示例15: init_args

/**
 * 
 * @return object returns the arguments of the page
 */
function init_args($bugInterface)
{
    $iParams = array("exec_id" => array("GET", tlInputParameter::INT_N), "bug_id" => array("POST", tlInputParameter::STRING_N, 0, $bugInterface->getBugIDMaxLength()));
    $args = new stdClass();
    I_PARAMS($iParams, $args);
    if ($args->exec_id) {
        $_SESSION['bugAdd_execID'] = $args->exec_id;
    } else {
        $args->exec_id = isset($_SESSION['bugAdd_execID']) ? $_SESSION['bugAdd_execID'] : 0;
    }
    return $args;
}
開發者ID:viglesiasce,項目名稱:tl_RC1,代碼行數:16,代碼來源:bugAdd.php


注:本文中的I_PARAMS函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。