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

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

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

Метод Описание
imageFromBlob ( string $content, array $options = [] ) : string Display image tag from blob content.
implementedEvents ( ) : array Event listeners.
linkComplete ( string $title, string | array | null $url = null, array $options = [] ) : string Keep query string params for pagination/filter for this link, e.g. after edit action.
linkReset ( string $title, string | array | null $url = null, array $options = [] ) : string Creates a reset HTML link.

Описание методов

imageFromBlob() публичный Метод

Enhancement for HtmlHelper. Defaults to png image Options: - type: png, gif, jpg, ...
public imageFromBlob ( string $content, array $options = [] ) : string
$content string Data in binary form
$options array Attributes
Результат string HTML image tag

implementedEvents() публичный Метод

Event listeners.
public implementedEvents ( ) : array
Результат array

linkComplete() публичный Метод

### Options - escape Set to false to disable escaping of title and attributes. - escapeTitle Set to false to disable escaping of title. Takes precedence over value of escape) - confirm JavaScript confirmation message.
public linkComplete ( string $title, string | array | null $url = null, array $options = [] ) : string
$title string The content to be wrapped by tags.
$url string | array | null URL or array of URL parameters, or external URL (starts with http://)
$options array Array of options and HTML attributes.
Результат string An `` element.

linkReset() публичный Метод

The prefix and plugin params are resetting to default false. ### Options - escape Set to false to disable escaping of title and attributes. - escapeTitle Set to false to disable escaping of title. Takes precedence over value of escape) - confirm JavaScript confirmation message.
public linkReset ( string $title, string | array | null $url = null, array $options = [] ) : string
$title string The content to be wrapped by tags.
$url string | array | null URL or array of URL parameters, or external URL (starts with http://)
$options array Array of options and HTML attributes.
Результат string An `` element.