1 | <?php |
||
12 | abstract class Exclude implements FilterInterface |
||
13 | { |
||
14 | /** |
||
15 | * @var string Path to file with excludes |
||
16 | */ |
||
17 | protected $path; |
||
18 | /** |
||
19 | * @var array List of ids for exclude |
||
20 | */ |
||
21 | protected $elements; |
||
22 | |||
23 | /** |
||
24 | * {@inheritdoc} |
||
25 | */ |
||
26 | abstract public function valid(File $file); |
||
27 | |||
28 | /** |
||
29 | * Load the array of excluded items and save them to $elements |
||
30 | * |
||
31 | * @throws ExcludeFilterException |
||
32 | */ |
||
33 | protected function load() |
||
60 | |||
61 | /** |
||
62 | * Get the path to file with excludes |
||
63 | * |
||
64 | * @throws ExcludeFilterException |
||
65 | * |
||
66 | * @return string File path |
||
67 | */ |
||
68 | public function getPath() |
||
80 | |||
81 | /** |
||
82 | * Set the path to file with excludes |
||
83 | * |
||
84 | * @param string $path |
||
85 | */ |
||
86 | public function setPath($path) |
||
90 | } |
||
91 |