Where is this method :workshop_add_instance()

Re: Where is this method :workshop_add_instance()

بذریعہ Tim Hunt -
جوابات کی تعداد: 0
Core developers کی تصویر Documentation writers کی تصویر Particularly helpful Moodlers کی تصویر Peer reviewers کی تصویر Plugin developers کی تصویر
Yes, but that only tells you direct calls, and in this case, the most significant call is actually from course/modedit.php, around line 190 (in Moodle 1.9dev) where it does

        $addinstancefunction    = $fromform->modulename."_add_instance";
$updateinstancefunction = $fromform->modulename."_update_instance";

if (!empty($fromform->update)) {

// ...

$returnfromfunc = $updateinstancefunction($fromform);


Functions in mod/XXX/lib.php are often called like this, when you don't know in advance which modules you will be calling into.


However, you are right, in general, a good cross-reference tool is invaluable.