Tac_Controller Class Reference

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.

Detailed Description

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.


Member Function Documentation

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.

Parameters:
$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.

Parameters:
$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 (  ) 

Refresh the content of a widget.

$_POST['key'] is used through $this->input->post(). It should contain the ID for the widget that should be refreshed.

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 (  ) 

Remove widget.

$_POST['key'] is used through $this->input->post() and should contain the ID of the widget to delete.

Tac_Controller::on_widget_save_settings (  ) 

Save settings for a widget.

$_POST['key'] is used through $this->input->post() and should contain the ID of the widget to update. $_POST['setting'] is also used should contain the settings to save.

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


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables

Generated on 19 Dec 2018 for ninja by  doxygen 1.6.1