Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I don't understand the 'getFieldNames()' function in the workflow tasks
#3
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?
Reply


Messages In This Thread
RE: I don't understand the 'getFieldNames()' function in the workflow tasks - Guido1982 - 11-24-2015, 10:00 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)