public function assign($field, $value = null) { $this->info[$field] = $value; if (!is_array($value)) { parent::setValue($field, $value); } else { parent::setValueList($field, $value); } }
/** * add body rows * * @param Tinebase_Record_RecordSet $records */ public function processIteration($_records) { $record = $_records->getFirstRecord(); $converter = Tinebase_Convert_Factory::factory($record); $resolved = $converter->fromTine20Model($record); foreach ($this->_config->properties->prop as $prop) { $property = (string) $prop; // @TODO: remove the utf8_decode here when PHPWord_Template does not convert to utf8 anymore. // the htmlspecialchars shouldn't be required, this should have been done by the PHPWord Library $this->_docTemplate->setValue($property, isset($resolved[$property]) ? utf8_decode(htmlspecialchars($resolved[$property])) : ''); } }