php - I access past data by parameter in a Moodle mForm? -


i need value of parameter of "mform" moodle form , not know how.

i should add static field "date created" editing section of course , not show unix timestamp.

to had following:

$fecha_creacion = date('m/d/y', xxxxxxxxx);  $mform->addelement('static', 'desc' , 'fecha de creación');  $mform->setdefault('desc', $fecha_creacion); 

where "xxxxxxxxx" integer value obtained bd in "mdl_couse" table ('timecreated').

therefore need integer value, same parameter passed in:

$mform->addelement('static', 'timecreated' , 'fecha de creación'); 

i'm new moodle. thank much.

moodle uses html_quickform should able consult documentation @ http://pear.php.net/package/html_quickform/docs/latest/.

if understand correctly, in case need along lines of:

$mform->getelementvalue('timecreated'); 

hope helps.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -