PHP Class Timber\Twig

Afficher le fichier Open project: jarednova/timber Class Usage Examples

Méthodes publiques

Свойство Type Description
$dir_name

Méthodes publiques

Méthode Description
__construct ( )
add_list_separators ( array $arr, string $first_delimiter = ',', string $second_delimiter = 'and' ) : string
add_timber_escapers ( Twig_Environment $twig ) : Twig_Environment
add_timber_filters ( Twig_Environment $twig ) : Twig_Environment
convert_pre_entities ( array $matches ) : string
exec_function ( string $function_name ) : mixed
init ( )
intl_date ( string $date, string $format = null ) : string
time_ago ( integer | string $from, integer | string $to = null, string $format_past = '%s ago', string $format_future = '%s from now' ) : string
to_array ( mixed $arr ) : array
twig_pretags ( string $content ) : string

Method Details

__construct() public méthode

public __construct ( )

add_list_separators() public méthode

public add_list_separators ( array $arr, string $first_delimiter = ',', string $second_delimiter = 'and' ) : string
$arr array
$first_delimiter string
$second_delimiter string
Résultat string

add_timber_escapers() public méthode

public add_timber_escapers ( Twig_Environment $twig ) : Twig_Environment
$twig Twig_Environment
Résultat Twig_Environment

add_timber_filters() public méthode

public add_timber_filters ( Twig_Environment $twig ) : Twig_Environment
$twig Twig_Environment
Résultat Twig_Environment

convert_pre_entities() public méthode

public convert_pre_entities ( array $matches ) : string
$matches array
Résultat string

exec_function() public méthode

public exec_function ( string $function_name ) : mixed
$function_name string
Résultat mixed

init() public static méthode

public static init ( )

intl_date() public méthode

public intl_date ( string $date, string $format = null ) : string
$date string
$format string (optional)
Résultat string

time_ago() public méthode

public time_ago ( integer | string $from, integer | string $to = null, string $format_past = '%s ago', string $format_future = '%s from now' ) : string
$from integer | string
$to integer | string
$format_past string
$format_future string
Résultat string

to_array() public méthode

public to_array ( mixed $arr ) : array
$arr mixed
Résultat array

twig_pretags() public méthode

public twig_pretags ( string $content ) : string
$content string
Résultat string

Property Details

$dir_name public_oe static_oe property

public static $dir_name