PHP Class Bootstrap\View\BootstrapStringTemplate

Inheritance: extends Cake\View\StringTemplate
Afficher le fichier Open project: holt59/cakephp3-bootstrap3-helpers

Méthodes publiques

Méthode Description
format ( string $name, array $data ) : string Format a template string with $data

Méthodes protégées

Méthode Description
_compileTemplates ( array $templates = [] ) : void Compile templates into a more efficient printf() compatible format.

Method Details

_compileTemplates() protected méthode

Compile templates into a more efficient printf() compatible format.
protected _compileTemplates ( array $templates = [] ) : void
$templates array The template names to compile. If empty all templates will be compiled.
Résultat void

format() public méthode

Format a template string with $data
public format ( string $name, array $data ) : string
$name string The template name.
$data array The data to insert.
Résultat string