Name = $name; $this->Label = sprintf( '[%s] %s', $this->Name, Locale::getDisplayLanguage($this->Name) ); } public static function __compare(LanguageDTO $l1, LanguageDTO $l2) { return strcmp($l1->Name, $l2->Name); } } ?>