当前位置: 首页>>代码示例>>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;未经允许,请勿转载。