ArticleDAO::getJournalId PHP 메소드

getJournalId() 공개 메소드

Get the ID of the journal an article is in.
public getJournalId ( $articleId ) : integer
$articleId int
리턴 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;
    }