ArticleDAO::getJournalId PHP Method

getJournalId() public method

Get the ID of the journal an article is in.
public getJournalId ( $articleId ) : integer
$articleId int
return integer
    function getJournalId($articleId)
    {
        $result = $this->retrieve('SELECT context_id FROM submissions WHERE submission_id = ?', (int) $articleId);
        $returner = isset($result->fields[0]) ? $result->fields[0] : false;
        $result->Close();
        return $returner;
    }