Source of file ScheduleRangeWeekDays.php

Size: 0,529 Bytes - Last Modified: 2020-10-12T11:05:02+00:00

/var/www/docs.ssmods.com/process/src/src/Model/ScheduleRange/ScheduleRangeWeekDays.php

12345678910111213141516171819202122232425
<?php

namespace Sunnysideup\Schedulizer\Model\ScheduleRange;
use Sunnysideup\Schedulizer\Model\ScheduleRange;


class ScheduleRangeWeekDays extends ScheduleRangeDay
{

    private static $table_name = 'ScheduleRangeWeekDays';

    public function onBeforeWrite()
    {
        parent::onBeforeWrite();
        $this->ApplicableDays = 'Mon,Tue,Wed,Thu,Fri';
    }

    public function getCMSFields()
    {
        $fields = parent::getCMSFields();
        $fields->removeByName('ApplicableDays');
        return $fields;
    }
}