/** * Gets the topic to which the reported post belongs to. * @return \Mittwald\Typo3Forum\Domain\Model\User\FrontendUser Frontend User */ public function getUser() { if ($this->feuser instanceof \TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy) { $this->feuser->_loadRealInstance(); } if ($this->feuser === NULL) { $this->feuser = new \Mittwald\Typo3Forum\Domain\Model\User\AnonymousFrontendUser(); } return $this->feuser; }
/** * Get the User who is related with this notification * @return FrontendUser */ public function getFeuser() { if ($this->feuser instanceof LazyLoadingProxy) { $this->feuser->_loadRealInstance(); } if ($this->feuser === NULL) { $this->feuser = new AnonymousFrontendUser(); } return $this->feuser; }
/** * Get the other User who is involved in this message * @return FrontendUser The other User who is involved in this message */ public function getOpponent() { if ($this->opponent instanceof LazyLoadingProxy) { $this->opponent->_loadRealInstance(); } if ($this->opponent === NULL) { $this->opponent = new AnonymousFrontendUser(); } return $this->opponent; }
/** * Gets the post author. * @return FrontendUser author */ public function getAuthor() { if ($this->author instanceof LazyLoadingProxy) { $this->author->_loadRealInstance(); } if ($this->author === NULL) { $this->author = new AnonymousFrontendUser(); if ($this->authorName) { $this->author->setUsername($this->authorName); } } return $this->author; }