/** * Returns a folder which is related to the postbox and has the given ID * * @param string $ID The folder's ID * * @return PostboxFolder */ public function getPostboxFolderByID($ID) { $Folder = $this->ORM->loadObjectByID('PostboxFolder', $ID); if ($Folder === null || !$this->ORM->isComposed('User2PostboxFolder', $Folder, $this->User)) { return null; } return $Folder; }
/** * Returns the current instance of the guestbook. * * @return GenericDomainObject The current instance of the guestbook. * * @author Christian Achatz * @version * Version 0.1, 16.05.2009<br /> */ private function getCurrentGuestbook() { /* @var $model GuestbookModel */ $model = $this->getServiceObject(GuestbookModel::class); return $this->orm->loadObjectByID('Guestbook', $model->getGuestbookId()); }