function setSpecToSectionId($setSpec, $journalId = null)
{
$tmpArray = preg_split('/:/', $setSpec);
if (count($tmpArray) == 1) {
list($journalSpec) = $tmpArray;
$journalSpec = urldecode($journalSpec);
$sectionSpec = null;
} else {
if (count($tmpArray) == 2) {
list($journalSpec, $sectionSpec) = $tmpArray;
$journalSpec = urldecode($journalSpec);
$sectionSpec = urldecode($sectionSpec);
} else {
return array(0, 0);
}
}
return $this->dao->getSetJournalSectionId($journalSpec, $sectionSpec, $this->journalId);
}