Re: Feedback requested on new Events system specification
by Hubert Chathi. re: control, you could have something like $event->setTriggered() (terrible name, can't think of anything better) that does validation and sets the triggered flag (and throws an...
View ArticleRe: Feedback requested on new Events system specification
by Petr Škoda. Hmm, there would be a need for $event->soon_to_be_triggered() and $event->event_was_triggered() and also you would need some internal properties to verify the methods are called...
View ArticleRe: Query to fetch both students and teacher of a particular course
by Davo Smith. I'm not quite sure what you are trying to do with the mdl_assign table - that is for assignment activities, and won't tell you anything about which students / teachers are enroled in...
View ArticleRe: Access Moodle DB From Block Code
by Davo Smith. set_config('additionalhtmlfooter', 'test');There are hundreds (if not thousands) of working examples of using $DB->update_record() and $DB->insert_record() in the Moodle core...
View ArticleRe: Feedback requested on new Events system specification
by Mark Nielsen. Hey Petr, thanks for the quick reply. I'm going to try to change your mind ;)I would say that events are general, in that the data associated to them could often be exactly the same....
View ArticleRe: Automatic Class Loading Proposal
by Mark Nielsen. Ah, great news! Looking forward to trying this out!After doing some benchmarking, if you find that things are a little sluggish, I recommend investigating the class map idea....
View ArticleRe: Writing Moodle's Global Search
by Marcus Green. Calling Mr Dougiamas, Calling Mr Dougiamas..."Solr is written in Java and runs as a standalone full-text search server within a servlet container such as Jetty"
View ArticleRe: Bulk creating courses
by Peter Kemp. Hi Tulix,This is working well, only problem is I can;t work out the format to use a metacourse enrolment method. I'd like to...
View ArticleRe: Count Files in Folders
by howard b. Thank you Davo.I have written this: $folder = $DB->get_records_sql("SELECT {folder}.id FROM {folder} WHERE course = '$courseid'"); $folders = 0;...
View ArticleRe: Writing Moodle's Global Search
by Marcus Green. It's not any Apache web server dependency that concerns me it is the server side Java dependency. It takes Moodle from generic LAMP software that can run on affordable web space to...
View ArticleRe: How please to access core_course_renderer::tagged_courses from a Block
by Brian Merritt. ./tag/couretagslip.php function coursetag_get_all_tags($sort='name', $numtags=0) { It doesn't appear to be cached, so if there is a better option please do still let me know, but in...
View ArticleRe: Count Files in Folders
by Davo Smith. You seem to be missing quite a few things there.The first param of get_area_files is the contextid - this will be different for every folder instance and is unlikely to ever be '80'...
View ArticleRe: Doubts on the table columns mdl_files
by Douglas Henrique. I have an application that does not belong to moodle. I'm working with her on top of the database moodle. For example, insert lesson in Moodle through it, just working on the...
View ArticleRe: Doubts on the table columns mdl_files
by Douglas Henrique. I have an application that does not belong to moodle. I'm working with her on top of the database moodle. For example, insert lesson in Moodle through it, just working on the...
View ArticleRe: Writing Moodle's Global Search
by Hubert Chathi. Tika and Solr are not Apache extensions. They are standalone products that are maintained by the Apache foundation, but otherwise are unrelated to the Apache web server.
View ArticleRe: How please to access core_course_renderer::tagged_courses from a Block
by Jenny Gray. If you look at tag/index.php you can copy where the tagged_courses() function has already been used.Basically you need to declare a renderer object and then call the function on it,...
View ArticleRe: Writing Moodle's Global Search
by Tomasz Muras. That's correct Marcus and we should be very clear here. Global Search will be implemented in a way to allow for plugging other search engines than solr but at this moment only solr...
View ArticleRe: Count Files in Folders
by howard b. Thanks that's great. I get the following error message though:Can not find data record in database table course_modules. $folder = $DB->get_records_sql("SELECT...
View ArticleRe: implementing slideshow in moodle
by Jason Hardin. Do you have your code in a repo somewhere that can be looked at?What type of plugin did you create in Moodle? What are you trying to implement in the slideshow? Embedding an existing...
View ArticleRe: Getting Topic Number in the Body Tag
by Jason Hardin. When you say on that page you are referring to the course being configured to display one section per page? And the menu will highlight that topic when the user is within that topic...
View Article