From 2b5232a1193356e4bb9ad2d9234735890cd32eaa Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 10 Jun 2016 11:50:34 +0200 Subject: * DTO for language selection --- app/frontend/dto/LanguageDTO.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 app/frontend/dto/LanguageDTO.php (limited to 'app/frontend/dto/LanguageDTO.php') diff --git a/app/frontend/dto/LanguageDTO.php b/app/frontend/dto/LanguageDTO.php new file mode 100644 index 0000000..fa39d03 --- /dev/null +++ b/app/frontend/dto/LanguageDTO.php @@ -0,0 +1,19 @@ +Name = $name; + $this->Label = Locale::getDisplayLanguage($this->Name); + } + + public static function __compare(LanguageDTO $l1, LanguageDTO $l2) { + return strcmp($l1->Name, $l2->Name); + } + +} + +?> -- cgit v1.2.3