MDL-60564 calendar: removed duplication of exporter properties

This commit is contained in:
Mark Nelson 2017-10-24 15:06:41 +08:00
parent 429f78412d
commit 8e85371800
2 changed files with 0 additions and 22 deletions

View file

@ -147,10 +147,6 @@ class day_exporter extends exporter {
'navigation' => [
'type' => PARAM_RAW,
],
'popovertitle' => [
'type' => PARAM_RAW,
'default' => '',
],
'haslastdayofevent' => [
'type' => PARAM_BOOL,
'default' => false,

View file

@ -67,28 +67,10 @@ class week_day_exporter extends day_exporter {
protected static function define_other_properties() {
$return = parent::define_other_properties();
$return = array_merge($return, [
'timestamp' => [
'type' => PARAM_INT,
],
'neweventtimestamp' => [
'type' => PARAM_INT,
],
'viewdaylink' => [
'type' => PARAM_URL,
'optional' => true,
],
'calendareventtypes' => [
'type' => PARAM_RAW,
'multiple' => true,
],
'popovertitle' => [
'type' => PARAM_RAW,
'default' => '',
],
'haslastdayofevent' => [
'type' => PARAM_BOOL,
'default' => false,
],
]);
return $return;