Issue::getJournalId PHP Method

getJournalId() public method

get journal id
public getJournalId ( ) : integer
return integer
    function getJournalId()
    {
        return $this->getData('journalId');
    }

Usage Example

Esempio n. 1
0
 /**
  * Parse out the issue style sheet and store it in an issue.
  * @param DOMElement $node
  * @param Issue $issue
  */
 function parseIssueStyle($node, $issue)
 {
     for ($n = $node->firstChild; $n !== null; $n = $n->nextSibling) {
         if (is_a($n, 'DOMElement')) {
             switch ($n->tagName) {
                 case 'style_file_name':
                     $issue->setStyleFileName($n->textContent);
                     break;
                 case 'original_style_file_name':
                     $issue->setOriginalStyleFileName($n->textContent);
                     break;
                 case 'embed':
                     import('classes.file.PublicFileManager');
                     $publicFileManager = new PublicFileManager();
                     $filePath = $publicFileManager->getContextFilesPath(ASSOC_TYPE_JOURNAL, $issue->getJournalId()) . '/' . $issue->getStyleFileName();
                     file_put_contents($filePath, base64_decode($n->textContent));
                     break;
             }
         }
     }
 }