*
* @return array list of formats
*/
- public abstract static function supported_formats();
+ public static function supported_formats() {
+ return array(PORTFOLIO_FORMAT_FILE);
+ }
/**
* this is the "return to where you were" url
*
* @return array list of formats
*/
- public abstract static function supported_formats();
+ public static function supported_formats() {
+ return array(PORTFOLIO_FORMAT_FILE);
+ }
/**
return backup_copy_file($filearea, $tempdir);
}
- public static function supported_formats() {
- return array(PORTFOLIO_FORMAT_FILE);
- }
-
-
public function expected_time() {
return PORTFOLIO_TIME_MODERATE; // @TODO check uploaded file size
}
// @todo see MDL-15758
}
- static function supported_formats() {
- return array(PORTFOLIO_FORMAT_FILE);
- }
-
function expected_time() {
// @todo check for attachment size
return PORTFOLIO_TIME_LOW;
return $this->resource->portfolio_prepare_package($tempdir);
}
- public static function supported_formats() {
- return array(PORTFOLIO_FORMAT_FILE);
- }
-
public function check_permissions() {
return true;
}
private $workdir;
private $folders;
- public static function supported_formats() {
- return array(PORTFOLIO_FORMAT_FILE);
- }
-
public function prepare_package($tempdir) {
$this->workdir = $tempdir;
return true; // don't do anything else for this plugin, we want to send all files as they are.
protected $zipfile;
protected $exportconfig;
- public static function supported_formats() {
- return array(PORTFOLIO_FORMAT_FILE);
- // @todo more later, like moodle backup for example
- }
-
public static function allows_multiple() {
return false;
}