/** * 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; }
/** * 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; }
/** * Get all record of ceg base table. * @return array */ function getAllCegBase() { return queryAllCegBase(); }