/** * Method used to get the details of a round robin entry. * * @access public * @param integer $prr_id The round robin entry ID * @return array The round robin entry details */ function getDetails($prr_id) { $stmt = "SELECT\n *\n FROM\n " . APP_DEFAULT_DB . "." . APP_TABLE_PREFIX . "project_round_robin\n WHERE\n prr_id=" . Misc::escapeInteger($prr_id); $res = $GLOBALS["db_api"]->dbh->getRow($stmt, DB_FETCHMODE_ASSOC); if (PEAR::isError($res)) { Error_Handler::logError(array($res->getMessage(), $res->getDebugInfo()), __FILE__, __LINE__); return ""; } else { // get all of the user associations here as well $res['users'] = array_keys(Round_Robin::getAssociatedUsers($res['prr_id'])); return $res; } }