Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dokuwiki
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
BRIC
dokuwiki
Commits
67b479b2
Commit
67b479b2
authored
9 years ago
by
Gerrit Uitslag
Browse files
Options
Downloads
Patches
Plain Diff
PHPDocs for remote and action
parent
2b6c6819
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/plugins/acl/remote.php
+1
-1
1 addition, 1 deletion
lib/plugins/acl/remote.php
lib/plugins/action.php
+2
-0
2 additions, 0 deletions
lib/plugins/action.php
lib/plugins/remote.php
+12
-1
12 additions, 1 deletion
lib/plugins/remote.php
with
15 additions
and
2 deletions
lib/plugins/acl/remote.php
+
1
−
1
View file @
67b479b2
...
@@ -8,7 +8,7 @@ class remote_plugin_acl extends DokuWiki_Remote_Plugin {
...
@@ -8,7 +8,7 @@ class remote_plugin_acl extends DokuWiki_Remote_Plugin {
/**
/**
* Returns details about the remote plugin methods
* Returns details about the remote plugin methods
*
*
* @return array
* @return array
Information about all provided methods. {@see RemoteAPI}
*/
*/
public
function
_getMethods
()
{
public
function
_getMethods
()
{
return
array
(
return
array
(
...
...
This diff is collapsed.
Click to expand it.
lib/plugins/action.php
+
2
−
0
View file @
67b479b2
...
@@ -16,6 +16,8 @@ class DokuWiki_Action_Plugin extends DokuWiki_Plugin {
...
@@ -16,6 +16,8 @@ class DokuWiki_Action_Plugin extends DokuWiki_Plugin {
/**
/**
* Registers a callback function for a given event
* Registers a callback function for a given event
*
* @param Doku_Event_Handler $controller
*/
*/
public
function
register
(
Doku_Event_Handler
$controller
)
{
public
function
register
(
Doku_Event_Handler
$controller
)
{
trigger_error
(
'register() not implemented in '
.
get_class
(
$this
),
E_USER_WARNING
);
trigger_error
(
'register() not implemented in '
.
get_class
(
$this
),
E_USER_WARNING
);
...
...
This diff is collapsed.
Click to expand it.
lib/plugins/remote.php
+
12
−
1
View file @
67b479b2
<?php
<?php
/**
* Class DokuWiki_Remote_Plugin
*/
abstract
class
DokuWiki_Remote_Plugin
extends
DokuWiki_Plugin
{
abstract
class
DokuWiki_Remote_Plugin
extends
DokuWiki_Plugin
{
private
$api
;
private
$api
;
/**
* Constructor
*/
public
function
__construct
()
{
public
function
__construct
()
{
$this
->
api
=
new
RemoteAPI
();
$this
->
api
=
new
RemoteAPI
();
}
}
/**
/**
* Get all available methods with remote access.
*
* @abstract
* @abstract
* @return array Information t
o
all provided methods. {@see RemoteAPI}.
* @return array Information
abou
t all provided methods. {@see RemoteAPI}.
*/
*/
public
abstract
function
_getMethods
();
public
abstract
function
_getMethods
();
/**
* @return RemoteAPI
*/
protected
function
getApi
()
{
protected
function
getApi
()
{
return
$this
->
api
;
return
$this
->
api
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment