Menu

TherapyTemplate

Stephen Bromley

TherapyTemplate Class

Wrapper class for database template objects. passed forward to the session when the user logs in.

Constructors

TherapyTemplate(String name, boolean isActive, String theHtml, int id, String type, int versionNum)

  1. name: the name of the template.
  2. isActive: activity status of the template.
  3. theHtml: the stored html of the template.
  4. id: id of the template.
  5. type: the template type.
  6. versionNum: the version number of the template.

Methods

getName:
Return type: String

returns name of template

setName:
Expected arguments: String name
Return type: Void

Sets the name of the template.

isActive:
Return type: Boolean

returns if active or not

setActive:
Expected arguments: Boolean isActive
Return type: void

Sets the active status of the template

getTheHTML:
Return type: String

returns the HTML of the template

setTheHTML:
Expected arguments: String theHTML
Return type: void

Sets the template HTML

getId:
Return type: String

Returns template id.

setId:
Expected arguments: int id
Return type: Void

Sets the template id.

getType:
Return type: String

Returns the template type.

setType:
Expected arguments: String type
Return type: Void

Sets the template type.

getVersionNum:
Return type: int

Returns the template version number.

setVersionNum:
Expected arguments: int versionNum
Return type: Void

Sets the template version number.


Related

Wiki: Home