}
}
$this->delimiter = array_key_exists('delimiter_name', $callbackargs) ? $callbackargs['delimiter_name'] : null;
- $this->exporttype = array_key_exists('exporttype', $callbackargs) ? $callbackargs['exporttype'] : 'csv'; //@todo later support more
+ $this->exporttype = array_key_exists('exporttype', $callbackargs) ? $callbackargs['exporttype'] : 'csv'; //@todo penny later support more
$this->exportdata = data_get_exportdata($this->cm->instance, $this->fields, $this->selectedfields);
}
}
public function has_export_config() {
- // @todo later when we suport exporting to more than just csv, we may need to ask the user here
+ // @todo penny later when we suport exporting to more than just csv, we may need to ask the user here
// if we have not already passed it
return false;
}
if ($this->exporttype == 'single') {
return PORTFOLIO_TIME_LOW;
}
- //@todo check number of records maybe
+ //@todo penny check number of records maybe
return PORTFOLIO_TIME_MODERATE;
}
$patterns[]='[['.$field->field->name.']]';
if ($field instanceof data_field_file) {
// meh, do something special
- // @todo extract the file and put it in the working directory
+ // @todo penny extract the file and put it in the working directory
// and write out the filename here. (files api)
$replacement[] = $field->display_browse_field($this->singlerecord->id, 'singletemplate');
} else {
// a single post, with or without attachment
// or just an attachment with no post
if (!$this->post) { // whole discussion
- throw new portfolio_caller_exception('TODO: exporting whole discussion not implemented - see MDL-15758');
+ throw new portfolio_caller_exception('TODO PENNY: exporting whole discussion not implemented - see MDL-15758');
} else {
$status = true;
if ($this->files) {
}
return sha1($attachsha1 . ',' . $this->post->subject . ',' . $this->post->message);
}
- throw new portfolio_caller_exception('TODO: exporting whole discussion not implemented - see MDL-15758');
+ throw new portfolio_caller_exception('TODO PENNY: exporting whole discussion not implemented - see MDL-15758');
}
function expected_time() {
- // @todo check for attachment size
+ // @todo penny check for attachment size
return PORTFOLIO_TIME_LOW;
}
function check_permissions() {
- //@todo
+ //@todo penny
return true;
}