private static function _getObject(Resultset $rs, Project $project) { $ret = new Project_Build($project); $ret->setId($rs->getId()); $ret->setDate($rs->getDate()); $ret->setDuration($rs->getDuration()); $ret->setLabel($rs->getLabel()); $ret->setDescription($rs->getDescription()); $ret->setOutput($rs->getOutput()); $ret->setReleaseFile($rs->getReleaseFile()); $specialTasks = @unserialize($rs->getSpecialTasks()); if ($specialTasks === false) { $specialTasks = array(); } $ret->setSpecialTasks($specialTasks); $ret->setStatus($rs->getStatus()); $ret->setScmRevision($rs->getScmRevision()); // // Get all extras related to this build // //$ret->setPtrPhpDepend(PhpDepend::getById($ret, $GLOBALS['user'], Access::READ)); $ret->resetSignature(); return $ret; }