\Hazaar\Text\Template
Modifier
Summary
Methods Properties Constants
cat
No constants
Properties
Static
$modifiers
$modifiers
Methods
()
($value, $default = null)

Parameters

$value

No description

$default

No description

capitalize()
capitalize($string)

Parameters

$string

No description

cat()
cat()
count_characters()
count_characters($string, $include_whitespace = false)

Parameters

$string

No description

$include_whitespace

No description

count_paragraphs()
count_paragraphs($string)

Parameters

$string

No description

count_sentences()
count_sentences($string)

Parameters

$string

No description

count_words()
count_words($string)

Parameters

$string

No description

date_format()
date_format($item, $format)

Parameters

$item

No description

$format

No description

escape()
escape($string, $format = 'html', $character_encoding = 'ISO-8859-1')

Parameters

$string

No description

$format

No description

$character_encoding

No description

Static
has_function()
has_function($func)

Parameters

$func

No description

indent()
indent($string, $length = 4, $pad_string = ' ')

Parameters

$string

No description

$length

No description

$pad_string

No description

lower()
lower($string)

Parameters

$string

No description

nl2br()
nl2br($string)

Parameters

$string

No description

regex_replace()
regex_replace($string, $pattern = '//', $replacement = '')

Parameters

$string

No description

$pattern

No description

$replacement

No description

replace()
replace($string, $search, $replace)

Parameters

$string

No description

$search

No description

$replace

No description

spacify()
spacify($string, $replacement = ' ')

Parameters

$string

No description

$replacement

No description

string_format()
string_format($string, $format)

Parameters

$string

No description

$format

No description

strip()
strip($string, $replacement = ' ')

Parameters

$string

No description

$replacement

No description

strip_tags()
strip_tags($string)

Parameters

$string

No description

truncate()
truncate($string, $chars = 80, $text = '...', $cut = false, $middle = false)

Parameters

$string

No description

$chars

No description

$text

No description

$cut

No description

$middle

No description

upper()
upper($string)

Parameters

$string

No description

wordwrap()
wordwrap($string, $width = 80, $break = '"\n"', $cut = true)

Parameters

$string

No description

$width

No description

$break

No description

$cut

No description