Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
pro
bpwiki
Commits
bbc81082
Commit
bbc81082
authored
Mar 23, 2022
by
Krzysztof Kutt
Browse files
bugfixing
parent
85add3d0
Changes
4
Hide whitespace changes
Inline
Side-by-side
simplebpmn/action/findtemplate.php
View file @
bbc81082
...
...
@@ -20,7 +20,7 @@ require_once DOKU_PLUGIN.'action.php';
class
action_plugin_simplebpmn_findtemplate
extends
DokuWiki_Action_Plugin
{
public
function
register
(
Doku_Event_Handler
&
$controller
)
{
public
function
register
(
Doku_Event_Handler
$controller
)
{
$controller
->
register_hook
(
'COMMON_PAGETPL_LOAD'
,
'BEFORE'
,
$this
,
'handle_common_pagetpl_load'
);
...
...
simplebpmn/action/wysiwyg.php
View file @
bbc81082
...
...
@@ -3,7 +3,7 @@
* DokuWiki Plugin simplebpmn (Action Component)
*
* @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
* @author
Urszula Ciaputa <u.ciaputa@gmail.com
>
* @author
GEIST Research Group <krzysztof.kutt@uj.edu.pl
>
*/
if
(
!
defined
(
'DOKU_INC'
))
die
();
...
...
@@ -15,7 +15,7 @@ class action_plugin_simplebpmn_wysiwyg extends DokuWiki_Action_Plugin {
/**
* Register the eventhandlers
*/
function
register
(
&
$controller
)
{
function
register
(
$controller
)
{
$controller
->
register_hook
(
'TOOLBAR_DEFINE'
,
'AFTER'
,
$this
,
'bpmn_button'
,
array
());
$controller
->
register_hook
(
'TOOLBAR_DEFINE'
,
'AFTER'
,
$this
,
'converter_button'
,
array
());
}
...
...
@@ -23,7 +23,7 @@ class action_plugin_simplebpmn_wysiwyg extends DokuWiki_Action_Plugin {
/**
* Inserts the BPMN toolbar button
*/
function
bpmn_button
(
&
$event
,
$param
)
{
function
bpmn_button
(
$event
,
$param
)
{
$event
->
data
[]
=
array
(
'type'
=>
'format'
,
'title'
=>
'SimpleBPMN Notation'
,
...
...
@@ -36,7 +36,7 @@ class action_plugin_simplebpmn_wysiwyg extends DokuWiki_Action_Plugin {
/**
* Inserts the converter toolbar button
*/
function
converter_button
(
&
$event
,
$param
)
{
function
converter_button
(
$event
,
$param
)
{
$event
->
data
[]
=
array
(
'type'
=>
'mediapopup'
,
'title'
=>
'BPMN XML -> SimpleBPMN Converter'
,
...
...
simplebpmn/syntax/bpmn.php
View file @
bbc81082
...
...
@@ -3,7 +3,7 @@
* DokuWiki Plugin simplebpmn (Syntax Component)
*
* @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
* @author
Urszula Ciaputa <u.ciaputa@gmail.com>
* @author
GEIST Research Group <krzysztof.kutt@uj.edu.pl
*/
// must be run within Dokuwiki
...
...
@@ -41,7 +41,7 @@ class syntax_plugin_simplebpmn_bpmn extends DokuWiki_Syntax_Plugin {
$this
->
Lexer
->
addExitPattern
(
'</bpmn>'
,
'plugin_simplebpmn_bpmn'
);
}
public
function
handle
(
$match
,
$state
,
$pos
,
&
$handler
){
public
function
handle
(
$match
,
$state
,
$pos
,
$handler
){
switch
(
$state
)
{
case
DOKU_LEXER_ENTER
:
return
array
(
$state
,
$match
);
...
...
@@ -53,7 +53,7 @@ class syntax_plugin_simplebpmn_bpmn extends DokuWiki_Syntax_Plugin {
return
array
();
}
public
function
render
(
$mode
,
&
$renderer
,
$data
)
{
public
function
render
(
$mode
,
$renderer
,
$data
)
{
if
(
$mode
!=
'xhtml'
)
return
false
;
list
(
$state
,
$match
)
=
$data
;
...
...
simplebpmn/syntax/bpmninc.php
View file @
bbc81082
...
...
@@ -6,7 +6,7 @@
* into current page.
*
* @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
* @author
Urszula Ciaputa <u.ciaputa@gmail.com>
* @author
GEIST Research Group <krzysztof.kutt@uj.edu.pl
*/
// must be run within Dokuwiki
...
...
@@ -40,7 +40,7 @@ class syntax_plugin_simplebpmn_bpmninc extends DokuWiki_Syntax_Plugin {
$this
->
Lexer
->
addSpecialPattern
(
'[ \t]*\[\[bpmn>.+?\]\]'
,
$mode
,
'plugin_simplebpmn_bpmninc'
);
}
public
function
handle
(
$match
,
$state
,
$pos
,
&
$handler
){
public
function
handle
(
$match
,
$state
,
$pos
,
$handler
){
switch
(
$state
)
{
case
DOKU_LEXER_SPECIAL
:
if
(
preg_match
(
'/([ \t]*)\[\[bpmn>(.+?)(?:\|(.+?))?\s*?\]\]/i'
,
$match
,
$matches
)
){
...
...
@@ -50,7 +50,7 @@ class syntax_plugin_simplebpmn_bpmninc extends DokuWiki_Syntax_Plugin {
return
array
();
}
public
function
render
(
$mode
,
&
$renderer
,
$data
)
{
public
function
render
(
$mode
,
$renderer
,
$data
)
{
global
$ID
;
if
(
$mode
!=
'xhtml'
)
return
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment