public static function clearInstance() { self::$instance = null; }
/** * Get the Group (the project) of this File * * @return Object{Group} the group the file belongs to */ function getGroup() { if (empty($this->group)) { $pm = ProjectManager::instance(); // retrieve the release the file belongs to $release_id = $this->getReleaseID(); $release_fact = FRSReleaseFactory::instance(); $release = $release_fact->getFRSReleaseFromDb($release_id, null, null, FRSReleaseDao::INCLUDE_DELETED); $group_id = $release->getGroupID(); $this->group = $pm->getProject($group_id); } return $this->group; }