\DashboardController

Controller to handle rendering of dashboard Handles ajax calls for database fetching

Summary

Methods
Properties
Constants
getToDashboard()
renderScore()
getUploadIds()
getResultIds()
getResultValueById()
No public properties found
No constants found
setupLayout()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

getToDashboard()

getToDashboard() : \Illuminate\View\View

Function to handle GET request for dashboard

Returns

\Illuminate\View\View —

The dashboard view

renderScore()

renderScore(  $id,   $part = null) : \Illuminate\View\View

Function to handle GET request for score view

Parameters

$id
$part

Returns

\Illuminate\View\View —

The dashboard view

getUploadIds()

getUploadIds() : string

Function to get all upload ids for current user (Ajax)

Returns

string —

A JSON string containing an array of upload ids

getResultIds()

getResultIds() : string

Function to get all result ids for current user

Returns

string —

A JSON string containing an array of result ids

getResultValueById()

getResultValueById(integer  $id) : string

Function to get the result for a given id

Parameters

integer $id

The result id

Returns

string —

A JSON string containing the result object

setupLayout()

setupLayout() : void

Setup the layout used by the controller.