To list an article (or articles) using MXAE-API.
//one article
$program = new mxProgram;
$program->getBy(array('id' => $programCodeOrID, 'code' => array($programCodeOrID, '=', 'OR')));
$article = $program->getArticle($recId);
//articles (more than one)
$arcs = $prog->getArticles(array('category' => $fVal, 'orderby' => '
foreach($arcs as $theArcs) {
echo "{$theArcs->nationality}";
echo "{$theArcs->dateofbirth->format("d-m-Y")}"; //date format
}
//total articles
$totalArticle = $program->getArticleCount();
Comments
Post a Comment