System:Template

From Aspen Documentation

Function Description
addView Adds a new template to the display queue. This function is to be used from within your class code.
createAjaxUrl Creates a url that is properly encoded for an ajax query. This will not use any clean urls.
createFormAction Creates a url that is properly encoded for a form action attribute. It automatically detects the id from the url.
createLink Used in creating a full anchor element of inter-framework links.
createSelfLink Creates a link to the current page with params, replacing any existing params with an array passed as an argument.
createUrl Used in creating an inter-framework URL.
createXhtmlValidUrl Used in creating an inter-framework URL. Returns an html-encoded version for validation purposes.
daysBetween Returns the number of days between two dates.
display Displays all templates loaded and set for display. This function is to be used from within your class code.
getModuleTemplateDir Returns template directory inside of current module.
getSelectOptions Prints a list of select box options with a pre-selected value, if set. This function may easily be used with the return value of grabSelectArray
getStateList Returns an array of US states. Abbreviation => Full Name
getTemplateDir Returns the current interface template directory.
grabSelectArray Returns an id=>value array for use in an html select element. May use distinct database table records, or will work with ENUM values for fields.
niceDate Prints a nicely formatted date. You may specify a format or use the default. Will properly handle empty or invalid dates eliminating the need for logic.
text Returns the current language value for a user-defined translation key.
truncateText Used for truncating long text at word X, and adding an ellipse and a link to "read more".