mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-60564 calendar: removed duplication of exporter properties
This commit is contained in:
parent
429f78412d
commit
8e85371800
2 changed files with 0 additions and 22 deletions
4
calendar/classes/external/day_exporter.php
vendored
4
calendar/classes/external/day_exporter.php
vendored
|
@ -147,10 +147,6 @@ class day_exporter extends exporter {
|
||||||
'navigation' => [
|
'navigation' => [
|
||||||
'type' => PARAM_RAW,
|
'type' => PARAM_RAW,
|
||||||
],
|
],
|
||||||
'popovertitle' => [
|
|
||||||
'type' => PARAM_RAW,
|
|
||||||
'default' => '',
|
|
||||||
],
|
|
||||||
'haslastdayofevent' => [
|
'haslastdayofevent' => [
|
||||||
'type' => PARAM_BOOL,
|
'type' => PARAM_BOOL,
|
||||||
'default' => false,
|
'default' => false,
|
||||||
|
|
18
calendar/classes/external/week_day_exporter.php
vendored
18
calendar/classes/external/week_day_exporter.php
vendored
|
@ -67,28 +67,10 @@ class week_day_exporter extends day_exporter {
|
||||||
protected static function define_other_properties() {
|
protected static function define_other_properties() {
|
||||||
$return = parent::define_other_properties();
|
$return = parent::define_other_properties();
|
||||||
$return = array_merge($return, [
|
$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' => [
|
'popovertitle' => [
|
||||||
'type' => PARAM_RAW,
|
'type' => PARAM_RAW,
|
||||||
'default' => '',
|
'default' => '',
|
||||||
],
|
],
|
||||||
'haslastdayofevent' => [
|
|
||||||
'type' => PARAM_BOOL,
|
|
||||||
'default' => false,
|
|
||||||
],
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return $return;
|
return $return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue