37 lines
810 B
PHP
37 lines
810 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Calendar extends Model
|
|
{
|
|
protected $table = 'calendar_events';
|
|
protected $fillable = [
|
|
'title',
|
|
'date',
|
|
'description',
|
|
'notify_parent',
|
|
'notify_admin',
|
|
'notify_teacher',
|
|
'no_school',
|
|
'semester',
|
|
'school_year',
|
|
'notification_sent',
|
|
'created_at',
|
|
'updated_at',
|
|
];
|
|
public $timestamps = true;
|
|
|
|
/**
|
|
* TODO: Manual port review required for custom CI query methods from Calendar.
|
|
* - getEvents()
|
|
* - getEventByDate()
|
|
* - addEvent()
|
|
* - getEventsBySchoolYear()
|
|
* - getEventsBySchoolYearAndSemester()
|
|
* - supportsEventType()
|
|
*
|
|
* This automated conversion preserves schema metadata only.
|
|
*/
|
|
} |