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