Global

Members

case_bindoverAction

This function handles submit button of case bindover form and adds the data to the table
Source:

complianceAction

This function handles submit button of compliance form and adds the data to the table
Source:

criminal_caseAction

This function handles submit button of criminal case form and adds the data to the table
Source:

eIntakeAction

This function handles submit button of e-intake form and adds the data to the table
Source:

fairIntakeAction

This function handles submit button of fair intake form and adds the data to the table
Source:

fineAction

This function handles submit button of payment acknowledgement form and adds the data to the table
Source:

newdateAction

This function handles submit button of new date form and adds the data to the table
Source:

newPleAction

This function handles submit button of plea form and adds the data to the table
Source:

popUpHandler

This is an object which consists of two functions namely closeIframe and open. closeIframe is a function that closes the form view in offender's dashboard open is a function that opens the forms in iframe in offender's dashboard
Source:

preTrialAction

This function handles submit button of pre-trial form and adds the data to the table
Source:

probationAction

This function handles submit button of probation form and adds the data to the table
Source:

proIntakeAction

This function handles submit button of probation intake form and adds the data to the table
Source:

recklessDrivingAction

This function handles submit button of reckless driving form and adds the data to the table
Source:

recommendationAction

This function handles submit button of recommendation form and adds the data to the table
Source:

session_info

This is an object to store some of the values after invite's dashboard is loaded
Source:

StaffAction

This is an object that consists of various functions to handle the staff's responses to be displayed in invite's dashboard. Forms and Activities gets filtered out and gets displayed on its respective view section. Status of forms are also displayed
Source:

toastrOptions

This object sets default values for popup modal such as increase time of display of message on the screen, position of the popup modal
Source:

Methods

current()

Current is the main function of this project, when dashboard is loaded this function is called, this function loads the roadmap, gets current queue position and renders it in offender's dashboard, loads Plea form and get registration details of the offender
Source:

(async) currntUserBeingServed()

This function subscribes the currently clicked offender and unsubscribes the old offender. Staffs own video gets started. Contents in the tab section are loaded according to the privilidges.
Source:

errorToastr()

This function shows the error (red) popup message on the screen
Source:

errorToastr(message)

This function shows the error (red) popup message on the screen
Parameters:
Name Type Description
message string Error Message
Source:

errorToastr(message)

This function shows the error (red) popup message on the screen
Parameters:
Name Type Description
message string Success Message
Source:

findCurrentStaff()

This function handles offender's session with current staff and unsubscribe session with the previous staff
Source:

getInvitations()

This function shows the invitation list section on staff's dashboard if there are any staff's invitations
Source:

getInviteStaffSessionActivities()

This function gets the overall staff's response and calls the StaffAction.updateDOM() function to render it's corresponding UI
Source:

getInviteStaffSessionActivitiesUpdate()

This function gets new/latest staff's response and calls the StaffAction.updateDOM() function to render it's corresponding UI. This function also shows the unread form counter number in mobile device
Source:

iframeControls()

This function handles the css of iframe
Source:

infoToastr()

This function shows the information (blue) popup message on the screen
Source:

infoToastr(message)

This function shows the information (blue) popup message on the screen
Parameters:
Name Type Description
message string Information Message
Source:

infoToastr(message)

This function shows the info (blue) popup message on the screen
Parameters:
Name Type Description
message string Information Message
Source:

invitee_detial()

This function gets the invitee details and render it on the staff's dashboard
Source:

jist_close()

This function stops the video session whenever staff ends the session with the offender
Source:

jist_start()

This function starts the video session
Source:

jist_start()

This function starts the video session and hides the content of queue information
Source:

jist_stop()

This function stops the video session
Source:

jist_stop()

This function stops the video session and shows the content of queue information
Source:

loadBindOver()

This function loads the bindover form's data, activates the bindover tab, and shows the list of bindover form if this form was previously sent or just shows the bindover button
Source:

loadBindoverList()

This function loads the bindover form's data, activates the bindover tab, and shows the list of bindover form if this form was previously sent or just shows the bindover button
Source:

loadCompliances()

This function loads the compliance form's data, activates the compliance tab, and shows the list of compliance form if this form was previously sent or just shows the compliance button
Source:

loadCriminalCase()

This function loads the criminal case form's data, activates the criminal case tab, and shows the list of criminal case form if this form was previously sent or just shows the criminal case button
Source:

loadCriminalCaseList()

This function loads the criminal case form's data, activates the criminal case tab, and shows the list of criminal case form if this form was previously sent or just shows the criminal case button
Source:

loadEintake()

This function loads the e-intake form's data, activates the e-intake tab, and shows the list of e-intake form if this form was previously sent or just shows the e-intake button
Source:

loadFairIntake()

This function loads the fair intake form's data, activates the fair intake tab, and shows the list of fair intake form if this form was previously sent or just shows the fair intake button
Source:

loadFine()

This function loads the payment acknowledgement form's data, activates the payment acknowledgement tab, and shows the list of payment acknowledgement form if this form was previously sent or just shows the payment acknowledgement button
Source:

loadNewDate()

This function loads the new-date form's data, activates the new-date tab, and shows the list of new-date form if this form was previously sent or just shows the new-date button
Source:

loadoffenderchoice()

This function loads the plea form's data sent from offender
Source:

loadParticpants()

This function activates the participants tab, and shows the list of currently active/online participants
Source:

loadPreTrial()

This function loads the pre-trial form's data, activates the pre-trial tab, and shows the list of pre-trial form if this form was previously sent or just shows the pre-trial button
Source:

loadPreTrialList()

This function loads the pre-trial form's data, activates the pre-trial tab, and shows the list of pre-trial form if this form was previously sent or just shows the pre-trial button
Source:

loadProIntake()

This function loads the probation intake form's data, activates the probation intake tab, and shows the list of probation intake form if this form was previously sent or just shows the probation intake button
Source:

loadQueue()

This function loads the list of offenders on the Queue list block. It checks if the offender is previously clicked and loads the main content accordingly.
Source:

loadRecklessDriving()

This function loads the reckless driving form's data, activates the reckless driving tab, and shows the list of reckless driving form if this form was previously sent or just shows the reckless driving button
Source:

loadRecklessList()

This function loads the reckless driving form's data, activates the reckless driving tab, and shows the list of reckless driving form if this form was previously sent or just shows the reckless driving button
Source:

loadRecommendation()

This function loads the recommendation form's data, activates the recommendation tab, and shows the list of recommendation form if this form was previously sent or just shows the recommendation button
Source:

loadRecommendList()

This function loads the recommendation form's data, activates the recommendation tab, and shows the list of recommendation form if this form was previously sent or just shows the recommendation button
Source:

newInfoBox()

to be deleted This function takes message as parameter and returns the html template with current time
Source:

render_invite(invite)

This function returns the sentence depending on the staff invitation's status
Parameters:
Name Type Description
invite object Object containing basic information about invitee staff
Source:

render_queue_counter(data)

This function displays the queue information such as queue position and current staff type with whome offfender is waiting
Parameters:
Name Type Description
data string Queue data such as staff's id, staff's type, and queue position
Source:

show_control()

This function helps to show the controls such as 'End the session' button on the dashboard
Source:

show_invitee_control()

This function loads the html template which contains the Leave button (to leave the session) and Document button (to view offender's) documents
Source:

showProbationForm()

This function loads the probation form's data, activates the probation tab, and shows the list of probation form if this form was previously sent or just shows the probation button
Source:

staff_jist_start()

This function starts the internal staff's video session
Source:

staff_jist_start()

This function starts the internal staff's video session
Source:

startMyVideo()

This function handles the button click whether to start or stop own video
Source:

subscribe_court()

Author:
  • Sagun Dhakhwa "internal_court_".$this->session->userdata('court_id');
Source:

subscribe_court()

This function subscribes the staffs within the court from websocket connection so that there is a connection between staffs to interact with each other. Connected staff can get the reponses from other staffs and give their own responses to other staffs.
Source:

subscribe_offender()

This function subscribes the offender from websocket connection so that there is a connection between staffs and offenders to interact with each other. Connected offender can get the reponses from other staffs and give their own responses to other staffs.
Source:

subscribe_staff()

This function subscribes the staff from websocket connection so that there is a connection between staffs to interact with each other. Connected staff can get the reponses from other staffs and give their own responses to other staffs.
Source:

subscribe_support_queue()

This function subscribes the court from websocket connection so that there is a connection between staffs to interact with each other for support/help. Connected staff can get the reponses from other staffs and give their own responses to other staffs.
Source:

successToastr()

This function shows the success (green) popup message on the screen
Source:

successToastr(message)

This function shows the success (green) popup message on the screen
Parameters:
Name Type Description
message string Success Message
Source:

successToastr(message)

This function shows the success (green) popup message on the screen
Parameters:
Name Type Description
message string Success Message
Source:

unsubscribe_court()

This function unsubscribes the court from websocket connection
Source:

unsubscribe_offender()

This function unsubscribes the offender from websocket connection
Source:

unsubscribe_staff()

This function unsubscribes the staff from websocket connection
Source:

updateInvitee()

This function redirects from invitee's dashboard to staff's dashboard
Source:

updateStaffList()

This function gets the staff list and render it on the staff's dashboard
Source:

wait()

This function handles the session with currently subscribed staff, auto starts the invite staff's video if the video session was previously started when the page is reloaded, and updates the offender's queue information
Source:

wasOffenderVideoStarted()

This function checks whether video session was started or not
Source: