[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/inc/Form/ -> TagCloseElement.php (summary)

(no description)

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

Defines 1 class

TagCloseElement:: (6 methods):
  __construct()
  addClass()
  id()
  attr()
  attrs()
  toHTML()


Class: TagCloseElement  - X-Ref

Class TagCloseElement

Creates an HTML close tag. You have to make sure it has been opened
before or this will produce invalid HTML

__construct($tag, $attributes = [])   X-Ref

param: string $tag
param: array $attributes

addClass($class)   X-Ref
do not call this

return: void
param: string $class

id($id = null)   X-Ref
do not call this

return: string
param: null|string $id

attr($name, $value = null)   X-Ref
do not call this

return: string
param: string $name
param: null|string $value

attrs($attributes = null)   X-Ref
do not call this

return: array
param: array|null $attributes

toHTML()   X-Ref
The HTML representation of this element

return: string