flash.moe/lib/fmlanguage.php

15 lines
368 B
PHP
Raw Normal View History

2020-07-30 00:55:37 +00:00
<?php
class FmLanguage {
private $language_id = -1;
private $language_name = '';
private $language_colour = null;
public static function fromStdClass(stdClass $lang) {
$langRaw = (array)$lang;
$lang = new static;
foreach($langRaw as $prop => $val)
$lang->{$prop} = $val;
return $lang;
}
}