Documentation

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
since
1.0.0
access

public

escape()

Escapes a string

public escape(mixed $str) : mixed
Parameters
$str : mixed
Tags
since
1.0.0
access

public

getTemplate()

Central method to generate a new theme object so that we can centralize and inject variables into the library

public getTemplate() : mixed
Tags
since
1.0.0
access

public

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 = []
Tags
since
1.0.0
access

public


        
On this page

Search results