1 | <?php |
||
7 | class EventRepetition extends Model |
||
8 | { |
||
9 | /***************************************************************************/ |
||
10 | /** |
||
11 | * The table associated with the model. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $table = 'event_repetitions'; |
||
16 | |||
17 | /***************************************************************************/ |
||
18 | |||
19 | protected $fillable = [ |
||
20 | 'event_id', 'start_repeat', 'end_repeat', |
||
21 | ]; |
||
22 | |||
23 | public function user() |
||
27 | |||
28 | /***************************************************************************/ |
||
29 | |||
30 | /** |
||
31 | * Get for each event the first event repetition in the near future (JUST THE QUERY to use as SUBQUERY). |
||
32 | * Parameters are Start date and End date of the interval |
||
33 | * Return the query string,. |
||
34 | * @param string $searchStartDate |
||
35 | * @param string $searchEndDate |
||
36 | * @return string |
||
37 | */ |
||
38 | public static function getLastestEventsRepetitionsQuery($searchStartDate, $searchEndDate) |
||
52 | } |
||
53 |