Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=2127084
By: dashohoxha
For accessing the state vars of a webobj we use this syntax:
$s_var = $this->getSVar("varName");
Probably it would be more convenient to use this syntax:
$s_var = $this->varName;
or $s_var = $this->s_varName;
(to emphasize the difference
between state vars and any other usual (non-persistent)
vars that the webobj might have)
However,
$this->s_varName = "new_var_value";
cannot be better (in functionality) than
$this->setSVar("varName", "new_var_value");
because the value changed in the first one will be available
after $this->onParse(), and the second one changes it everywhere
immediately.
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=135220
|