Functions
There are five types of functions used by the University Package:
Whenever possible, for each function page, we try to show either some sample output or actual output. If the output of a function comes from another function or method, this will be indicated with [...]
or [... method() ...]
.
Naming Convention
The following method naming convention is used across all functions:
ListSomething()
- Gets a list of records from a datatype.GetSomething()
- Gets a single record from a datatype.AddSomething()
- Adds a single record from a datatype to aListSomething()
orGetSomething()
. Normally a private method.SearchSomething()
- Searches though aListSomething()
for specified parameter values.ShowSomething()
- Outputs a record as XHTML from aListSomething()
, aGetSomething()
, or aSearchSomething()
.
Functions, sometimes in combination, are used to generate one of these page types:
- List Pages - A page containing a list of multiple records in a Datatype. These often link to individual Record Pages.
- Record Pages - A page displaying a single Datatype record, usually from a Page Datafolder.
Formatting
All functions that output XHTML are un-styled, allowing you to add your own CSS stylesheets. They do however contain some Bootstrap classes, which you may decide to remove.
Localisation
The functions use Localisation Resources where necessary to provide appropriate text strings for supported website languages.