PHP Class OEModule\OphCoCvi\models\Element_OphCoCvi_ConsentSignature

Inheritance: extends BaseEventTypeElement
Show file Open project: openeyes/openeyes

Public Methods

Method Description
attributeLabels ( ) : array
checkSignature ( ) Checks if a patient signature file is already attached to the event
getDecryptedSignature ( ) : string
getEncryptionKey ( ) : string
getSignatureBox ( ) : resource
getStructuredDataForPrint ( ) Returns an associative array of the data values for printing
loadSignatureFromPortal ( ) : resource This will always return an image for use in the signature placeholder. It will first try to load the signature from the portal and otherwise will return the signature capture box.
model ( $className = __CLASS__ ) : the Returns the static model of the specified AR class.
relations ( ) : array
rules ( ) : array
saveSignatureImageFromPortal ( ) : boolean
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
tableName ( ) : string

Protected Methods

Method Description
afterSave ( )
decryptSignature ( $text, $key ) : string

Method Details

afterSave() protected method

protected afterSave ( )

attributeLabels() public method

public attributeLabels ( ) : array
return array customized attribute labels (name=>label)

checkSignature() public method

Checks if a patient signature file is already attached to the event
public checkSignature ( )

decryptSignature() protected method

protected decryptSignature ( $text, $key ) : string
$text
$key
return string

getDecryptedSignature() public method

public getDecryptedSignature ( ) : string
return string

getEncryptionKey() public method

public getEncryptionKey ( ) : string
return string

getSignatureBox() public method

public getSignatureBox ( ) : resource
return resource

getStructuredDataForPrint() public method

Returns an associative array of the data values for printing

loadSignatureFromPortal() public method

This should be used with caution as it will not respect a signature having been deleted on the server side, but remaining on the portal.
public loadSignatureFromPortal ( ) : resource
return resource

model() public static method

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : the
return the static model class

relations() public method

public relations ( ) : array
return array relational rules.

rules() public method

public rules ( ) : array
return array validation rules for model attributes.

saveSignatureImageFromPortal() public method

tableName() public method

public tableName ( ) : string
return string the associated database table name