Moderators: jmacgreg, michael, jheckman, barbarah, btbell, bdgregg, asmecher
function getGalleysCountNum($Id)
{
$result =& $this->retrieve(
'SELECT views
FROM article_galleys
WHERE label= "PDF" AND article_id = ?',$Id
);
return $result;
}function findGalleyVisitCount($Id)
{
$publishedArticleDao =& DAORegistry::getDAO('PublishedArticleDAO');
$count = $publishedArticleDao->getGalleysCountNum($Id);
return $count;
}{$article->findGalleyVisitCount($article->getId())}Users browsing this forum: No registered users and 2 guests