Arikaim CMS

Html
in package

Html builder

Table of Contents

Properties

$append  : bool
Append or replace content
$document  : string
Html document content;

Methods

__callStatic()  : mixed
Call static methods
appendHtml()  : void
Append html code
attr()  : string
Get html attribute
createId()  : string
Create valid html element id
endTag()  : string
Get html end tag
getAttributes()  : string
Convert attributes array to string
getDocument()  : string
Get html code
htmlTag()  : string
Get html tag code
removeTags()  : string|null
Remove html gams from text
renderDocument()  : string
Show html code
singleTag()  : string
Get html single tag
specialcharsDecode()  : string
Decode html chars
startDocument()  : void
Start html
startTag()  : string
Get html start tag

Properties

$append

Append or replace content

private static bool $append

$document

Html document content;

private static string $document = ''

Methods

__callStatic()

Call static methods

public static __callStatic(string $name, array<string|int, mixed> $arguments) : mixed
Parameters
$name : string
$arguments : array<string|int, mixed>

appendHtml()

Append html code

public static appendHtml(string $html) : void
Parameters
$html : string

attr()

Get html attribute

public static attr(string|null $value[, string|null $name = null ][, string|null $default = null ]) : string
Parameters
$value : string|null
$name : string|null = null
$default : string|null = null
Return values
string

createId()

Create valid html element id

public static createId(string $text[, string $separator = '-' ]) : string
Parameters
$text : string
$separator : string = '-'
Return values
string

endTag()

Get html end tag

public static endTag(string $name[, string|null $content = '' ]) : string
Parameters
$name : string
$content : string|null = ''
Return values
string

getAttributes()

Convert attributes array to string

public static getAttributes(array<string|int, mixed>|null $attributes) : string
Parameters
$attributes : array<string|int, mixed>|null
Return values
string

getDocument()

Get html code

public static getDocument() : string
Return values
string

htmlTag()

Get html tag code

public static htmlTag(string $name, string|null $content[, array<string|int, mixed>|null $attributes = null ][, bool $singleTag = false ][, bool $startTagOnly = false ]) : string
Parameters
$name : string
$content : string|null
$attributes : array<string|int, mixed>|null = null
$singleTag : bool = false
$startTagOnly : bool = false
Return values
string

removeTags()

Remove html gams from text

public static removeTags(string $text, string|array<string|int, mixed> $tags) : string|null
Parameters
$text : string
$tags : string|array<string|int, mixed>
Return values
string|null

renderDocument()

Show html code

public static renderDocument() : string
Return values
string

singleTag()

Get html single tag

public static singleTag(string $name[, array<string|int, mixed>|null $attributes = null ]) : string
Parameters
$name : string
$attributes : array<string|int, mixed>|null = null
Return values
string

specialcharsDecode()

Decode html chars

public static specialcharsDecode(string $value) : string
Parameters
$value : string
Return values
string

startDocument()

Start html

public static startDocument() : void

startTag()

Get html start tag

public static startTag(string $name[, array<string|int, mixed>|null $attributes = null ]) : string
Parameters
$name : string
$attributes : array<string|int, mixed>|null = null
Return values
string

        
On this page

Search results