add admin timetable
This commit is contained in:
32
common/modules/event/models/timetable/TimeTableMonth.php
Normal file
32
common/modules/event/models/timetable/TimeTableMonth.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace common\modules\event\models\timetable;
|
||||
|
||||
use customerapi\models\available\EventInterval;
|
||||
use yii\data\ArrayDataProvider;
|
||||
|
||||
/** @noinspection PhpUnused */
|
||||
|
||||
|
||||
/**
|
||||
* Class TimeTableMonth
|
||||
* @property EventInterval $interval
|
||||
* @property TimeTableMonthDay[] $days
|
||||
* @property TimeTableMonthWeek[] $weeks
|
||||
*/
|
||||
class TimeTableMonth
|
||||
{
|
||||
public $interval;
|
||||
public $days = array();
|
||||
public $weekDayNames = array();
|
||||
public $weeks;
|
||||
|
||||
|
||||
public function getWeeksArrayDataProvider()
|
||||
{
|
||||
return new ArrayDataProvider([
|
||||
'allModels' => $this->weeks
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user