As you were replying, I was taking another look at the smarty template and saw a connection. I will take another look at the files on github and try to understand the relation. But I was correct in assuming this function is 'magic' and enables you to very simply create and store values.
Okay, I've been playing with the workflow task and I think I understand:
The Smarty TPL file and the task Class work together:the TPL file sets some input fields with name attributes, and the Class collects these via the function 'getFieldNames()'. The task can then perform certain choices based on the selection of those inputs. At the same time, when editing a task, the smarty '$task->addrel' gets previously set task fields so that when you edit a task it is set the way you left it last.
Is that a correct summary of what's going on?
Okay, I've been playing with the workflow task and I think I understand:
The Smarty TPL file and the task Class work together:the TPL file sets some input fields with name attributes, and the Class collects these via the function 'getFieldNames()'. The task can then perform certain choices based on the selection of those inputs. At the same time, when editing a task, the smarty '$task->addrel' gets previously set task fields so that when you edit a task it is set the way you left it last.
Is that a correct summary of what's going on?