Helper for OpenRosa forms
It supports a subset of OpenRosa forms and provides a bridge between GemsTracker models and the xml-formdefinition.
| package | Gems |
|---|---|
| subpackage | OpenRosa |
| copyright | Copyright (c) 2011 Erasmus MC |
| license | New BSD License |
| since | Class available since version 1.6 |
__construct(string $file)
stringthe sanitized filename (absolute path)
formatImg($value, $new, $name, array $context = array())
getDeviceIdField() : string
stringgetFormID() : string
stringgetFormVersion() : string
stringgetModel() : \Gems_Model_JoinModel
\Gems_Model_JoinModelgetTableName()
getTitle() : string
stringsaveAnswer($file, $remove = true)
_getBindName(string $name) : string
Replaces underscores with slashes and adds the data element
string
string_getFinalSql(string $tablePrefix) : string
string
string_processAnswer(string $key, $input, string $type) : array
string
string
arraycreateTable()
flattenAnswers($xml, $parent = '')
flattenBind($xml)
flattenBody(\SimpleXMLElement $xml, \type $context = '')
\SimpleXMLElement
\type
flattenInstance($xml, $parent = '')
$_xml : \SimpleXmlElement
$bind
$body
$deviceIdField
$formID
$formVersion
$instance
$model : \Gems_Model_JoinModel
$title