| @@ 38-50 (lines=13) @@ | ||
| 35 | self::createDir($this->disableDir); |
|
| 36 | } |
|
| 37 | ||
| 38 | public function getDisabled() |
|
| 39 | { |
|
| 40 | $disabledList = []; |
|
| 41 | if (false === $fileList = glob(sprintf('%s/*', $this->disableDir), GLOB_ERR)) { |
|
| 42 | throw new RuntimeException(sprintf('unable to read directory "%s"', $this->disableDir)); |
|
| 43 | } |
|
| 44 | ||
| 45 | foreach ($fileList as $fileName) { |
|
| 46 | $disabledList[] = basename($fileName); |
|
| 47 | } |
|
| 48 | ||
| 49 | return $disabledList; |
|
| 50 | } |
|
| 51 | ||
| 52 | public function setDisabled($commonName) |
|
| 53 | { |
|
| @@ 48-60 (lines=13) @@ | ||
| 45 | self::createDir($this->vootDir); |
|
| 46 | } |
|
| 47 | ||
| 48 | public function getDisabled() |
|
| 49 | { |
|
| 50 | $disabledList = []; |
|
| 51 | if (false === $fileList = glob(sprintf('%s/*', $this->disableDir), GLOB_ERR)) { |
|
| 52 | throw new RuntimeException(sprintf('unable to read directory "%s"', $this->disableDir)); |
|
| 53 | } |
|
| 54 | ||
| 55 | foreach ($fileList as $fileName) { |
|
| 56 | $disabledList[] = basename($fileName); |
|
| 57 | } |
|
| 58 | ||
| 59 | return $disabledList; |
|
| 60 | } |
|
| 61 | ||
| 62 | public function isDisabled($userId) |
|
| 63 | { |
|