PHP Класс Cake\View\Helper\HtmlHelper

HtmlHelper encloses all methods needed while working with HTML pages.
Наследование: extends Cake\View\Helper, use trait Cake\View\Helper\StringTemplateTrait
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$helpers array List of helpers used by this helper
$response Cake\Network\Response Reference to the Response object

Защищенные свойства (Protected)

Свойство Тип Описание
$_crumbs array Breadcrumbs.
$_defaultConfig array Default config for this class
$_docTypes array Document type definitions
$_includedAssets array Names of script & css files that have been included once
$_scriptBlockOptions array Options for the currently opened script block buffer if any.

Открытые методы

Метод Описание
__construct ( Cake\View\View $View, array $config = [] ) Constructor
addCrumb ( string $name, string | array | null $link = null, array $options = [] ) Adds a link to the breadcrumbs array.
charset ( string | null $charset = null ) : string Returns a charset META-tag.
css ( string | array $path, array $options = [] ) : string | null Creates a link element for CSS stylesheets.
div ( string | null $class = null, string | null $text = null, array $options = [] ) : string Returns a formatted DIV tag for HTML FORMs.
docType ( string $type = 'html5' ) : string | null Returns a doctype string.
getCrumbList ( array $options = [], string | array | boolean $startText = false ) : string | null Returns breadcrumbs as a (x)html list
getCrumbs ( string $separator = '»', string | array | boolean $startText = false ) : string | null Returns the breadcrumb trail as a sequence of »-separated links.
image ( string $path, array $options = [] ) : string Creates a formatted IMG element.
implementedEvents ( ) : array Event listeners.
link ( string $title, string | array | null $url = null, array $options = [] ) : string Creates an HTML link.
media ( string | array $path, array $options = [] ) : string Returns an audio/video element
meta ( string | array $type, string | array | null $content = null, array $options = [] ) : string Creates a link to an external resource and handles basic meta tags
nestedList ( array $list, array $options = [], array $itemOptions = [] ) : string Build a nested list (UL/OL) out of an associative array.
para ( string $class, string $text, array $options = [] ) : string Returns a formatted P tag.
script ( string | array $url, array $options = [] ) : string | null Returns one or many