/** * (non-PHPdoc) * @see EPPager::getFormattedValue() */ public function getFormattedValue($name, $value) { switch ($name) { case 'name': $value = EPCourse::getLinkFor($value); break; case 'org_id': $value = EPOrg::selectRow('name', array('id' => $value))->getLink(); break; case 'term': $value = htmlspecialchars($value); break; case 'lang': $langs = LanguageNames::getNames($this->getLanguage()->getCode()); if (array_key_exists($value, $langs)) { $value = htmlspecialchars($langs[$value]); } else { $value = '<i>' . htmlspecialchars($this->getMsg('invalid-lang')) . '</i>'; } break; case 'start': case 'end': $value = htmlspecialchars($this->getLanguage()->date($value)); break; case '_status': $value = htmlspecialchars(EPCourse::getStatusMessage($this->currentObject->getStatus())); case 'students': $value = htmlspecialchars($this->getLanguage()->formatNum($value)); break; } return $value; }