Displays a toolbox of drop down UL's to assign tracks / surveys to a patient.

A snippet is a piece of html output that is reused on multiple places in the code.

Variables are intialized using the \MUtil_Registry_TargetInterface mechanism.

package Gems
subpackage Snippets_Tracker
copyright Copyright (c) 2011 Erasmus MC
license New BSD License
since Class available since version 1.1

 Methods

Called after the check that all required registry values have been set correctly has run.

afterRegistry() : void

Allow manual assignment of surveys/tracks to a patient

getHtmlOutput(\Zend_View_Abstract $view) : \MUtil_Html_HtmlInterface

If project uses the \Gems_Project_Tracks_MultiTracksInterface, show a track drowpdown If project uses the \Gems_Project_Tracks_StandAloneSurveysInterface, show a survey drowpdown for both staff and patient

Parameters

$view

\Zend_View_Abstract

Just in case it is needed here

Returns

\MUtil_Html_HtmlInterfaceSomething that can be rendered

_getTracks()

_getTracks($trackType, $pageRef, $trackTypeDescription) 

Parameters

$trackType

$pageRef

$trackTypeDescription

 Properties

 

$db

$db : \Zend_Db_Adapter_Abstract

Default

 

When using bootstrap and more than this number of items the dropdowns will support scrolling.

$scrollTreshold : integer

Default

10
 

Switch to set display of respondent dropdown on or off

$showForRespondents : mixed

Default

true
 

Switch to set display of staff dropdown on or off

$showForStaff : mixed

Default

true
 

Switch to set display of track dropdown on or off

$showForTracks : mixed

Default

true
 

When string, string is used for display, when false, nothing is displayed

$showTitle : mixed

Default

true
 

$cache

$cache : \Zend_Cache_Core

Default

 

$menu

$menu : \Gems_Menu

Default

 

Optional: $request or $tokenData must be set

$request : \Zend_Controller_Request_Abstract

Default