Skip to content
Permalink
Browse files

Merge pull request #101 from leibler/method-sigs-php7

Adjust method signatures
fixes #91
  • Loading branch information...
runout-at committed Jun 5, 2018
2 parents c8b8606 + 95c3008 commit b0fbabf0de6a5a51cce14bec17bfe1b96d9673ac
Showing with 8 additions and 8 deletions.
  1. +8 −8 syntax/todo.php
@@ -154,7 +154,7 @@ public function postConnect() {
* @param $match string The text matched by the patterns.
* @param $state int The lexer state for the match.
* @param $pos int The character position of the matched text.
* @param &$handler Doku_Handler Reference to the Doku_Handler object.
* @param $handler Doku_Handler Reference to the Doku_Handler object.
* @return int The current lexer state for the match.
*/
public function handle($match, $state, $pos, Doku_Handler $handler) {
@@ -208,7 +208,7 @@ public function handle($match, $state, $pos, Doku_Handler $handler) {
* Handle the actual output creation.
*
* @param $mode String The output format to generate.
* @param &$renderer Doku_Renderer A reference to the renderer object.
* @param $renderer Doku_Renderer A reference to the renderer object.
* @param $data Array The data created by the <tt>handle()</tt> method.
* @return Boolean true: if rendered successfully, or false: otherwise.
*/
@@ -292,12 +292,12 @@ protected function parseTodoArgs($todoargs) {
}
/**
* @param Doku_Renderer_xhtml &$renderer
* @param Doku_Renderer_xhtml $renderer
* @param string $id of page
* @param array $data data for rendering options
* @return string html of an item
*/
protected function createTodoItem(&$renderer, $id, $data) {
protected function createTodoItem($renderer, $id, $data) {
//set correct context
global $ID, $INFO;
$oldID = $ID;
@@ -381,12 +381,12 @@ protected function createTodoItem(&$renderer, $id, $data) {
/**
* Generate links from our Actions if necessary.
*
* @param Doku_Renderer_xhtml &$renderer
* @param Doku_Renderer_xhtml $renderer
* @param string $pagename
* @param string $name
* @return string
*/
private function _createLink(&$renderer, $pagename, $name = NULL) {
private function _createLink($renderer, $pagename, $name = NULL) {
$id = $this->_composePageid($pagename);
return $renderer->internallink($id, $name, null, true);
@@ -434,15 +434,15 @@ private function _composePageid($pagename) {
* outputvalue ($value) and output it instead of searchpattern
* intable:suffix = on the right side of table - THIS plugin will output a suffix footer and
* searchpattern will continue it's default output
* @param Doku_Renderer_xhtml &$renderer current rendering object (use $renderer->doc .= 'text' to output text)
* @param Doku_Renderer_xhtml $renderer current rendering object (use $renderer->doc .= 'text' to output text)
* @param array $data whole data multidemensional array( array( $page => $countOfMatches ), ... )
* @param array $matches whole regex matches multidemensional array( array( 0 => '1st Match', 1 => '2nd Match', ... ), ... )
* @param string $page id of current page
* @param array $params the parameters set by searchpattern (see search pattern documentation)
* @param string $value value which should be outputted by searchpattern
* @return bool true if THIS method is responsible for the output (using $renderer->doc) OR false if searchpattern should output it's default
*/
public function _searchpatternHandler($type, &$renderer, $data, $matches, $params = array(), $page = null, $value = null) {
public function _searchpatternHandler($type, $renderer, $data, $matches, $params = array(), $page = null, $value = null) {
$renderer->nocache();
$type = strtolower($type);

0 comments on commit b0fbabf

Please sign in to comment.
You can’t perform that action at this time.