Example #1
0
 function _get_current_file_display($current)
 {
     if (!$current) {
         // force an (empty) current file display to be shown
         $current = new stdClass();
         $current->path = false;
     }
     return parent::_get_current_file_display($current);
 }
Example #2
0
 function grab()
 {
     $result = parent::grab();
     if ($this->state == "received") {
         $this->state = "uploaded";
     }
     // old, confusing name
     return $result;
 }