Esempio n. 1
0
 private static function getConstants()
 {
     if (self::$constCacheArray == NULL) {
         self::$constCacheArray = [];
     }
     $calledClass = get_called_class();
     if (!array_key_exists($calledClass, self::$constCacheArray)) {
         $reflect = new ReflectionClass($calledClass);
         self::$constCacheArray[$calledClass] = $reflect->getConstants();
     }
     return self::$constCacheArray[$calledClass];
 }