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
7ac0b9fe
Commit
7ac0b9fe
authored
10 years ago
by
Andreas Gohr
Browse files
Options
Downloads
Patches
Plain Diff
just some more doc blocks
parent
6fc4ea2c
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/parser/parser.php
+5
-0
5 additions, 0 deletions
inc/parser/parser.php
lib/plugins/syntax.php
+10
-1
10 additions, 1 deletion
lib/plugins/syntax.php
with
15 additions
and
1 deletion
inc/parser/parser.php
+
5
−
0
View file @
7ac0b9fe
...
...
@@ -200,6 +200,11 @@ class Doku_Parser_Mode_Plugin extends DokuWiki_Plugin implements Doku_Parser_Mod
var
$Lexer
;
var
$allowedModes
=
array
();
/**
* Sort for applying this mode
*
* @return int
*/
function
getSort
()
{
trigger_error
(
'getSort() not implemented in '
.
get_class
(
$this
),
E_USER_WARNING
);
}
...
...
This diff is collapsed.
Click to expand it.
lib/plugins/syntax.php
+
10
−
1
View file @
7ac0b9fe
...
...
@@ -20,9 +20,12 @@ class DokuWiki_Syntax_Plugin extends Doku_Parser_Mode_Plugin {
* Syntax Type
*
* Needs to return one of the mode types defined in $PARSER_MODES in parser.php
*
* @return string
*/
function
getType
(){
trigger_error
(
'getType() not implemented in '
.
get_class
(
$this
),
E_USER_WARNING
);
return
''
;
}
/**
...
...
@@ -31,6 +34,8 @@ class DokuWiki_Syntax_Plugin extends Doku_Parser_Mode_Plugin {
* Defines the mode types for other dokuwiki markup that maybe nested within the
* plugin's own markup. Needs to return an array of one or more of the mode types
* defined in $PARSER_MODES in parser.php
*
* @return array
*/
function
getAllowedTypes
()
{
return
array
();
...
...
@@ -47,6 +52,7 @@ class DokuWiki_Syntax_Plugin extends Doku_Parser_Mode_Plugin {
* 'stack' - Special case. Plugin wraps other paragraphs.
*
* @see Doku_Handler_Block
* @return string
*/
function
getPType
(){
return
'normal'
;
...
...
@@ -99,7 +105,10 @@ class DokuWiki_Syntax_Plugin extends Doku_Parser_Mode_Plugin {
}
/**
* There should be no need to override these functions
* There should be no need to override this function
*
* @param string $mode
* @return bool
*/
function
accepts
(
$mode
)
{
...
...
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