| @@ 70-77 (lines=8) @@ | ||
| 67 | } |
|
| 68 | } |
|
| 69 | ||
| 70 | private static function getUserId($commonName) |
|
| 71 | { |
|
| 72 | if (false === $uPos = strpos($commonName, '_')) { |
|
| 73 | throw new RuntimeException('unable to extract userId from commonName'); |
|
| 74 | } |
|
| 75 | ||
| 76 | return substr($commonName, 0, $uPos); |
|
| 77 | } |
|
| 78 | ||
| 79 | private static function isMember(array $memberOf, array $aclGroupList) |
|
| 80 | { |
|
| @@ 71-78 (lines=8) @@ | ||
| 68 | } |
|
| 69 | } |
|
| 70 | ||
| 71 | private static function getUserId($commonName) |
|
| 72 | { |
|
| 73 | if (false === $uPos = strpos($commonName, '_')) { |
|
| 74 | throw new RuntimeException('unable to extract userId from commonName'); |
|
| 75 | } |
|
| 76 | ||
| 77 | return substr($commonName, 0, $uPos); |
|
| 78 | } |
|
| 79 | } |
|
| 80 | ||