PHP Class Tools\View\Helper\HtmlHelper

HtmlHelper encloses all methods needed while working with HTML pages.
Inheritance: extends Cake\View\Helper\HtmlHelper
Afficher le fichier Open project: dereuromark/cakephp-tools Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

imageFromBlob() public méthode

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
Résultat string HTML image tag

implementedEvents() public méthode

Event listeners.
public implementedEvents ( ) : array
Résultat array

linkComplete() public méthode

### 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.
Résultat string An `` element.

linkReset() public méthode

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.
Résultat string An `` element.