1 | <?php |
||
12 | abstract class AbstractShare implements IShare { |
||
13 | private $forbiddenCharacters; |
||
14 | |||
15 | 1028 | public function __construct() { |
|
18 | |||
19 | 1024 | protected function verifyPath($path) { |
|
20 | 1024 | foreach ($this->forbiddenCharacters as $char) { |
|
21 | 1024 | if (strpos($path, $char) !== false) { |
|
22 | 692 | throw new InvalidPathException('Invalid path, "' . $char . '" is not allowed'); |
|
23 | } |
||
24 | } |
||
25 | 1024 | } |
|
26 | |||
27 | public function setForbiddenChars(array $charList) { |
||
30 | } |
||
31 |