*/ class MemberRightFormatter { /** * Maps rights to a string describing in a human format the rights. * * @param Right $right * @return string */ public static function format(MemberRight $right) { return $right->getName(); } public static function getSummaryBox(MemberRight $right) { $name = $right->getName(); $id = $right->getIdentifier(); $content = "
"; $content.= Localization::memberRightName . ": $name"; $content.= "
\n"; $content.= Localization::memberRightId . ": $id"; $content.= "
"; return $content; } } ?>