示例#1
0
文件: Field.php 项目: iHunt101/phlite
 static function allTypes()
 {
     if (static::$more_types) {
         foreach (static::$more_types as $group => $c) {
             static::$types[$group] = call_user_func($c);
         }
         static::$more_types = array();
     }
     return static::$types;
 }
示例#2
0
 static function allTypes()
 {
     if (static::$more_types) {
         foreach (static::$more_types as $group => $entries) {
             foreach ($entries as $c) {
                 static::$types[$group] = array_merge(static::$types[$group] ?: array(), call_user_func($c));
             }
         }
         static::$more_types = array();
     }
     return static::$types;
 }