]> git.mjollnir.org Git - moodle.git/commitdiff
Use the new output->table() rendering method
authorDavid Mudrak <david.mudrak@gmail.com>
Mon, 4 Jan 2010 17:46:44 +0000 (17:46 +0000)
committerDavid Mudrak <david.mudrak@gmail.com>
Mon, 4 Jan 2010 17:46:44 +0000 (17:46 +0000)
mod/workshop/allocation/manual/renderer.php

index d679bd829561d161b6e5c3395741292e026c2214..12244cfd913793c4f14217fac85af74f002ee32c 100644 (file)
@@ -67,12 +67,12 @@ class moodle_mod_workshop_allocation_manual_renderer  {
             return $this->status_message((object)array('text' => get_string('nosubmissions', 'workshop')));
         }
 
-        $table = new stdClass();
-        $table->class       = 'allocations';
+        $table              = new html_table();
+        $table->set_classes = array('allocations');
         $table->head        = array(get_string('participantreviewedby', 'workshop'),
                                     get_string('participant', 'workshop'),
                                     get_string('participantrevierof', 'workshop'));
-        $table->rowclass    = array();
+        $table->rowclasses  = array();
         $table->colclasses  = array('reviewedby', 'peer', 'reviewerof');
         $table->data        = array();
         foreach ($peers as $user) {
@@ -91,7 +91,7 @@ class moodle_mod_workshop_allocation_manual_renderer  {
             $table->data[] = $row;
         }
 
-        return $this->output->container($this->status_message($msg) . print_table($table, true), 'manual-allocator');
+        return $this->output->container($this->status_message($msg) . $this->output->table($table), 'manual-allocator');
     }