protected static function create_language($obj) { $language = new language(); $language->setid($obj["id"]); $language->setlang($obj["lang"]); $language->setlanguage($obj["language"]); $language->setfile($obj["file"]); return $language; }