Esempio n. 1
0
 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;
 }
Esempio n. 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;
 }