Adds a template to the display stack, so when the display function is called, the templates will be output in the order they were added.
void
addView
(string $template)
string
createAjaxUrl
([string $method = false], [array $bits = false], [string $module = false], [ $interface = false])
-
string
$module
-
array
$bits: Additional arguments to pass through the url
-
string
$method
-
$interface
string
createFormAction
([string $method = false])
void
createLink
(string $text, [string $method = false], [ $bits = false], [string $module = false], [string $title = false], [ $interface = false])
-
string
$title
-
string
$module
-
string
$method
-
string
$text
-
$bits
-
$interface
string
createSelfLink
( $text, [array $bits = false], [string $method = false])
-
array
$bits
-
string
$method
-
$text
string
createSelfUrl
([ $bits = false], [string $method = false], array $params)
-
array
$params
-
string
$method
-
$bits
string
createUrl
([string $method = false], [array $bits = false], [string $module = false], [ $interface = false])
-
string
$module
-
array
$bits: Additional arguments to pass through the url
-
string
$method
-
$interface
string
createXhtmlValidSelfUrl
([ $bits = false], [string $method = false], array $params)
-
array
$params
-
string
$method
-
$bits
string
createXhtmlValidUrl
([string $method = false], [array $bits = false], [string $module = false], [ $interface = false])
-
string
$module
-
array
$bits: Additional arguments to pass through the url
-
string
$method
-
$interface
float
daysBetween
(datetime $start, datetime $end)
-
datetime
$start
-
datetime
$end
void
display
([$data $data = false])
-
$data
$data: Array of data to be passed
string
encodeTextEntities
(string $string)
mixed
filterValue
([string $key = false])
-
string
$key: The key of the filter value you want
void
formatAddress
([ $add_1 = ''], [ $add_2 = ''], [ $city = ''], [ $state = ''], [ $zip = ''], [ $country = ''])
-
$add_1
-
$add_2
-
$city
-
$state
-
$zip
-
$country
string
getModuleTemplateDir
([ $module = false], [ $interface = false])
void
getSelectOptions
([array $grabSelectArray = false], [mixed $match_value = false], [boolean $prepend_blank = false], [string $blank_text = false])
-
array
$grabSelectArray
-
mixed
$match_value
-
boolean
$prepend_blank
-
string
$blank_text
array
grabSelectArray
(string $selectTable, string $selectField, [string $method = "ENUM"], [string $orderby = 'id'], [string $select_id = 'id'], [string $where = false])
-
string
$selectTable
-
string
$selectField
-
string
$method
-
string
$orderby
-
string
$select_id
-
string
$where
void
loadLanguageTerms
([array $terms = false])
string
na
(mixed $value, [string $replace = 'N/A'])
-
mixed
$value
-
string
$replace
string
niceDate
(string $date, [string $date_format_string = "n/j/Y"], [mixed $empty_string = '-'], [boolean $date_only = false])
-
string
$date
-
string
$date_format_string: The format to print the date, if needed
-
mixed
$empty_string: What to print if the data is empty
-
boolean
$date_only: Whether or not to display nice names or just dates
void
resetTemplateQueue
()
string
sortLink
(string $title, string $location, string $sort_by)
-
string
$title
-
string
$location
-
string
$sort_by
string
text
(string $key)
string
truncateFilename
(string $fileame, [integer $char_length = 25], [string $separator = '…'])
-
string
$fileame
-
integer
$char_length
-
string
$separator
string
truncateText
(string $phrase, [integer $blurb_word_length = 40], [string $more_link = false])
-
string
$phrase
-
integer
$blurb_word_length
-
string
$more_link