Tactical overview controller Requires authentication. More...
Public Member Functions | |
_attach_assets_for_all_widgets (Menu_Model $menu=null) | |
Iterate through all widgets one time, to add the widgets' assets. | |
_current_dashboard () | |
Get the current dashboard. | |
change_layout () | |
When layout is changed it should be posted to this method. | |
index ($dashboard_id=0) | |
Display a TAC screen. | |
new_dashboard () | |
Render the new dashboard dialog, as an entire page. | |
share_dashboard () | |
Render the share dashboard dialog, as an entire page. | |
unshare_dashboard () | |
Remove read rights for a user that was given read rights by the logged in user. | |
rename_dashboard () | |
Render the new dashboard dialog, as an entire page. | |
login_dashboard () | |
Set Current dashboard as Login Dashboard. | |
delete_dashboard () | |
Delete the current dashboard. | |
on_change_positions () | |
Save new positions for widgets. | |
on_refresh () | |
Refresh the content of a widget. | |
on_widget_add () | |
Create a new widget of a given type. | |
on_widget_remove () | |
Remove widget. | |
on_widget_save_settings () | |
Save settings for a widget. | |
Static Public Member Functions | |
static | _helptexts ($id) |
Echo a helptext based on input id. |
Tactical overview controller Requires authentication.
op5, and the op5 logo are trademarks, servicemarks, registered servicemarks or registered trademarks of op5 AB. All other trademarks, servicemarks, registered trademarks, and registered servicemarks mentioned herein may be the property of their respective owner(s). The information contained herein is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.
Tac_Controller::_attach_assets_for_all_widgets | ( | Menu_Model $ | menu = null |
) |
Iterate through all widgets one time, to add the widgets' assets.
If you call this method with the menu parameter, all of the widgets will also be attached to that menu.
$menu | Menu_Model = null |
Tac_Controller::_current_dashboard | ( | ) |
Get the current dashboard.
public, but not exposed (prefix with _) due to testability
static Tac_Controller::_helptexts | ( | $ | id | ) | [static] |
Echo a helptext based on input id.
$id | string |
Tac_Controller::new_dashboard | ( | ) |
Render the new dashboard dialog, as an entire page.
So we don't need to render it on every page, fancybox can load the dialog from an URL.
Also receives the data from the form in the popup
Tac_Controller::on_change_positions | ( | ) |
Save new positions for widgets.
$_POST['positions'] is used through $this->input->post(). It should contain the widgets and their positions. A weird home-made format is used at the moment (but is converted into JSON below).
Tac_Controller::on_refresh | ( | ) |
Tac_Controller::on_widget_add | ( | ) |
Create a new widget of a given type.
$_POST['cell'] is used through $this->input->post(). It is expected to end with a number. The number should correspond to the cell where the widget is added. $_POST['widget'] is also used and is expected to be a widget name that corresponds to a predefined widget.
Tac_Controller::on_widget_remove | ( | ) |
Tac_Controller::on_widget_save_settings | ( | ) |
Tac_Controller::rename_dashboard | ( | ) |
Render the new dashboard dialog, as an entire page.
So we don't need to render it on every page, fancybox can load the dialog from an URL
Tac_Controller::share_dashboard | ( | ) |
Render the share dashboard dialog, as an entire page.
So we don't need to render it on every page, fancybox can load the dialog from an URL