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


PHP Queue::setUid方法代码示例

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


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

示例1: load_view

function load_view($id)
{
    global $cp;
    $objQueue = new Queue();
    $objQueue->setUid($id);
    if ($objQueue->load()) {
        $cp->set_data(nl2br($objQueue->getBbs('description')));
    } else {
        $cp->set_data('item not found!');
    }
    return;
}
开发者ID:window98lsq,项目名称:autoweb,代码行数:12,代码来源:cpaint.queue.php

示例2: saveQueue

function saveQueue($testbed, $suite)
{
    $simple = new Queue();
    $_GET['build'] = $_REQUEST['versionBuild'];
    $_GET['suite'] = $suite;
    $_GET['command'] = 1;
    $_GET['testbed'] = $testbed;
    $_GET['dbResults'] = "on";
    $_GET['description'] = "Automatically queue'd from Nightly Build Server";
    $_GET['userName'] = "nightly";
    $_GET['tftpIP'] = 1;
    $simple->setAuto($_GET);
    $simple->setUid('');
    $simple->load();
    $simple->add();
    sleep(6);
}
开发者ID:window98lsq,项目名称:autoweb,代码行数:17,代码来源:simpleAdd_GREN.php

示例3: saveQueue

function saveQueue($testbed, $suite)
{
    $linkID = mysql_connect('10.65.102.22', 'root', '123456');
    if (!$linkID) {
        die('Could not connect: ' . mysql_error());
    }
    $db = mysql_select_db('autoSmoke', $linkID);
    $queryPrefix = "";
    if ($_GET['prefix'] != "") {
        $queryPrefix = "prefix = '" . $_GET['prefix'] . "' and ";
    }
    $threeMinAgo = date('Y-m-d H:i:s', mktime(date("H"), date("i") - 2, date("s"), date("n"), date("j"), date("Y")));
    $sql = "select * " . "from " . "queue " . "where " . "userName='nightly' and " . "command regexp '1' and " . "description='Automatically queue\\'d from Nightly Build Server' and " . $queryPrefix . "testbed regexp '" . $testbed . "' and " . "build regexp '" . $_GET['versionBuild'] . "' and " . "suite = 'DD:" . $suite . "' and " . "status = 2 and '" . $threeMinAgo . "' <= creationDate";
    $rs = mysql_query($sql);
    if (!mysql_num_rows($rs)) {
        $simple = new Queue();
        if ($_GET['prefix'] == "C_" || $_GET['prefix'] == "T_") {
            $_GET['prefix'] = $_GET[prefix];
        }
        $_GET['build'] = $_GET['versionBuild'];
        $_GET['suite'] = $suite;
        $_GET['command'] = 1;
        $_GET['testbed'] = $testbed;
        $_GET['dbResults'] = "on";
        $_GET['description'] = "Automatically queue'd from Nightly Build Server";
        $_GET['userName'] = "nightly";
        $_GET['tftpIP'] = 1;
        //   	if (!preg_match ("/^5.0/", $_GET['versionBuild']) && !preg_match ("/^6.0/", $_GET['versionBuild']))
        //		$_GET['loadAlcatel'] = 'on';
        $simple->setAuto($_GET);
        $simple->setUid('');
        $simple->load();
        $simple->add();
        sleep(1);
    }
    mysql_close($linkID);
}
开发者ID:window98lsq,项目名称:autoweb,代码行数:37,代码来源:universalAdd.php

示例4: Queue

            } else {
                $hasErrors = 2;
            }
        }
    }
    if ($_POST['editQualys']) {
        $simple = new Queue();
        $_GET['build'] = $_POST['build'] ? $_POST['build'] : $_POST['build2'];
        $_GET['suite'] = "D";
        $_GET['command'] = 1;
        $_GET['testbed'] = "autoqualys";
        $_GET['dbResults'] = "on";
        $_GET['userName'] = "nightly";
        $_GET['tftpIP'] = 1;
        $simple->setAuto($_GET);
        $simple->setUid('');
        $simple->load();
        $simple->add();
    }
}
// --- LOAD Queue -----------------------------------------------
$objItemList = new Queue();
$objItemList->addWhere('((status != 5 and DATE_SUB(CURDATE(),INTERVAL 3 DAY) <= creationDate) or ' . '(status = 5 and DATE_SUB(CURDATE(),INTERVAL 3 DAY) <= creationDate))');
if ($_REQUEST['sTestbed']) {
    $pUserName = get_magic_quotes_gpc() ? stripslashes($_REQUEST['sTestbed']) : $_REQUEST['sTestbed'];
    $objItemList->addWhere('testbed = \'' . addslashes($pUserName) . '\'');
}
if ($_REQUEST['sSuite']) {
    $pSuite = $_REQUEST['sSuite'];
    $objItemList->addWhere('suite = \'' . $pSuite . '\'');
}
开发者ID:window98lsq,项目名称:autoweb,代码行数:31,代码来源:index.php


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