_Row = $row; } /** * @param string $type */ public function setType($type) { $this->_Type = $type; } public function getType() { return $this->_Type; } public function setFieldname($fieldname) { $this->_FieldName = $fieldname; } public function getFieldname() { return $this->_FieldName; } public function getValue($value, $fieldName, $completeData, VTEntity $context, Task $task) { $type = \Workflow\Fieldtype::getType($this->_Type); return $type->getValue($value, $fieldName, $this->_Type, $context, $completeData, $this->_Data, $task); } /** * @param $config */ public function setConfig($config) { $this->_Config = $config; } public function setConfigValue($key, $value) { $this->_Config[$key] = $value; } /** * @param $label */ public function setLabel($label) { $this->_Label = $label; } /** * @param $value */ public function setValue($value) { $this->_Value = $value; } /** * @param array $data */ public function setData($data) { $this->_Data = $data; } /** * @param VTEntity $context * @return string */ public function render(VTEntity $context) { $this->_HTML = ''; if(!empty($this->_FieldName)) { $this->_Data['name'] = $this->_FieldName; } $this->_Data['type'] = $this->_Type; $this->_Data['label'] = $this->_Label; $this->_Data['config'] = $this->_Config; if(!empty($this->_Value)) { $this->_Data['config']["default"] = $this->_Value; } $type = \Workflow\Fieldtype::getType($this->_Type, 2); if($type === false) { throw new \Exception('Type '.$this->_Type.' not found'); } if($type->decorated($this->_Data) == true) { $this->_HTML .= '