Skip to content
Snippets Groups Projects
Commit 1b7fc214 authored by Mohamed Amine BERGAOUI's avatar Mohamed Amine BERGAOUI
Browse files

corrected coding style, deleted ?>, renamed function keys and used plugin_load

parent 9f8068d2
No related branches found
No related tags found
No related merge requests found
<?php
class remote_plugin_acl extends DokuWiki_Remote_Plugin {
function _getMethods() {
function _getMethods() {
return array(
'plugin.acl.addAcl' => array(
'addAcl' => array(
'args' => array('string','string','int'),
'return' => 'int',
'name' => 'addAcl',
'doc' => 'Adds a new ACL rule.'
), 'plugin.delAcl' => array(
), '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 addAcl($scope, $user, $level){
$apa = plugin_load('admin', 'acl');
return $apa->_acl_add($scope, $user, $level);
}
function delAcl($scope, $user){
$apa = new admin_plugin_acl();
return $apa->_acl_del($scope, $user);
}
function delAcl($scope, $user){
$apa = plugin_load('admin', 'acl');
return $apa->_acl_del($scope, $user);
}
}
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment