Returns the extensions allowed for documents.

@param type $default
@return string
480368
public function getDocumentExtensions( $default = null ) {

		$prop = $this->properties[ self::PROP_EXTENSION_DOCUMENT ];

		if( isset( $prop ) && strlen( $prop ) > 0 ) {

			return preg_split( "/,/", $prop );
		}

		return $default;
	}
1327861
public function getContentExtensions()
    {
        if (!empty($this->validExtensions)) {
            return $this->validExtensions;
        }

        return $this->validExtensions = $this->getContentTypeHandler()->getContentExtensions();
    }
117721
public function getExtension($extension)
    {
        $uri = $this->base_uri . "/presence/rest/extension/{$extension}";

        $extentionDetails = $this->makeRequest($uri);

        return $extentionDetails;
    }
499713
public static function _getExtension ($file)
	{
		
		// Get Extension
		
		$base	= basename ($file);
		$arr	= explode ('.', $base);
		$ext	= strtolower (array_pop ($arr));
		
		// Return the extension
		
		return $ext;
		
	}
187831
public function getExtension()
    {
        if (!isset($this->file['name'])) {
            return null;
        }

        $extension = pathinfo(
            $this->file['name'],
            PATHINFO_EXTENSION
        );

        return strtolower($extension);
    }
573302
public function getExtension($file = "", $default = null)
    {

        $file = (empty($file) && isset($this->file)) ? $this->file : $file;

        if (empty($file)) {
            return $default;
        }

        //Determine the file extension
        return pathinfo($file, PATHINFO_EXTENSION);
    }
1308419
public static function getExtensionMediaType(string $extension, ?string $defaultMediaType = null):?string
    {
        return self::getMediaTypes()[strtolower($extension)] ?? $defaultMediaType;
    }
444071
public function getExtensions()
    {
        if (null == $this->extensions_unserialized && null !== $this->extensions) {
            $this->extensions_unserialized = unserialize($this->extensions);
        }

        return $this->extensions_unserialized;
    }
312468
public static function getTypeFromExtension(
        string $ext,
        string $default = "application/octet-stream"
    ): string
    {
        $ext = strtolower($ext);
        return self::$extensions[$ext] ?? $default;
    }
1171559
protected function getExtensionsRegex()
    {
        $regex = '';
        $last = count($this->extensions) - 1;
        foreach ($this->extensions as $index => $ext) {
            $regex .= '\.'.$ext.'$';
            $regex .= $index !== $last ? '|' : '';
        }

        return '('.$regex.')';
    }
240393
public function getExtensionsByType()
  {
    $ext = array();

    foreach ($this->Config->get('file-extensions') as $key => $value)
    {
      $ext[$key] = $value['extensions'];
    }

    return $ext;
  }
999097
protected function getExtensions()
    {
        if (file_exists(realpath(__DIR__.'/../../../../../config/twig.php'))) {
            $this->config = require realpath(__DIR__.'/../../../../../config/twig.php');
        } else {
            $this->config = require realpath(__DIR__.'/../../config/twig.php');
        }

        return isset($this->config['extensions']) ? $this->config['extensions'] : [];
    }
1077339
public function getAudioExtensions( $default = null ) {

		$prop = $this->properties[ self::PROP_EXTENSION_AUDIO ];

		if( isset( $prop ) && strlen( $prop ) > 0 ) {

			return preg_split( "/,/", $prop );
		}

		return $default;
	}
631549
public function getSearchVariantsExpand($defaultIfEmpty = false)
    {
        $result = $this->getValueByPathOrDefaultValue('plugin.tx_solr.search.variants.expand', $defaultIfEmpty);
        return $this->getBool($result);
    }
783792
public function format($default = 'html')
    {
        foreach ($this->getAcceptableContentTypes() as $type) {
            if ($format = $this->getFormat($type)) {
                return $format;
            }
        }

        return $default;
    }
65605
public function getExtension()
    {
        $name = $this->_file['name'];
        return ($extension = pathinfo($name, PATHINFO_EXTENSION)) === $name ? '' : $extension;
    }
1162757
public function getAvailableExtensions(): Extensions
    {
        if ($this->availableExtensions instanceof Extensions) {
            return $this->availableExtensions;
        }
        $foundExtensions  = $this->filesystemFinder->findExtensions();
        $storedExtensions = app('antares.installed') ? $this->extensionsRepository->all() : new Collection();

        foreach ($foundExtensions as $foundExtension) {
            $extension = $storedExtensions->first(function(ExtensionModel $extensionModel) use($foundExtension) {
                return $extensionModel->getFullName() === $foundExtension->getPackage()->getName();
            });

            $configFile = $foundExtension->getPath() . '/resources/config/settings.php';

            if ($this->filesystem->exists($configFile)) {
                $foundExtension->setSettings($this->settingsFactory->createFromConfig($configFile));
            }

            if ($extension instanceof ExtensionModel) {
                $foundExtension->setStatus($extension->getStatus());
                $foundExtension->setIsRequired($extension->isRequired());
                $foundExtension->getSettings()->updateData($extension->getOptions());
            }
        }

        return $this->availableExtensions = $foundExtensions;
    }