[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/s9e/text-formatter/src/Plugins/PipeTables/ -> Parser.php (summary)

(no description)

File Size: 441 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Parser:: (24 methods):
  parse()
  addLine()
  addTableBody()
  addTableCell()
  addTableHead()
  addTableRow()
  captureTables()
  createBodyTags()
  createCellTags()
  createHeadTags()
  createIgnoreTag()
  createRowTags()
  createSeparatorTag()
  createTableTags()
  endTable()
  hasValidTable()
  isValidSeparator()
  overwriteBlockquoteCallback()
  overwriteEscapes()
  overwriteInlineCodeCallback()
  overwriteMarkdown()
  parseColumnAlignments()
  processCurrentTable()
  processTables()


Class: Parser  - X-Ref


parse($text, array $matches)   X-Ref
{@inheritdoc}


addLine($line)   X-Ref
Add current line to a table

param: string $line Line of text
return: void

addTableBody()   X-Ref
Process current table's body

return: void

addTableCell($tagName, $align, $content)   X-Ref
Add a cell's tags for current table at current position

param: string $tagName Either TD or TH
param: string $align   Either "left", "center", "right" or ""
param: string $content Cell's text content
return: void

addTableHead()   X-Ref
Process current table's head

return: void

addTableRow($tagName, $row)   X-Ref
Process given table row

param: string $tagName Either TD or TH
param: array  $row
return: void

captureTables()   X-Ref
Capture all pipe tables in current text

return: void

createBodyTags($startPos, $endPos)   X-Ref
Create a pair of TBODY tags for given text span

param: integer $startPos
param: integer $endPos
return: void

createCellTags($tagName, $startPos, $endPos, $align)   X-Ref
Create a pair of TD or TH tags for given text span

param: string  $tagName  Either TD or TH
param: integer $startPos
param: integer $endPos
param: string  $align    Either "left", "center", "right" or ""
return: void

createHeadTags($startPos, $endPos)   X-Ref
Create a pair of THEAD tags for given text span

param: integer $startPos
param: integer $endPos
return: void

createIgnoreTag($pos, $len)   X-Ref
Create an ignore tag for given text span

param: integer $pos
param: integer $len
return: void

createRowTags($startPos, $endPos)   X-Ref
Create a pair of TR tags for given text span

param: integer $startPos
param: integer $endPos
return: void

createSeparatorTag(array $row)   X-Ref
Create an ignore tag for given separator row

param: array $row
return: void

createTableTags($startPos, $endPos)   X-Ref
Create a pair of TABLE tags for given text span

param: integer $startPos
param: integer $endPos
return: void

endTable()   X-Ref
End current buffered table

return: void

hasValidTable()   X-Ref
Test whether a valid table is currently buffered

return: bool

isValidSeparator($line)   X-Ref
Test whether given line is a valid separator

param: string $line
return: bool

overwriteBlockquoteCallback(array $m)   X-Ref
Overwrite right angle brackets in given match

param: string[] $m
return: string

overwriteEscapes()   X-Ref
Overwrite escape sequences in current text

return: void

overwriteInlineCodeCallback(array $m)   X-Ref
Overwrite backticks in given match

param: string[] $m
return: string

overwriteMarkdown()   X-Ref
Overwrite Markdown-style markup in current text

return: void

parseColumnAlignments($line)   X-Ref
Parse and return column alignments in given separator line

param: string   $line
return: string[]

processCurrentTable()   X-Ref
Process current table declaration

return: void

processTables()   X-Ref
Process all the captured tables

return: void



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1