コード例 #1
0
ファイル: Lang.php プロジェクト: gitter-badger/luya
 public static function getQuery()
 {
     if (self::$_langInstanceQuery === null) {
         self::$_langInstanceQuery = self::find()->asArray()->indexBy('short_code')->all();
     }
     return self::$_langInstanceQuery;
 }
コード例 #2
0
ファイル: Lang.php プロジェクト: efueger/luya
 public static function getQuery()
 {
     if (self::$_langInstanceQuery === null) {
         self::$_langInstanceQuery = Lang::find()->asArray()->all();
     }
     return self::$_langInstanceQuery;
 }