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
36013a6f
Commit
36013a6f
authored
11 years ago
by
Gerrit Uitslag
Browse files
Options
Downloads
Patches
Plain Diff
add PHPDocs to popularity plugin helper
parent
f119fb20
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/plugins/popularity/helper.php
+17
-0
17 additions, 0 deletions
lib/plugins/popularity/helper.php
with
17 additions
and
0 deletions
lib/plugins/popularity/helper.php
+
17
−
0
View file @
36013a6f
...
...
@@ -37,6 +37,11 @@ class helper_plugin_popularity extends Dokuwiki_Plugin {
$this
->
popularityLastSubmitFile
=
$conf
[
'cachedir'
]
.
'/lastSubmitTime.txt'
;
}
/**
* Return methods of this helper
*
* @return array with methods description
*/
function
getMethods
(){
$result
=
array
();
$result
[]
=
array
(
...
...
@@ -123,6 +128,7 @@ class helper_plugin_popularity extends Dokuwiki_Plugin {
*/
function
_gather
(){
global
$conf
;
/** @var $auth DokuWiki_Auth_Plugin */
global
$auth
;
$data
=
array
();
$phptime
=
ini_get
(
'max_execution_time'
);
...
...
@@ -244,6 +250,17 @@ class helper_plugin_popularity extends Dokuwiki_Plugin {
return
$data
;
}
/**
* Callback to search and count the content of directories in DokuWiki
*
* @param array &$data Reference to the result data structure
* @param string $base Base usually $conf['datadir']
* @param string $file current file or directory relative to $base
* @param string $type Type either 'd' for directory or 'f' for file
* @param int $lvl Current recursion depht
* @param array $opts option array as given to search()
* @return bool
*/
function
_search_count
(
&
$data
,
$base
,
$file
,
$type
,
$lvl
,
$opts
){
// traverse
if
(
$type
==
'd'
){
...
...
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