| @@ 56-61 (lines=6) @@ | ||
| 53 | $respondToActions = $plugin->respondToActions(); |
|
| 54 | $this->respondToActions |= $respondToActions; |
|
| 55 | ||
| 56 | foreach($this->which as $action => $v) { |
|
| 57 | if ((bool)($respondToActions & $action)) { |
|
| 58 | $this->which[$action] = $plugin; |
|
| 59 | \OC::$server->getLogger()->debug("Registered action ".$action." to plugin ".get_class($plugin), ['app' => 'user_ldap']); |
|
| 60 | } |
|
| 61 | } |
|
| 62 | } |
|
| 63 | ||
| 64 | /** |
|
| @@ 61-66 (lines=6) @@ | ||
| 58 | $respondToActions = $plugin->respondToActions(); |
|
| 59 | $this->respondToActions |= $respondToActions; |
|
| 60 | ||
| 61 | foreach($this->which as $action => $v) { |
|
| 62 | if (is_int($action) && (bool)($respondToActions & $action)) { |
|
| 63 | $this->which[$action] = $plugin; |
|
| 64 | \OC::$server->getLogger()->debug("Registered action ".$action." to plugin ".get_class($plugin), ['app' => 'user_ldap']); |
|
| 65 | } |
|
| 66 | } |
|
| 67 | if (method_exists($plugin,'deleteUser')) { |
|
| 68 | $this->which['deleteUser'] = $plugin; |
|
| 69 | \OC::$server->getLogger()->debug("Registered action deleteUser to plugin ".get_class($plugin), ['app' => 'user_ldap']); |
|