Ojs\JournalBundle\Entity\Journal::getTitle PHP Method

getTitle() public method

Get title
public getTitle ( ) : string
return string
    public function getTitle()
    {
        return $this->getLogicalFieldTranslation('title', false);
    }

Usage Example

コード例 #1
0
 /**
  * @param Journal $journal
  * @return bool|null
  */
 private function normalizeLastIssuesByJournal(Journal $journal)
 {
     $this->io->newLine();
     $this->io->text('normalizing last issue for ' . $journal->getTitle());
     $this->io->progressAdvance();
     $findLastIssue = $this->em->getRepository('OjsJournalBundle:Issue')->findOneBy(['journal' => $journal, 'lastIssue' => true]);
     if ($findLastIssue) {
         return true;
     }
     /** @var Issue|null $getLogicalLastIssue */
     $getLogicalLastIssue = $this->em->getRepository('OjsJournalBundle:Issue')->getLastIssueByJournal($journal);
     if ($getLogicalLastIssue == null) {
         return null;
     }
     $getLogicalLastIssue->setLastIssue(true);
     $this->em->flush();
 }
All Usage Examples Of Ojs\JournalBundle\Entity\Journal::getTitle
Journal