class Amchart extends UIComponent

Constants

SYSTEM_TEMPLATE_UI_FOLDER

Properties

$xf_link from UIComponent
$link_id from UIComponent
array $GPvars from UIComponent
Controller $mod from UIComponent
protected array $local_template_marker from UIComponent
protected bool $_overwrite_param_array from UIComponent
protected bool|array|ModelCollection $marker_content from UIComponent
string $mod_object_manager from UIComponent
protected bool $_orig_marker_content from UIComponent
protected array $_allowed_params_filter from UIComponent
string $unique_dom_id from UIComponent
protected string $uid from UIComponent

Methods

__construct(bool $link_id = false)

UIComponent constructor.

init()

put your comment there.

set_mod(mixed $mod)

Set link to owning module

set(mixed $var, mixed $value = false)

Set Variable / Option

set_array(mixed $member_array, mixed $vars)

Set Variable / Option for an array

set_render_params(mixed $input_params = array())

Used to inject params. Only allowed params will be used (see $allowed_params_filter)

set_marker_content(mixed $marker_content = false)

sets marker_content to passed data -> restore original content with reset_marker_content()

reset_marker_content()

restores original content of marker_content

mixed
get(mixed $var)

Get Variable / Option

string
get_unique_dom_id()

Generates a unique dom id, dependent on the provided UID, as well as the current context.

string
parse_template(string $template_content, array|bool $marker_array = false)

No description

string
parse_template_cb_wrapper(mixed $matches)

No description

mixed|string
parse_xtag($xml_source)

No description

mixed
render_xtag_element()

No description

get_view(string|bool $section = false)

Return new template view If using within module xui the tpl file should be named [class_name].tpl e.g. xui_core_table.tpl within the module's template folder

process()

Declared in Classes

render()

No description

get_chart_pie(array $category_values = array())

Get PIE Chart

get_chart_bar(array $category_values = array(), bool $format_category_as_date = false, bool|string $title = false)

Get BAR Chart

get_chart_gantt()

Get a gantt chart

get_chart_custom(mixed $json_data)

No description

get_chart_map(mixed $json_data)

No description

render_xui()

No description

Details

in UIComponent at line 59
__construct(bool $link_id = false)

UIComponent constructor.

Parameters

bool $link_id

at line 19
init()

put your comment there.

..

in UIComponent at line 84
set_mod(mixed $mod)

Set link to owning module

Parameters

mixed $mod

in UIComponent at line 100
set(mixed $var, mixed $value = false)

Set Variable / Option

Parameters

mixed $var Name of Variable to Set (Alternative: Assoc-Array for multiple variables)
mixed $value Value of Variable

in UIComponent at line 116
set_array(mixed $member_array, mixed $vars)

Set Variable / Option for an array

Parameters

mixed $member_array Name of Variable to Set (Alternative: Assoc-Array for multiple variables)
mixed $vars Value of Variable

in UIComponent at line 129
set_render_params(mixed $input_params = array())

Used to inject params. Only allowed params will be used (see $allowed_params_filter)

Parameters

mixed $input_params

in UIComponent at line 159
set_marker_content(mixed $marker_content = false)

sets marker_content to passed data -> restore original content with reset_marker_content()

Parameters

mixed $marker_content

in UIComponent at line 168
reset_marker_content()

restores original content of marker_content

in UIComponent at line 180
mixed get(mixed $var)

Get Variable / Option

Parameters

mixed $var

Return Value

mixed

in UIComponent at line 197
string get_unique_dom_id()

Generates a unique dom id, dependent on the provided UID, as well as the current context.

Return Value

string

in UIComponent at line 216
string parse_template(string $template_content, array|bool $marker_array = false)

Parameters

string $template_content HTML Template
array|bool $marker_array Markers and Values

Return Value

string Parsed HTML Content

in UIComponent at line 230
string parse_template_cb_wrapper(mixed $matches)

Parameters

mixed $matches

Return Value

string

in UIComponent at line 256
mixed|string parse_xtag($xml_source)

Parameters

$xml_source

Return Value

mixed|string

Exceptions

ContentException

in UIComponent at line 264
mixed render_xtag_element()

Return Value

mixed

in UIComponent at line 285
Template get_view(string|bool $section = false)

Return new template view If using within module xui the tpl file should be named [class_name].tpl e.g. xui_core_table.tpl within the module's template folder

Parameters

string|bool $section Name

Return Value

Template

Exceptions

Exception

in UIComponent at line 320
process()

Declared in Classes

in UIComponent at line 321
render()

at line 38
AmchartPie get_chart_pie(array $category_values = array())

Get PIE Chart

Parameters

array $category_values (CAT=>VALUE)

Return Value

AmchartPie

at line 55
AmchartBar get_chart_bar(array $category_values = array(), bool $format_category_as_date = false, bool|string $title = false)

Get BAR Chart

Parameters

array $category_values (CAT=>VALUE)
bool $format_category_as_date Treat Category as Date
bool|string $title Title

Return Value

AmchartBar

at line 73
AmchartGantt get_chart_gantt()

Get a gantt chart

Return Value

AmchartGantt

at line 82
AmchartChart get_chart_custom(mixed $json_data)

Parameters

mixed $json_data Chart Definition as JSON string or stdClass

Return Value

AmchartChart

at line 97
AmchartChart get_chart_map(mixed $json_data)

Parameters

mixed $json_data Chart Definition as JSON string or stdClass

Return Value

AmchartChart

at line 107
protected render_xui()