コード例 #1
0
ファイル: service.php プロジェクト: ycduan/UESTC_Software2015
/**
 * Get CEG base record, each cluster with a description.
 * @param type $idArr
 * @return type
 */
function getCegBaseByIdArrWithHalfNum($idArr, $num)
{
    $result = array();
    $clusterArr = getMgsPureCegWithHalfNum($idArr, $num);
    $cegBase = queryAllCegBase();
    foreach ($cegBase as $row) {
        if (in_array($row['access_num'], $clusterArr)) {
            array_push($result, $row);
        }
    }
    return $result;
}
コード例 #2
0
ファイル: keggServ.php プロジェクト: uestc-software/mccap
/**
 * Get KO number of clusters.
 * @param type $clusterArr
 * @return type
 */
function getKOByCegArr($clusterArr)
{
    $result = array();
    $cegBase = queryAllCegBase();
    $str = '---';
    foreach ($cegBase as $row) {
        $koId = $row['koid'];
        if (in_array($row['access_num'], $clusterArr) && strcmp($koId, $str)) {
            array_push($result, $koId);
        }
    }
    return $result;
}
コード例 #3
0
/**
 * Get all record of ceg base table.
 * @return array
 */
function getAllCegBase()
{
    return queryAllCegBase();
}