Properties

$tags

$tags :

Type

$default_tags

$default_tags :

Type

Methods

__construct()

__construct(\apex\svc\date  $date,\apex\svc\hashes  $hashes)

Construct

Parameters

\apex\svc\date $date

the /app/utils/data.php class. Injected.

\apex\svc\hashes $hashes

The /app/utils/hashes.php class. Injected

get_tag()

get_tag(string  $tag_name): string

Get a single tag HTML

Parameters

string $tag_name

The tag name to get.

Returns

string —

The HTML code of the tag.

callouts()

callouts(array  $messages)

Callouts

Is replaced with the standard success / error / warning messages on the top of a page contents alertying the user of a successful action being completed, user submission error, etc.

Parameters

array $messages

An array of the callouts to format.

page_title()

page_title(array  $attr,string  $text): string

Page title

Page title. Checks the database first for a defined title, if none exists, checks the TPL code for

tags, and otherwise just uses the site name configuration variable.

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

form()

form(array  $attr,string  $text = ''): string

Replaced with a standard <form> tag, and unless attributes are defined to the contrary, the action points to the current template being displayed, with a method of POST.

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

form_table()

form_table(array  $attr,string  $text): string

Form table.

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

ft_seperator()

ft_seperator(array  $attr,string  $text = ''): string

Seperator. Used to separate different groups of form fields.

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

__call()

__call(string  $tag_name,array  $params): string

Call HTML tag.

Parameters

string $tag_name

The method / tag name being called.

array $params

The additional arams passed

Returns

string —

The resulting HTML code

ft_custom()

ft_custom(array  $attr,string  $text = ''): string

ft_custom

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

ft_blank()

ft_blank(array  $attr,string  $text = ''): string

ft_blank

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

ft_submit()

ft_submit(array  $attr,string  $text = ''): string

ft_submit

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

submit()

submit(array  $attr,string  $text = ''): string

submit

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

boolean()

boolean(array  $attr,string  $text = ''): string

boolean

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

select()

select(array  $attr,string  $text = ''): string

select

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

textbox()

textbox(array  $attr,string  $text = ''): string

textbox

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

amount()

amount(array  $attr,string  $text = ''): string

Amount text box

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

phone()

phone(array  $attr,string  $text = ''): string

phone

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

textarea()

textarea(array  $attr,string  $text = ''): string

textarea

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

button()

button(array  $attr,string  $text = ''): string

button

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

box()

box(array  $attr,string  $text = ''): string

Box / panel

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

box_header()

box_header(array  $attr,string  $text = ''): string

Box / panel header

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

input_box()

input_box(array  $attr,string  $text = ''): string

Input Box.

Full width, short bar / container for things such as search boxes, or other elements to separate from page conents. Example is Users->Manage User menu.

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

data_table()

data_table(array  $attr,string  $text = ''): string

Data table

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

pagination()

pagination(array  $attr,string  $text = ''): string

Pagination links

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

tab_control()

tab_control(array  $attr,string  $text): string

Tab control

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

boxlist()

boxlist(array  $attr,string  $text = ''): string

Boxlist

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

date()

date(array  $attr,string  $text = ''): string

date

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

time()

time(array  $attr,string  $text = ''): string

Time

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

date_interval()

date_interval(array  $attr,string  $text = ''): string

date interval

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

placeholder()

placeholder(array  $attr = array(),string  $text = ''): string

Placeholder

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

recaptcha()

recaptcha(array  $attr = array(),string  $text = ''): string

reCaptcha

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

dashboard()

dashboard(array  $attr,string  $text): string

Dashboard

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

dropdown_alerts()

dropdown_alerts(array  $attr,string  $text): string

Dropdown list of all unread notifications

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

dropdown_messages()

dropdown_messages(array  $attr,string  $text): string

Dropdown list of messages

Parameters

array $attr

All attributes passed within the HTML tag.

string $text

The text between the opening and closing tags, if applicable.

Returns

string —

The resulting HTML code.

read_tags()

read_tags()

Read the /tags.tpl file for the theme.

ft_row()

ft_row(string  $form_field,array  $attr,\apex\app\web\string  $text = ''): string

Form table row.

Parameters

string $form_field

The tag name of the form field.

array $attr

The attributes passed to the tab.

\apex\app\web\string $text

Returns

string —

The resulting HTML code

data_table_th()

data_table_th(array  $attr,string  $name): string

Header cell of data table (a:th>)

Parameters

array $attr

The attributes within the tag.

string $name

The name of the header column

Returns

string —

The resulting HTML code

pagination_item()

pagination_item(string  $name,string  $url,integer  $page,string  $display = 'visible'): string

Pagination single list item.

Parameters

string $name

The display name of the item.

string $url

The URL to link the item to.

integer $page

The number number to link to.

string $display

The display style of the item. Defaults to 'visible'.

Returns

string —

The resulting HTML code of the paginiation item.