diff options
author | Mohamed Amine BERGAOUI <mabergaoui@gmail.com> | 2013-07-30 11:21:18 +0200 |
---|---|---|
committer | Mohamed Amine BERGAOUI <mabergaoui@gmail.com> | 2013-07-30 11:21:18 +0200 |
commit | 9f8068d2077ef7add4108b4a8593764a39518d8d (patch) | |
tree | d5ffa3ee3c6fcef001043fd7626e0c309f0d16d7 /lib/plugins | |
parent | d90a68f39f7f78f2ce0b475700f22750ae3f0b14 (diff) | |
download | rpg-9f8068d2077ef7add4108b4a8593764a39518d8d.tar.gz rpg-9f8068d2077ef7add4108b4a8593764a39518d8d.tar.bz2 |
moving ACL remote functions to the ACL plugin
Diffstat (limited to 'lib/plugins')
-rw-r--r-- | lib/plugins/acl/remote.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/plugins/acl/remote.php b/lib/plugins/acl/remote.php new file mode 100644 index 000000000..8210e5414 --- /dev/null +++ b/lib/plugins/acl/remote.php @@ -0,0 +1,32 @@ +<?php + +class remote_plugin_acl extends DokuWiki_Remote_Plugin { + function _getMethods() { + return array( + 'plugin.acl.addAcl' => array( + 'args' => array('string','string','int'), + 'return' => 'int', + 'name' => 'addAcl', + 'doc' => 'Adds a new ACL rule.' + ), 'plugin.delAcl' => array( + 'args' => array('string','string'), + 'return' => 'int', + 'name' => 'delAcl', + 'doc' => 'Delete an existing ACL rule.' + ), + ); + } + + + function addAcl($scope, $user, $level){ + $apa = new admin_plugin_acl(); + return $apa->_acl_add($scope, $user, $level); + } + + function delAcl($scope, $user){ + $apa = new admin_plugin_acl(); + return $apa->_acl_del($scope, $user); + } +} + +?> |