October\Rain\Filesystem\Definitions

Source: ~/vendor/october/rain/src/Filesystem/Definitions.php

File definitions helper. Contains file extensions for common use cases.

Public methods

public static array get($type $type)

Entry point to request a definition set.

Parameters
  • $type $type - String

public array getDefinitions($type $type)

Returns a definition set from config or from the default sets.

Parameters
  • $type $type - String

public static boolean isPathIgnored(string $path)

Determines if a path should be ignored, sourced from the ignoreFiles and ignorePatterns definitions.

Parameters
  • string $path - Specifies a path to check.

Protected methods

protected void assetExtensions()

Extensions seen as public assets. This list can be customized with config:

  • cms.fileDefinitions.assetExtensions

protected void audioExtensions()

Extensions typically used as audio files. This list can be customized with config:

  • cms.fileDefinitions.audioExtensions

protected void defaultExtensions()

Extensions that are particularly benign. This list can be customized with config:

  • cms.fileDefinitions.defaultExtensions

protected void ignoreFiles()

Files that can be safely ignored. This list can be customized with config:

  • cms.fileDefinitions.ignoreFiles

protected void ignorePatterns()

File patterns that can be safely ignored. This list can be customized with config:

  • cms.fileDefinitions.ignorePatterns

protected void imageExtensions()

Extensions typically used as images. This list can be customized with config:

  • cms.fileDefinitions.imageExtensions

protected void videoExtensions()

Extensions typically used as video files. This list can be customized with config:

  • cms.fileDefinitions.videoExtensions