return $this->{$field};
}
$a = (object)array('property' => $field, 'class' => get_class($this));
- throw new portfolio_export_exception($this->get('exporter'), 'invalidproperty', 'portfolio', $a);
+ throw new portfolio_export_exception($this->get('exporter'), 'invalidproperty', 'portfolio', null, $a);
}
/**
return true;
}
$a = (object)array('property' => $field, 'class' => get_class($this));
- throw new portfolio_export_exception($this->get('exporter'), 'invalidproperty', 'portfolio', '', $a);
+ throw new portfolio_export_exception($this->get('exporter'), 'invalidproperty', 'portfolio', null, $a);
}
return $this->{$field};
}
$a = (object)array('property' => $field, 'class' => get_class($this));
- throw new portfolio_export_exception($this, 'invalidproperty', 'portfolio', '', $a);
+ throw new portfolio_export_exception($this, 'invalidproperty', 'portfolio', null, $a);
}
/**
return true;
}
$a = (object)array('property' => $field, 'class' => get_class($this));
- throw new portfolio_export_exception($this, 'invalidproperty', 'portfolio', $a);
+ throw new portfolio_export_exception($this, 'invalidproperty', 'portfolio', null, $a);
}
/**
$expectedtime = $this->instance->expected_time($this->caller->expected_time());
if (count($formats) == 0) {
// something went wrong, we should not have gotten this far.
- throw new portfolio_export_exception($this, 'nocommonformats', 'portfolio', get_class($this->caller));
+ throw new portfolio_export_exception($this, 'nocommonformats', 'portfolio', null, get_class($this->caller));
}
// even if neither plugin or caller wants any config, we have to let the user choose their format, and decide to wait.
if ($pluginobj || $callerobj || count($formats) > 1 || $expectedtime != PORTFOLIO_TIME_LOW) {
$this->cancel_request();
} else if ($fromform = $mform->get_data()){
if (!confirm_sesskey()) {
- throw new portfolio_export_exception($this, 'confirmsesskeybad', '');
+ throw new portfolio_export_exception($this, 'confirmsesskeybad');
}
$pluginbits = array();
$callerbits = array();