Str
extends Base
in package
Table of Contents
Properties
- $fd : mixed
Methods
- __construct() : mixed
- date() : mixed
- Formats a given date string with a given date format
- escape() : mixed
- Escapes a string
- getTemplate() : mixed
- Central method to generate a new theme object so that we can centralize and inject variables into the library
- truncate() : mixed
- Truncates a string to a specific length specified by caller
Properties
$fd
protected
mixed
$fd
= null
Methods
__construct()
public
__construct(mixed $fd) : mixed
Parameters
- $fd : mixed
date()
Formats a given date string with a given date format
public
date(mixed $timestamp[, mixed $format = 'DATE_FORMAT_LC2' ][, mixed $withOffset = true ]) : mixed
Parameters
- $timestamp : mixed
- $format : mixed = 'DATE_FORMAT_LC2'
- $withOffset : mixed = true
Tags
escape()
Escapes a string
public
escape(mixed $str) : mixed
Parameters
- $str : mixed
Tags
getTemplate()
Central method to generate a new theme object so that we can centralize and inject variables into the library
public
getTemplate() : mixed
Tags
truncate()
Truncates a string to a specific length specified by caller
public
truncate(mixed $text[, mixed $max = 250 ][, mixed $ellipses = '...' ][, mixed $options = [] ]) : mixed
Parameters
- $text : mixed
- $max : mixed = 250
- $ellipses : mixed = '...'
- $options : mixed = []