Метод | Описание | |
---|---|---|
__construct ( $excludes = [] ) | ||
get_default_excludes ( ) : array | Get the array of default excludes. | |
get_excludes ( ) : array | Get the excludes. | |
get_excludes_for_regex ( ) : array | Get the excludes prepared for use with regex. | |
get_user_excludes ( ) : array | Get the user defined excludes. | |
is_file_excluded ( SplFileInfo $file ) : boolean | null | Check if a file is excluded, i.e. excluded directly or is in an excluded folder. | |
normalize ( array $excludes ) : array | Normalise the exclude rules so they are ready to work with. | |
set_excludes ( string | array $excludes ) | Set the exclude rules. |
public get_default_excludes ( ) : array | ||
Результат | array | The array of excludes. |
public get_excludes ( ) : array | ||
Результат | array | The array of exclude rules. |
public get_excludes_for_regex ( ) : array | ||
Результат | array | The array of exclude rules. |
public get_user_excludes ( ) : array | ||
Результат | array | The array of excludes. |
public is_file_excluded ( SplFileInfo $file ) : boolean | null | ||
$file | SplFileInfo | File to check if it's excluded. |
Результат | boolean | null | True if file is excluded, false otherwise. Null - if it's not a file. |
public set_excludes ( string | array $excludes ) | ||
$excludes | string | array | The list of exclude rules, accepts either a comma separated list or an array. |