| // +---------------------------------------------------------------------------+ // $Id$ class NavigationOutput { /** * Generates collection of radio buttons. * * @access public * @param array $array hash of radio values * @return string $radioString list of radio objects * @see PermissionsMgr() */ function generatePermsRadioList($array, $id = 'id') { SGL::logMessage(null, PEAR_LOG_DEBUG); $radioString = ''; foreach ($array as $key => $valueObj) { $yes = ($valueObj->isAllowed) ? ' checked' : ''; $no = (!$valueObj->isAllowed) ? ' checked' : ''; $radioString .= "
\n\t\t"; $radioString .= "\n\t\t"; $radioString .= "" . SGL_Output::translate('Yes') . "\n\t\t"; $radioString .= "" . SGL_Output::translate('No') . "\n\t\t"; $radioString .= "
\n"; } return $radioString; } } ?>