27 lines
535 B
PHP
27 lines
535 B
PHP
<?php
|
|
namespace mt;
|
|
|
|
use phpcommon;
|
|
|
|
class Language {
|
|
|
|
public static function get($index)
|
|
{
|
|
foreach (self::getMetaList() as $meta){
|
|
if ($meta['info'] == $index){
|
|
return $meta;
|
|
}
|
|
}
|
|
return array();
|
|
}
|
|
|
|
protected static function getMetaList()
|
|
{
|
|
if (!self::$metaList) {
|
|
self::$metaList = getMetaTable('language@language.php');
|
|
}
|
|
return self::$metaList;
|
|
}
|
|
|
|
protected static $metaList;
|
|
} |