]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-14591 just a small tidyup and extra phpdocs
authormjollnir_ <mjollnir_>
Tue, 12 Aug 2008 14:48:32 +0000 (14:48 +0000)
committermjollnir_ <mjollnir_>
Tue, 12 Aug 2008 14:48:32 +0000 (14:48 +0000)
lib/portfoliolib.php

index f670a38c3104b552e88f406b0c318f454d85164e..e5df8d915c4003ecc1166034bdf6992c4e5a1a62 100644 (file)
@@ -1496,9 +1496,6 @@ final class portfolio_export_form extends moodleform {
         }
 
         if (array_key_exists('expectedtime', $this->_customdata) && $this->_customdata['expectedtime'] != PORTFOLIO_TIME_LOW) {
-            //$mform->addElement('select', 'wait', get_string('waitlevel_' . $this->_customdata['expectedtime'], 'portfolio'), $options);
-
-
             $radioarray = array();
             $radioarray[] = &MoodleQuickForm::createElement('radio', 'wait', '', get_string('wait', 'portfolio'), 1);
             $radioarray[] = &MoodleQuickForm::createElement('radio', 'wait', '', get_string('dontwait', 'portfolio'),  0);
@@ -2071,6 +2068,10 @@ final class portfolio_exporter {
         print_error($string, $module, $continue, $a);
     }
 
+    /**
+    * cancels a potfolio request and cleans up the tempdata
+    * and redirects the user back to where they started
+    */
     public function cancel_request() {
         if (!isset($this)) {
             return;
@@ -2097,6 +2098,14 @@ final class portfolio_exporter {
         }
     }
 
+    /**
+    * rewakens the data from the database given the id
+    * makes sure to load the requred files with the class definitions
+    *
+    * @param int $id id of data
+    *
+    * @return portfolio_exporter
+    */
     public static function rewaken_object($id) {
         global $DB, $CFG;
         if (!$data = $DB->get_record('portfolio_tempdata', array('id' => $id))) {
@@ -2181,6 +2190,9 @@ final class portfolio_exporter {
 
 }
 
+/**
+* form that just contains the dropdown menu of available instances
+*/
 class portfolio_instance_select extends moodleform {
 
     private $caller;