프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$dont_redirect | |||
$editable | |||
$editing | |||
$episode | |||
$event | * @var Event | ||
$eventIssueCreate | String to set an issue when an event is created | ||
$event_actions | |||
$event_tabs | |||
$extraViewProperties | defines additional variables to be available in view templates | ||
$layout | |||
$moduleStateCssClass | |||
$patient | * @var Patient | ||
$pdf_print_documents | |||
$pdf_print_html | |||
$pdf_print_suffix | |||
$renderPatientPanel | |||
$site | * @var Site | ||
$successUri |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$action_types | array | Override for custom actions. | |
$open_elements |
메소드 | 설명 | |
---|---|---|
accessRules ( ) | ||
actionCreate ( ) : boolean | string | Carries out the base create action. | |
actionDelete ( $id ) | Delete the event given by $id. Performs the soft delete action if it's been confirmed by $_POST. | |
actionElementForm ( integer $id, integer $patient_id, integer $previous_id = null ) | Ajax method for loading an individual element (and its children). | |
actionEventImage ( ) | ||
actionPDFPrint ( $id ) | ||
actionPrint ( integer $id ) | Print action. | |
actionRequestDeletion ( $id ) : boolean | void | Action to process delete requests for an event. | |
actionSaveCanvasImages ( $id ) | ||
actionUpdate ( $id ) | The update action for the given event id. | |
actionView ( $id ) | View the event specified by $id. | |
actionViewPreviousElements ( integer $element_type_id, integer $patient_id ) | Ajax method for viewing previous elements. | |
behaviors ( ) | ||
canCopy ( BaseEventTypeElement $element ) : boolean | Can an element can be copied from a previous version. | |
canViewPrevious ( BaseEventTypeElement $element ) : boolean | Can we view the previous version of the element. | |
checkAdminAccess ( ) : boolean | ||
checkCreateAccess ( ) : boolean | ||
checkDeleteAccess ( ) : boolean | ||
checkEditAccess ( ) : boolean | ||
checkFormAccess ( ) : boolean | ||
checkPrintAccess ( ) : boolean | ||
checkRequestDeleteAccess ( ) : boolean | ||
checkViewAccess ( ) : boolean | ||
displayErrors ( $errors, boolean $bottom = false ) | Render the given errors with the standard template. | |
getActionType ( string $action ) : string | Return an ACTION_TYPE_ constant representing the type of an action for authorisation purposes. | |
getAssetPathForElement ( BaseEventTypeElement $element ) : string | Return the asset path for the given element (by interrogating namespace). | |
getChildElements ( ElementType $parent_type ) : BaseEventTypeElement[] | Get the open child elements for the given ElementType. | |
getChildOptionalElements ( ElementType $parent_type ) : BaseEventTypeElement[] | Get the child optional elements for the given element type. | |
getCurrent_episode ( ) : Episode | Wrapper around the episode property on this controller - current_episode is used in patient layouts. | |
getElementModulePathAlias ( BaseEventTypeElement $element ) : string | Return the path alias for the module the element belongs to based on its namespace (assumes elements exist in a namespace below the module namespace). | |
getElements ( ) : array | Get the open elements for the event that are not children. | |
getEpisode ( ) : Episode | Get the current episode for the firm and patient. | |
getEpisodes ( ) : array | Get all the episodes for the current patient. | |
getOpenElementByClassName ( string $class_name ) : object | Get open element by class name. | |
getOptionalElements ( ) : BaseEventTypeElement[] | Get the optional elements for the current module's event type (that are not children). | |
getTitle ( ) | ||
hasPrevious ( ElementType $element_type, integer $exclude_event_id = null ) : boolean | Are there one or more previous instances of an element? | |
init ( ) | ||
isHiddenInUI ( BaseEventTypeElement $element ) : boolean | Is this element to be hidden in the UI? (Prevents the elements from being displayed on page load.). | |
isPrintAction ( string $action ) : boolean | Override to use $action_types. | |
isRequired ( BaseEventTypeElement $element ) : boolean | Is this a required element? | |
isRequiredInUI ( BaseEventTypeElement $element ) : boolean | Is this element required in the UI? (Prevents the user from being able to remove the element.). | |
processJsVars ( ) | set base js vars for use in the standard scripts for the controller. | |
renderChildOpenElements ( BaseEventTypeElement $parent_element, string $action, BaseCActiveBaseEventTypeCActiveForm $form = null, array $data = null ) | Render the open elements that are children of the given parent element type. | |
renderChildOptionalElements ( BaseEventTypeElement $parent_element, string $action, BaseCActiveBaseEventTypeCActiveForm $form = null, array $data = null ) | Render the optional child elements for the given parent element type. | |
renderEventMetadata ( string $view = '//patient/event_metadata' ) | Renders the metadata of the event with the standard template. | |
renderOpenElements ( string $action, BaseCActiveBaseEventTypeCActiveForm $form = null, array $data = null ) | Render the open elements for the controller state. | |
renderOptionalElements ( string $action, boolean $form = null, boolean $data = null ) | Render the optional elements for the controller state. | |
renderPartial ( string $view, null $data = null, boolean $return = false, boolean $processOutput = false ) : string | Extend the parent method to support inheritance of modules (and rendering the element views from the parent module). | |
saveEvent ( $data ) : boolean | Save the event for this controller - will create or update the event, create and update the elements, delete any elements that are no longer required. Note that $data is provided for the purposes of any extensions to this behaviour that might be required. | |
setOpenElements ( array $open_elements ) | Set the open elements (for unit testing). | |
setTitle ( $title ) |
메소드 | 설명 | |
---|---|---|
afterCreateElements ( Event $event ) | Called after event (and elements) have been created. | |
afterUpdateElements ( Event $event ) | Called after event (and elements) has been updated. | |
beforeAction ( $action ) : boolean | Setup base css/js etc requirements for the eventual action render. | |
getControllerPrefix ( ) : string | Get the prefix name of this controller, used for path calculations for element views. | |
getElementForElementForm ( ElementType $element_type, integer $previous_id, array() $additional ) : BaseEventTypeElement | Initialise an element of $element_type for returning as an individual form. If the $previous_id is provided, then the default values of the element will be overridden with the properties of the previous intance of the element. Similarly, $additional allows specific values to be set on the element. | |
getElementViewPathAlias ( BaseEventTypeElement $element ) : string | calculate the alias dot notated path to an element view. | |
getElementsForElementType ( ElementType $element_type, $data ) : array | Processes provided form data to create 1 or more elements of the provided type. | |
getEventElements ( ) : BaseEventTypeElement[] | Abstraction of getting the elements for the event being controlled to allow more complex overrides (such as workflow) where required. | |
initAction ( string $action ) | Runs initialisation of the controller based on the action. Looks for a method name of. | |
initActionCreate ( ) | Initialise the controller prior to a create action. | |
initActionDelete ( ) | initialise the controller with the event id. | |
initActionRequestDeletion ( ) | Sets the the css state. | |
initActionUpdate ( ) | initialise the controller prior to event update action. | |
initActionView ( ) | Sets the the css state. | |
initWithEventId ( $id ) | Intialise controller property based off the event id. | |
persistPcrRisk ( ) | ||
printHTML ( integer $id, BaseEventTypeElement[] $elements, string $template = 'print' ) | Render HTML print layout. | |
printInit ( integer $id ) | Initialise print action. | |
printLog ( integer $id, boolean $pdf ) | Log print action. | |
redirectToPatientEpisodes ( ) | Redirect to the patient episodes when the controller determines the action cannot be carried out. | |
renderElement ( BaseEventTypeElement $element, string $action, BaseCActiveBaseEventTypeCActiveForm $form, array $data, array $view_data = [], boolean $return = false, boolean $processOutput = false ) | Render the individual element based on the action provided. Note that view names for the associated actions are set in the model. | |
renderOptionalElement ( BaseEventTypeElement $element, string $action, BaseCActiveBaseEventTypeCActiveForm $form, array $data ) | Render an optional element. | |
saveEventComplexAttributesFromData ( $data ) | Iterates through the open elements and calls the custom methods for saving complex data attributes to them. | |
setAndValidateElementsFromData ( array $data ) : array | Set the attributes of the given $elements from the given structured array. | |
setElementComplexAttributesFromData ( BaseEventTypeElement $element, array $data, integer $index = null ) | Looks for custom methods to set many to many data defined on elements. This is called prior to validation so should set values without actually touching the database. | |
setElementDefaultOptions ( BaseEventTypeElement $element, string $action ) | set the defaults on the given BaseEventTypeElement. | |
setElementOptions ( string $action ) | Set the default values on each of the open elements. | |
setOpenElementsFromCurrentEvent ( $action ) | based on the current state of the controller, sets the open_elements property, which is the array of relevant open elements for the controller. | |
setPatient ( $patient_id ) | Sets the patient object on the controller. | |
setValidationScenarioForElement ( $element ) | Set the validation scenario for the element if necessary. | |
updateEventInfo ( ) | Generates the info text for controller event from the current elements, sets it on the event and saves it. | |
verifyActionAccess ( CAction $action ) |
메소드 | 설명 | |
---|---|---|
updateUniqueCode ( $event ) | Update Unique code for the event associated the specific procedures. |
public actionCreate ( ) : boolean | string | ||
리턴 | boolean | string |
public actionDelete ( $id ) | ||
$id |
public actionRequestDeletion ( $id ) : boolean | void | ||
$id | ||
리턴 | boolean | void |
public actionViewPreviousElements ( integer $element_type_id, integer $patient_id ) | ||
$element_type_id | integer | |
$patient_id | integer |
protected afterCreateElements ( Event $event ) | ||
$event | Event |
protected afterUpdateElements ( Event $event ) | ||
$event | Event |
protected beforeAction ( $action ) : boolean | ||
$action | ||
리턴 | boolean |
public canViewPrevious ( BaseEventTypeElement $element ) : boolean | ||
$element | BaseEventTypeElement | |
리턴 | boolean |
public displayErrors ( $errors, boolean $bottom = false ) | ||
$errors | ||
$bottom | boolean |
public getActionType ( string $action ) : string | ||
$action | string | |
리턴 | string |
public getAssetPathForElement ( BaseEventTypeElement $element ) : string | ||
$element | BaseEventTypeElement | |
리턴 | string |
public getChildElements ( ElementType $parent_type ) : BaseEventTypeElement[] | ||
$parent_type | ElementType | |
리턴 | BaseEventTypeElement[] | $open_elements |
public getChildOptionalElements ( ElementType $parent_type ) : BaseEventTypeElement[] | ||
$parent_type | ElementType | |
리턴 | BaseEventTypeElement[] | $optional_elements |
protected getControllerPrefix ( ) : string | ||
리턴 | string |
public getCurrent_episode ( ) : Episode | ||
리턴 | Episode |
protected getElementForElementForm ( ElementType $element_type, integer $previous_id, array() $additional ) : BaseEventTypeElement | ||
$element_type | ElementType | |
$previous_id | integer | |
$additional | array() | |
리턴 | BaseEventTypeElement |
public getElementModulePathAlias ( BaseEventTypeElement $element ) : string | ||
$element | BaseEventTypeElement | |
리턴 | string |
protected getElementViewPathAlias ( BaseEventTypeElement $element ) : string | ||
$element | BaseEventTypeElement | |
리턴 | string |
public getElements ( ) : array | ||
리턴 | array |
protected getElementsForElementType ( ElementType $element_type, $data ) : array | ||
$element_type | ElementType | |
$data | ||
리턴 | array |
public getEpisode ( ) : Episode | ||
리턴 | Episode |
public getEpisodes ( ) : array | ||
리턴 | array |
protected getEventElements ( ) : BaseEventTypeElement[] | ||
리턴 | BaseEventTypeElement[] |
public getOpenElementByClassName ( string $class_name ) : object | ||
$class_name | string | |
리턴 | object |
public getOptionalElements ( ) : BaseEventTypeElement[] | ||
리턴 | BaseEventTypeElement[] | $elements |
public hasPrevious ( ElementType $element_type, integer $exclude_event_id = null ) : boolean | ||
$element_type | ElementType | |
$exclude_event_id | integer | |
리턴 | boolean |
protected initAction ( string $action ) | ||
$action | string |
protected initActionCreate ( ) |
protected initActionDelete ( ) |
protected initActionUpdate ( ) |
protected initWithEventId ( $id ) | ||
$id |
public isHiddenInUI ( BaseEventTypeElement $element ) : boolean | ||
$element | BaseEventTypeElement | |
리턴 | boolean |
public isPrintAction ( string $action ) : boolean | ||
$action | string | |
리턴 | boolean |
public isRequired ( BaseEventTypeElement $element ) : boolean | ||
$element | BaseEventTypeElement | |
리턴 | boolean |
public isRequiredInUI ( BaseEventTypeElement $element ) : boolean | ||
$element | BaseEventTypeElement | |
리턴 | boolean |
public processJsVars ( ) |
protected redirectToPatientEpisodes ( ) |
public renderChildOpenElements ( BaseEventTypeElement $parent_element, string $action, BaseCActiveBaseEventTypeCActiveForm $form = null, array $data = null ) | ||
$parent_element | BaseEventTypeElement | |
$action | string | |
$form | BaseCActiveBaseEventTypeCActiveForm | |
$data | array |
public renderChildOptionalElements ( BaseEventTypeElement $parent_element, string $action, BaseCActiveBaseEventTypeCActiveForm $form = null, array $data = null ) | ||
$parent_element | BaseEventTypeElement | |
$action | string | |
$form | BaseCActiveBaseEventTypeCActiveForm | |
$data | array |
protected renderElement ( BaseEventTypeElement $element, string $action, BaseCActiveBaseEventTypeCActiveForm $form, array $data, array $view_data = [], boolean $return = false, boolean $processOutput = false ) | ||
$element | BaseEventTypeElement | |
$action | string | |
$form | BaseCActiveBaseEventTypeCActiveForm | |
$data | array | |
$view_data | array | Data to be passed to the view. |
$return | boolean | Whether the rendering result should be returned instead of being displayed to end users. |
$processOutput | boolean | Whether the rendering result should be postprocessed using processOutput. |
public renderEventMetadata ( string $view = '//patient/event_metadata' ) | ||
$view | string |
public renderOpenElements ( string $action, BaseCActiveBaseEventTypeCActiveForm $form = null, array $data = null ) | ||
$action | string | |
$form | BaseCActiveBaseEventTypeCActiveForm | |
$data | array |
protected renderOptionalElement ( BaseEventTypeElement $element, string $action, BaseCActiveBaseEventTypeCActiveForm $form, array $data ) | ||
$element | BaseEventTypeElement | |
$action | string | |
$form | BaseCActiveBaseEventTypeCActiveForm | |
$data | array |
protected saveEventComplexAttributesFromData ( $data ) | ||
$data |
protected setAndValidateElementsFromData ( array $data ) : array | ||
$data | array | |
리턴 | array | $errors |
protected setElementComplexAttributesFromData ( BaseEventTypeElement $element, array $data, integer $index = null ) | ||
$element | BaseEventTypeElement | |
$data | array | |
$index | integer |
protected setElementDefaultOptions ( BaseEventTypeElement $element, string $action ) | ||
$element | BaseEventTypeElement | |
$action | string |
protected setElementOptions ( string $action ) | ||
$action | string |
public setOpenElements ( array $open_elements ) | ||
$open_elements | array |
protected setOpenElementsFromCurrentEvent ( $action ) |
protected setPatient ( $patient_id ) | ||
$patient_id |
protected setValidationScenarioForElement ( $element ) | ||
$element |
protected updateEventInfo ( ) |
protected static array $action_types | ||
리턴 | array |
public $eventIssueCreate |
public $extraViewProperties |