public static function getSupportedImageTypes() { if (is_null(self::$aSupportedTypes)) { self::$aSupportedTypes = array(); self::$aSupportedTypes[] = "GIF"; self::$aSupportedTypes[] = "JPG"; self::$aSupportedTypes[] = "JPEG"; self::$aSupportedTypes[] = "PNG"; self::$aSupportedTypes[] = "WBMP"; self::$aSupportedTypes[] = "BMP"; self::$aSupportedTypes[] = "SWF"; } return self::$aSupportedTypes; }