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
52a281e8
Commit
52a281e8
authored
10 years ago
by
Gerrit Uitslag
Browse files
Options
Downloads
Patches
Plain Diff
Some PHPDocs media and admin plugin
parent
192b8a10
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
inc/media.php
+7
-7
7 additions, 7 deletions
inc/media.php
lib/plugins/admin.php
+26
-8
26 additions, 8 deletions
lib/plugins/admin.php
with
33 additions
and
15 deletions
inc/media.php
+
7
−
7
View file @
52a281e8
...
...
@@ -383,20 +383,20 @@ function copy_uploaded_file($from, $to){
* (The triggered event is preventable.)
*
* Event data:
* $data[0] fn_tmp: the temporary file name (read from $_FILES)
* $data[1] fn: the file name of the uploaded file
* $data[2] id: the future directory id of the uploaded file
* $data[3] imime: the mimetype of the uploaded file
* $data[0] fn_tmp:
the temporary file name (read from $_FILES)
* $data[1] fn:
the file name of the uploaded file
* $data[2] id:
the future directory id of the uploaded file
* $data[3] imime:
the mimetype of the uploaded file
* $data[4] overwrite: if an existing file is going to be overwritten
* $data[5] move:
* $data[5] move:
name of function that performs move/copy/..
*
* @triggers MEDIA_UPLOAD_FINISH
*
* @param array $file
* @param string $id
* @param string $id
media id
* @param bool $ow overwrite?
* @param int $auth permission level
* @param string $move
function name
* @param string $move
name of functions that performs move/copy/..
* @return false|array|string
*/
function
media_save
(
$file
,
$id
,
$ow
,
$auth
,
$move
)
{
...
...
This diff is collapsed.
Click to expand it.
lib/plugins/admin.php
+
26
−
8
View file @
52a281e8
...
...
@@ -15,10 +15,13 @@ if(!defined('DOKU_INC')) die();
class
DokuWiki_Admin_Plugin
extends
DokuWiki_Plugin
{
/**
* Return the text that is displayed at the main admin menu
* (Default localized language string 'menu' is returned, override this function for setting another name)
*
* @param string $language language code
* @return string
* @return string
menu string
*/
function
getMenuText
(
$language
)
{
public
function
getMenuText
(
$language
)
{
$menutext
=
$this
->
getLang
(
'menu'
);
if
(
!
$menutext
)
{
$info
=
$this
->
getInfo
();
...
...
@@ -28,32 +31,47 @@ class DokuWiki_Admin_Plugin extends DokuWiki_Plugin {
}
/**
* Determine position in list in admin window
* Lower values are sorted up
*
* @return int
*/
function
getMenuSort
()
{
public
function
getMenuSort
()
{
return
1000
;
}
function
handle
()
{
/**
* Carry out required processing
*/
public
function
handle
()
{
trigger_error
(
'handle() not implemented in '
.
get_class
(
$this
),
E_USER_WARNING
);
}
function
html
()
{
/**
* Output html of the admin page
*/
public
function
html
()
{
trigger_error
(
'html() not implemented in '
.
get_class
(
$this
),
E_USER_WARNING
);
}
/**
* Return true for access only by admins (config:superuser) or false if managers are allowed as well
*
* @return bool
*/
function
forAdminOnly
()
{
public
function
forAdminOnly
()
{
return
true
;
}
/**
* Return array with ToC items. Items can be created with the html_mktocitem()
*
* @see html_mktocitem()
* @see tpl_toc()
*
* @return array
*/
function
getTOC
(){
public
function
getTOC
(){
return
array
();
}
}
...
...
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