[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

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

(no description)

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

Defines 1 class

Tag:: (32 methods):
  __construct()
  addFlags()
  cascadeInvalidationTo()
  invalidate()
  pairWith()
  canBePaired()
  removeFlags()
  setFlags()
  getAttributes()
  getEndTag()
  getFlags()
  getLen()
  getName()
  getPos()
  getSortPriority()
  getStartTag()
  getType()
  canClose()
  isBrTag()
  isEndTag()
  isIgnoreTag()
  isInvalid()
  isParagraphBreak()
  isSelfClosingTag()
  isSystemTag()
  isStartTag()
  isVerbatim()
  getAttribute()
  hasAttribute()
  removeAttribute()
  setAttribute()
  setAttributes()


Class: Tag  - X-Ref


__construct($type, $name, $pos, $len, $priority = 0)   X-Ref
Constructor

param: integer $type     Tag's type
param: string  $name     Name of the tag
param: integer $pos      Position of the tag in the text
param: integer $len      Length of text consumed by the tag
param: integer $priority This tag's sorting tiebreaker

addFlags($flags)   X-Ref
Add a set of flags to this tag's

param: integer $flags
return: void

cascadeInvalidationTo(Tag $tag)   X-Ref
Set given tag to be invalidated if this tag is invalidated

param: Tag  $tag
return: void

invalidate()   X-Ref
Invalidate this tag, as well as tags bound to this tag

return: void

pairWith(Tag $tag)   X-Ref
Pair this tag with given tag

param: Tag  $tag
return: void

canBePaired(Tag $startTag, Tag $endTag)   X-Ref
Test whether two tags can be paired


removeFlags($flags)   X-Ref
Remove a set of flags from this tag's

param: integer $flags
return: void

setFlags($flags)   X-Ref
Set the bitfield of boolean rules that apply to this tag

param: integer $flags Bitfield of boolean rules that apply to this tag
return: void

getAttributes()   X-Ref
Return this tag's attributes

return: array

getEndTag()   X-Ref
Return this tag's end tag

return: Tag|null This tag's end tag, or NULL if none is set

getFlags()   X-Ref
Return the bitfield of boolean rules that apply to this tag

return: integer

getLen()   X-Ref
Return the length of text consumed by this tag

return: integer

getName()   X-Ref
Return this tag's name

return: string

getPos()   X-Ref
Return this tag's position

return: integer

getSortPriority()   X-Ref
Return this tag's tiebreaker

return: integer

getStartTag()   X-Ref
Return this tag's start tag

return: Tag|null This tag's start tag, or NULL if none is set

getType()   X-Ref
Return this tag's type

return: integer

canClose(Tag $startTag)   X-Ref
Test whether this tag can close given start tag

param: Tag  $startTag A start tag
return: bool

isBrTag()   X-Ref
Test whether this tag is a br tag

return: bool

isEndTag()   X-Ref
Test whether this tag is an end tag (self-closing tags inclusive)

return: bool

isIgnoreTag()   X-Ref
Test whether this tag is an ignore tag

return: bool

isInvalid()   X-Ref
Test whether this tag is invalid

return: bool

isParagraphBreak()   X-Ref
Test whether this tag represents a paragraph break

return: bool

isSelfClosingTag()   X-Ref
Test whether this tag is a self-closing tag

return: bool

isSystemTag()   X-Ref
Test whether this tag is a special tag: "br", "i", "pb" or "v"

return: bool

isStartTag()   X-Ref
Test whether this tag is a start tag (self-closing tags inclusive)

return: bool

isVerbatim()   X-Ref
Test whether this tag represents verbatim text

return: bool

getAttribute($attrName)   X-Ref
Return the value of given attribute

param: string $attrName
return: mixed

hasAttribute($attrName)   X-Ref
Return whether given attribute is set

param: string $attrName
return: bool

removeAttribute($attrName)   X-Ref
Remove given attribute

param: string $attrName
return: void

setAttribute($attrName, $attrValue)   X-Ref
Set the value of an attribute

param: string $attrName  Attribute's name
param: string $attrValue Attribute's value
return: void

setAttributes(array $attributes)   X-Ref
Set all of this tag's attributes at once

param: array $attributes
return: void



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