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)
string
the sanitized filename (absolute path)
formatImg($value, $new, $name, array $context = array()
)
getDeviceIdField() : string
string
getFormID() : string
string
getFormVersion() : string
string
getModel() : \Gems_Model_JoinModel
\Gems_Model_JoinModel
getTableName()
getTitle() : string
string
saveAnswer($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
array
createTable()
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