Hi again, I have my php file as follows:
class khronos_punching_form extends moodleform {
...
function display () {
$endtime = ...;
...
}
function definition () {
// I need $endtime here
...
}
...
}
My question is how I can take a variable from display frunction for use in definition function. With global variables I can not get the value of any variable. How should I do it?
Thanks