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
dbf714f7
Commit
dbf714f7
authored
11 years ago
by
Gerrit Uitslag
Browse files
Options
Downloads
Patches
Plain Diff
Improve PHPDocs pageutils
parent
cefd14cb
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
inc/pageutils.php
+8
-0
8 additions, 0 deletions
inc/pageutils.php
with
8 additions
and
0 deletions
inc/pageutils.php
+
8
−
0
View file @
dbf714f7
...
...
@@ -94,6 +94,7 @@ function getID($param='id',$clean=true){
* @author Andreas Gohr <andi@splitbrain.org>
* @param string $raw_id The pageid to clean
* @param boolean $ascii Force ASCII
* @return string cleaned id
*/
function
cleanID
(
$raw_id
,
$ascii
=
false
){
global
$conf
;
...
...
@@ -244,6 +245,7 @@ function page_exists($id,$rev='',$clean=true) {
* @param $rev string page revision, empty string for current
* @param $clean bool flag indicating that $raw_id should be cleaned. Only set to false
* when $id is guaranteed to have been cleaned already.
* @return string full path
*
* @author Andreas Gohr <andi@splitbrain.org>
*/
...
...
@@ -361,6 +363,7 @@ function mediaFN($id, $rev=''){
*
* @param string $id The id of the local file
* @param string $ext The file extension (usually txt)
* @return string full filepath to localized file
* @author Andreas Gohr <andi@splitbrain.org>
*/
function
localeFN
(
$id
,
$ext
=
'txt'
){
...
...
@@ -543,6 +546,11 @@ function isHiddenPage($id){
return
$data
[
'hidden'
];
}
/**
* callback checks if page is hidden
*
* @param array $data event data see isHiddenPage()
*/
function
_isHiddenPage
(
&
$data
)
{
global
$conf
;
global
$ACT
;
...
...
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