Свойство | Type | Description | |
---|---|---|---|
$extensions | array(string) | Whitelist of accepted file extensions. |
Méthode | Description | |
---|---|---|
__construct ( array $extensions ) | Constructs a new file extension filter instance with the given list of allowed file $extensions. | |
accept ( string $relative, string $absolute ) : boolean | Returns true if this filter accepts the given paths. |
public __construct ( array $extensions ) | ||
$extensions | array | List of allowed extension. |