PHP Class OEModule\OphCiExamination\models\OphCiExamination_EyeDrawBase
The purpose of this class is to enable views to determine if the image
string has been set for a given view.
Subclasses should extend this class and set the DoodleInfo titles
(obtained from the OEEyeDrawWidget class) upon construction.
Show file
Open project: openeyes/openeyes
Public Methods
Method |
Description |
|
getDoodleInfo ( ) : array |
Gets the doodle info that has been set on this class. |
|
isImageStringSet ( string $side ) : boolean |
Does the image string for this EyeDraw object contain any of
the EyeDraw doodles? |
|
setDoodleInfo ( type $titles ) |
Set the titles of the eyedraw component. This is done by callers. |
|
Private Methods
Method |
Description |
|
checkItems ( string[] $contents, string $image_string ) : boolean |
Checks to see if the specified image string contains any of the strings
given in the items array. |
|
Method Details
getDoodleInfo()
public method
Gets the doodle info that has been set on this class.
public getDoodleInfo ( ) : array |
return |
array |
the doodle info; if no doodle info has been set,
the empty array is returned. |
isImageStringSet()
public method
Does the image string for this EyeDraw object contain any of
the EyeDraw doodles?
setDoodleInfo()
public method
Set the titles of the eyedraw component. This is done by callers.
public setDoodleInfo ( type $titles ) |
$titles |
type |
an array of strings containing the DoodleInfo
titles to check to see if the eyedraw string has been set or not. |