Skip to content

Commit

Permalink
Adjust API
Browse files Browse the repository at this point in the history
  • Loading branch information
i-net /// software committed Dec 6, 2017
1 parent 041273c commit c2e6f7a
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function footnote_close() {
/**
* Open an unordered list
*/
function listu_open() {
function listu_open($classes = null) {
}

/**
Expand All @@ -234,7 +234,7 @@ function listu_close() {
/**
* Open an ordered list
*/
function listo_open() {
function listo_open($classes = null) {
}

/**
Expand Down Expand Up @@ -292,7 +292,7 @@ function unformatted($text) {
*
* @param string $text The PHP code
*/
function php($text) {
function php($text, $wrapper = 'code') {
}

/**
Expand All @@ -313,7 +313,7 @@ function phpblock($text) {
*
* @param string $text The HTML
*/
function html($text) {
function html($text, $wrapper = 'code') {
}

/**
Expand Down Expand Up @@ -411,7 +411,7 @@ function entity($entity) {
* @param string|int $x first value
* @param string|int $y second value
*/
function multiplyentity() {
function multiplyentity($x, $y) {
$this->doc .= "$$y";
}

Expand Down Expand Up @@ -455,7 +455,7 @@ function doublequoteclosing() {
* @param string $link The link name
* @see http://en.wikipedia.org/wiki/CamelCase
*/
function camelcaselink($link) {
function camelcaselink($link, $returnonly = false) {
$this->doc .= '[[' . $link . ']]';
}

Expand All @@ -465,7 +465,7 @@ function camelcaselink($link) {
* @param string $hash hash link identifier
* @param string $name name for the link
*/
function locallink($hash, $name = null) {
function locallink($hash, $name = null, $returnonly = false) {
$this->doc .= '[[' . $name . ']]';
}

Expand All @@ -475,7 +475,7 @@ function locallink($hash, $name = null) {
* @param string $link page ID to link to. eg. 'wiki:syntax'
* @param string|array $title name for the link, array for media file
*/
function internallink($link, $title = null) {
function internallink($id, $name = null, $search = null, $returnonly = false, $linktype = 'content') {
$this->doc .= '[[' . $link . '|' . $title . ']]';
}

Expand All @@ -485,7 +485,7 @@ function internallink($link, $title = null) {
* @param string $link full URL with scheme
* @param string|array $title name for the link, array for media file
*/
function externallink($link, $title = null) {
function externallink($link, $title = null, $returnonly = false) {
$this->doc .= '[[' . $link . '|' . $title . ']]';
}

Expand All @@ -509,7 +509,7 @@ function rss($url, $params) {
* @param string $wikiName indentifier (shortcut) for the remote wiki
* @param string $wikiUri the fragment parsed from the original link
*/
function interwikilink($link, $title = null, $wikiName, $wikiUri) {
function interwikilink($match, $name, $wikiName, $wikiUri, $returnonly = false) {
}

/**
Expand All @@ -527,7 +527,7 @@ function filelink($link, $title = null) {
* @param string $link the link
* @param string|array $title name for the link, array for media file
*/
function windowssharelink($link, $title = null) {
function windowssharelink($link, $title = null, $returnonly = false) {
}

/**
Expand All @@ -538,7 +538,7 @@ function windowssharelink($link, $title = null) {
* @param string $address Email-Address
* @param string|array $name name for the link, array for media file
*/
function emaillink($address, $name = null) {
function emaillink($address, $name = null, $returnonly = false) {
}

/**
Expand All @@ -553,7 +553,7 @@ function emaillink($address, $name = null) {
* @param string $linking linkonly|detail|nolink
*/
function internalmedia($src, $title = null, $align = null, $width = null,
$height = null, $cache = null, $linking = null) {
$height = null, $cache = null, $linking = null, $return = false) {
}

/**
Expand All @@ -568,7 +568,7 @@ function internalmedia($src, $title = null, $align = null, $width = null,
* @param string $linking linkonly|detail|nolink
*/
function externalmedia($src, $title = null, $align = null, $width = null,
$height = null, $cache = null, $linking = null) {
$height = null, $cache = null, $linking = null, $return = false) {
}

/**
Expand Down Expand Up @@ -606,7 +606,7 @@ function externalmedialink($src, $title = null, $align = null,
* @param int $numrows NOT IMPLEMENTED
* @param int $pos byte position in the original source
*/
function table_open($maxcols = null, $numrows = null, $pos = null) {
function table_open($maxcols = null, $numrows = null, $pos = null, $classes = null) {
}

/**
Expand Down Expand Up @@ -646,7 +646,7 @@ function tabletbody_close() {
/**
* Open a table row
*/
function tablerow_open() {
function tablerow_open($classes = null) {
$this->doc .= DOKU_LF;
}

Expand All @@ -663,7 +663,7 @@ function tablerow_close() {
* @param string $align left|center|right
* @param int $rowspan
*/
function tableheader_open($colspan = 1, $align = null, $rowspan = 1) {
function tableheader_open($colspan = 1, $align = null, $rowspan = 1, $classes = null) {
$this->doc .= str_repeat( '^', $colspan );
}

Expand All @@ -680,7 +680,7 @@ function tableheader_close() {
* @param string $align left|center|right
* @param int $rowspan
*/
function tablecell_open($colspan = 1, $align = null, $rowspan = 1) {
function tablecell_open($colspan = 1, $align = null, $rowspan = 1, $classes = null) {

if ( $this->doc[strlen($this->doc)-1] == '|' ) {
$colspan--;
Expand Down

0 comments on commit c2e6f7a

Please sign in to comment.