Phpxforms documentation

Body
in package

AbstractYes

Abstract core for html body with css and js functions

Tags
author

DaVee

version
0.87dev
license

Lesser General Public License 2.1 or later; see http://www.gnu.org/licenses/lgpl-2.1.html

Table of Contents

Properties

$css  : array<string, mixed>
$dynamicTag  : string|null
$scripts  : array<string, mixed>
$title  : string

Methods

addCss()  : void
Add CSS
addScript()  : void
Add javascript
getAlert()  : string
Get bootstrap like alert
getCSS()  : array<string, mixed>
Get CSS
getScript()  : array<string, mixed>
Get javascript
getTitle()  : string
Get page title

Properties

$css

protected array<string, mixed> $css = []

$dynamicTag

protected string|null $dynamicTag = null

$scripts

protected array<string, mixed> $scripts = []

$title

protected string $title = ''

Methods

addCss()

Add CSS

public final addCss(string $type, string $value[, string $media = 'all' ]) : void
Parameters
$type : string

FILE,CODE

$value : string

depends on type

$media : string = 'all'

css media type

addScript()

Add javascript

public final addScript(string $type, array<string, mixed>|string|null $value) : void
Parameters
$type : string

FILE,READY,GLOBAL,ARRAY

$value : array<string, mixed>|string|null

depends on type

getAlert()

Get bootstrap like alert

public static getAlert(string $text[, string $type = 'danger' ]) : string
Parameters
$text : string
$type : string = 'danger'

alert type

Return values
string

getCSS()

Get CSS

public final getCSS() : array<string, mixed>
Return values
array<string, mixed>

getScript()

Get javascript

public final getScript() : array<string, mixed>
Return values
array<string, mixed>

getTitle()

Get page title

protected getTitle([string $split = ' - ' ]) : string
Parameters
$split : string = ' - '
Return values
string

        
On this page

Search results