/** * 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; }