/** * This is method getTopArticleByType. For show article type list page * * @param mixed $listTypeID This is a description * @param mixed $limitRow This is a description * @param mixed $selectField This is a description * @return mixed This is the return value description * */ public function getTopArticleByType($listTypeID, $limitRow, $selectField = '*', $whereClause = '', $orderBy = '') { $arrTypeID = global_common::splitString($listTypeID); $strQueryIN = global_common::convertToQueryIN($arrTypeID); $arrSummary = global_common::getContentInfoByIDs($this->_objConnection, $strQueryIN, global_common::ARTICLE_TYPE); //print_r($arrSummary); if ($arrSummary == null) { global_common::writeLog('Can not get content from table summary'); return null; } $strSQL = Model_Article::getSQLSelectByTableName($arrSummary, -1, $limitRow, $selectField, $whereClause, $orderBy); $arrResult = self::getArticlesFromDB($strSQL); //print_r($arrResult); return $arrResult; }