function getSetJournalSectionId($journalSpec, $sectionSpec, $restrictJournalId = null)
{
$journal =& $this->journalDao->getByPath($journalSpec);
if (!isset($journal) || isset($restrictJournalId) && $journal->getId() != $restrictJournalId) {
return array(0, 0);
}
$journalId = $journal->getId();
$sectionId = null;
if (isset($sectionSpec)) {
$section = $this->sectionDao->getByAbbrev($sectionSpec, $journal->getId());
if (isset($section)) {
$sectionId = $section->getId();
} else {
$sectionId = 0;
}
}
return array($journalId, $sectionId);
}