';
- $index = 1;
- $__ABE__ .= '';
+ $__ABE__ .= $this->getCustomTemplate();
+ break;
+ case 'RESPONSE':
+ $this->defineReplyTo($dataAbe['ABE_EMAIL_SERVER_RECEIVER_UID']);
+ $__ABE__ .= $this->getResponseTemplate();
break;
case 'LINK':
- $__ABE__ .= 'Please complete this form';
+ $__ABE__ .= $this->getServicePathTemplate();
break;
- // coment
case 'FIELD':
- $variableService = new \ProcessMaker\Services\Api\Project\Variable();
- $variables = $variableService->doGetVariables($caseFields['PRO_UID']);
- $field = new stdClass();
- $field->label = 'Test';
- $field->type = 'dropdown';
- $field->options = array();
- $field->value = '';
- $actionField = str_replace(array('@@','@#','@=','@%','@?','@$'), '', $configuration['ABE_ACTION_FIELD']);
- $dynaform = $configuration['DYN_UID'];
- $variables = G::json_decode($configuration['DYN_CONTENT'], true);
- if(isset($variables['items'][0]['items'])){
- $fields = $variables['items'][0]['items'];
- foreach ($fields as $key => $value) {
- foreach($value as $var){
- if(isset($var['variable'])){
- if ($var['variable'] == $actionField) {
- $field->label = $var['label'];
- $field->type = $var['type'];
- $values = $var['options'];
- foreach ($values as $val){
- $field->options[$val['value']] = $val['value'];
- }
- }
- }
- }
- }
- }
-
- $obj = new PmDynaform($configuration['DYN_UID']);
- $configuration['CURRENT_DYNAFORM'] = $configuration['DYN_UID'];
- $file = $obj->printPmDynaformAbe($configuration);
- $__ABE__ .= $file;
- $__ABE__ .= '' . $field->label . ' ';
+ $__ABE__ .= $this->getFieldTemplate();
break;
}
-
- $__ABE__ = preg_replace('/\ /', '' , $__ABE__);
- $__ABE__ = preg_replace('/\]*\/>/', '' , $__ABE__);
+ $__ABE__ = preg_replace('/\ /', '', $__ABE__);
+ $__ABE__ = preg_replace('/\]*\/>/', '', $__ABE__);
$__ABE__ = preg_replace('/ |