FacturaScripts

CodePatterns extends CodePatterns
in package

Class created by Core/Internal/PluginsDeploy

Table of Contents

Methods

trans()  : string
Transform a text according to patterns and indicated format.

Methods

trans()

Transform a text according to patterns and indicated format.

public static trans(string $text, object &$model[, array<string|int, mixed> $options = [] ]) : string

The options parameter can contain the name of the field to use for each pattern. If not reported, field names will be used by default. eg: ['date' => 'creationdate']

Parameters
$text : string
$model : object
$options : array<string|int, mixed> = []
Return values
string

        
On this page

Search results