| @@ 81-91 (lines=11) @@ | ||
| 78 | if(!is_null($prefix)) { |
|
| 79 | if(isset($this->backends[$prefix])) { |
|
| 80 | $result = call_user_func_array(array($this->backends[$prefix], $method), $parameters); |
|
| 81 | if($result === $passOnWhen) { |
|
| 82 | //not found here, reset cache to null if group vanished |
|
| 83 | //because sometimes methods return false with a reason |
|
| 84 | $groupExists = call_user_func_array( |
|
| 85 | array($this->backends[$prefix], 'groupExists'), |
|
| 86 | array($gid) |
|
| 87 | ); |
|
| 88 | if(!$groupExists) { |
|
| 89 | $this->writeToCache($cacheKey, null); |
|
| 90 | } |
|
| 91 | } |
|
| 92 | return $result; |
|
| 93 | } |
|
| 94 | } |
|
| @@ 109-119 (lines=11) @@ | ||
| 106 | $instance = $this->getAccess($prefix); |
|
| 107 | } |
|
| 108 | $result = call_user_func_array(array($instance, $method), $parameters); |
|
| 109 | if($result === $passOnWhen) { |
|
| 110 | //not found here, reset cache to null if user vanished |
|
| 111 | //because sometimes methods return false with a reason |
|
| 112 | $userExists = call_user_func_array( |
|
| 113 | array($this->backends[$prefix], 'userExists'), |
|
| 114 | array($uid) |
|
| 115 | ); |
|
| 116 | if(!$userExists) { |
|
| 117 | $this->writeToCache($cacheKey, null); |
|
| 118 | } |
|
| 119 | } |
|
| 120 | return $result; |
|
| 121 | } |
|
| 122 | } |
|