PHP 클래스 syntax_plugin_data_table, dokuwiki-plugin-data

상속: extends DokuWiki_Syntax_Plugin
파일 보기 프로젝트 열기: splitbrain/dokuwiki-plugin-data 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$dthlp will hold the data helper plugin
$sums

보호된 프로퍼티들

프로퍼티 타입 설명
$after_item
$after_val
$before_item
$before_val

공개 메소드들

메소드 설명
__construct ( ) Constructor. Load helper plugin
_buildSQL ( &$data ) : boolean | string Builds the SQL query from the given data
connectTo ( $mode ) Connect pattern to lexer
getPType ( ) What about paragraphs?
getSort ( ) Where to sort in?
getType ( ) What kind of syntax are we?
handle ( string $match, integer $state, integer $pos, Doku_Handler $handler ) : boolean | array Handle the match - parse the data
hasRequestFilter ( ) : boolean Check whether a sort or filter request parameters are available
nullList ( array $data, array $clist, Doku_Renderer $R ) Create an empty table
postList ( array $data, integer $rowcnt ) : string Create table footer
preList ( array $clist, array $data ) : string Create table header
render ( string $format, Doku_Renderer $R, array $data ) : boolean Handles the actual output creation.
updateSQLwithQuery ( array &$data ) Handle request paramaters, rebuild sql when needed

보호된 메소드들

메소드 설명
afterVal ( array &$data, integer $colno ) : string After value in table cell
beforeVal ( array &$data, integer $colno ) : string Before value in table cell
parseValues ( string $line ) : array Split values at the commas, - Wrap with quotes to escape comma, quotes escaped by two quotes - Within quotes spaces are stored.

메소드 상세

__construct() 공개 메소드

Constructor. Load helper plugin
public __construct ( )

_buildSQL() 공개 메소드

Builds the SQL query from the given data
public _buildSQL ( &$data ) : boolean | string
리턴 boolean | string SQL query or false

afterVal() 보호된 메소드

After value in table cell
protected afterVal ( array &$data, integer $colno ) : string
$data array
$colno integer
리턴 string

beforeVal() 보호된 메소드

Before value in table cell
protected beforeVal ( array &$data, integer $colno ) : string
$data array instructions by handler
$colno integer column number
리턴 string

connectTo() 공개 메소드

Connect pattern to lexer
public connectTo ( $mode )

getPType() 공개 메소드

What about paragraphs?
public getPType ( )

getSort() 공개 메소드

Where to sort in?
public getSort ( )

getType() 공개 메소드

What kind of syntax are we?
public getType ( )

handle() 공개 메소드

This parsing is shared between the multiple different output/control syntaxes
public handle ( string $match, integer $state, integer $pos, Doku_Handler $handler ) : boolean | array
$match string The text matched by the patterns
$state integer The lexer state for the match
$pos integer The character position of the matched text
$handler Doku_Handler The Doku_Handler object
리턴 boolean | array Return an array with all data you want to use in render, false don't add an instruction

hasRequestFilter() 공개 메소드

Check whether a sort or filter request parameters are available
public hasRequestFilter ( ) : boolean
리턴 boolean

nullList() 공개 메소드

Create an empty table
public nullList ( array $data, array $clist, Doku_Renderer $R )
$data array instruction by handler()
$clist array keys of the columns
$R Doku_Renderer

parseValues() 보호된 메소드

Split values at the commas, - Wrap with quotes to escape comma, quotes escaped by two quotes - Within quotes spaces are stored.
protected parseValues ( string $line ) : array
$line string
리턴 array

postList() 공개 메소드

Create table footer
public postList ( array $data, integer $rowcnt ) : string
$data array instruction by handler()
$rowcnt integer number of rows
리턴 string html of table footer

preList() 공개 메소드

Create table header
public preList ( array $clist, array $data ) : string
$clist array keys of the columns
$data array instruction by handler
리턴 string html of table header

render() 공개 메소드

Handles the actual output creation.
public render ( string $format, Doku_Renderer $R, array $data ) : boolean
$format string output format being rendered
$R Doku_Renderer the current renderer object
$data array data created by handler()
리턴 boolean rendered correctly? (however, returned value is not used at the moment)

updateSQLwithQuery() 공개 메소드

Handle request paramaters, rebuild sql when needed
public updateSQLwithQuery ( array &$data )
$data array instruction by handler()

프로퍼티 상세

$after_item 보호되어 있는 프로퍼티

protected $after_item

$after_val 보호되어 있는 프로퍼티

protected $after_val

$before_item 보호되어 있는 프로퍼티

protected $before_item

$before_val 보호되어 있는 프로퍼티

protected $before_val

$dthlp 공개적으로 프로퍼티

will hold the data helper plugin
public $dthlp

$sums 공개적으로 프로퍼티

public $sums