public function mergeReporterInfo($arrResult) { //TODO remove comment code $arrArticles = global_common::getArrayColumn($arrResult, global_mapping::ArticleID); $arrArticleInfo = global_common::getArticleInfo($arrArticles, $this->_objConnection); //echo 'before get comment bad'; $arrCommentBad = global_common::getArrayColumn($arrResult, global_mapping::CommentID); $arrCommentBadInfo = global_common::getCommentBadInfo($arrCommentBad, $this->_objConnection); //echo 'after get comment bad'; //print_r($arrUserInfo); $count = count($arrResult); for ($i = 0; $i < $count; $i++) { //print_r($arrResult[$i]); $arrResult[$i][global_mapping::ArticleID] = $arrArticleInfo[$arrResult[$i][global_mapping::ArticleID]]; $arrResult[$i][global_mapping::CommentBad] = $arrCommentBadInfo[$arrResult[$i][global_mapping::CommentID]]; } //print_r($arrResult); return $arrResult; }