PHP Class HtmlHelper, spaghettiphp

Inheritance: extends Helper
显示文件 Open project: spaghettiphp/spaghettiphp Class Usage Examples

Public Properties

Property Type Description
$scriptsForLayout
$stylesForLayout

Protected Properties

Property Type Description
$view

Public Methods

Method Description
__construct ( $view )
attr ( $attr )
charset ( $charset = null )
closeTag ( $tag )
image ( $src, $attr = [] )
imagelink ( $src, $url, $img_attr = [], $attr = [], $full = false )
link ( $text, $url = null, $attr = [], $full = false )
nestedList ( $list, $attr = [], $type = 'ul' )
openTag ( $tag, $attr = [], $empty = false )
script ( )
stylesheet ( )
tag ( $tag, $content = '', $attr = [], $empty = false )

Protected Methods

Method Description
normalizeArgs ( $args )

Method Details

__construct() public method

public __construct ( $view )

attr() public method

public attr ( $attr )

charset() public method

public charset ( $charset = null )

closeTag() public method

public closeTag ( $tag )

image() public method

public image ( $src, $attr = [] )

nestedList() public method

public nestedList ( $list, $attr = [], $type = 'ul' )

normalizeArgs() protected method

protected normalizeArgs ( $args )

openTag() public method

public openTag ( $tag, $attr = [], $empty = false )

script() public method

public script ( )

stylesheet() public method

public stylesheet ( )

tag() public method

public tag ( $tag, $content = '', $attr = [], $empty = false )

Property Details

$scriptsForLayout public_oe property

public $scriptsForLayout

$stylesForLayout public_oe property

public $stylesForLayout

$view protected_oe property

protected $view