-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from Bulletof/master
wl-37862: [WL EXPLORER] - Add Class Periods to ClassView model
- Loading branch information
Showing
1 changed file
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<?php | ||
|
||
namespace WellnessLiving\Wl\Classes\ClassView; | ||
|
||
use WellnessLiving\WlModelAbstract; | ||
|
||
/** | ||
* Retrieves information about class element. | ||
*/ | ||
class ElementModel extends WlModelAbstract | ||
{ | ||
/** | ||
* Class schedule information. | ||
* | ||
* <dl> | ||
* <dt>int[] <var>a_day</var></dt> | ||
* <dd>List of days of the week where class schedule exist. # 1 - Monday, 7 - Sunday.</dd> | ||
* <dt>array <var>a_repeat</var></dt> | ||
* <dd>Schedule repeat options: | ||
* <dl> | ||
* <dt>int <var>i_repeat</var></dt> | ||
* <dd>Count of the periods which specified in <var>id_repeat</var>.</dd> | ||
* <dt>int <var>id_repeat</var></dt> | ||
* <dd>Measuring unit of <var>i_repeat</var>.</dd> | ||
* </dl> | ||
* </dd> | ||
* <dt>string[] <var>a_staff_key</var></dt> | ||
* <dd>List of staff member keys who provide sessions for this schedule.</dd> | ||
* <dt>string <var>dl_end</var></dt> | ||
* <dd> | ||
* End date of the schedule in locale timezone of the location. | ||
* Empty or zero date in a case if schedule is ongoing. | ||
* </dd> | ||
* <dt>string <var>dl_start</var></dt> | ||
* <dd>Start date of the schedule in locale timezone of the location.</dd> | ||
* <dt>int <var>i_duration</var></dt> | ||
* <dd>Duration of the schedule sessions in a minutes.</dd> | ||
* <dt>string <var>k_location</var></dt> | ||
* <dd>Location key of the schedule.</dd> | ||
* <dt>string <var>m_price</var></dt> | ||
* <dd>Price of single session of the schedule.</dd> | ||
* <dt>string <var>text_time</var></dt> | ||
* <dd>Time of the session in format: `[start_time] - [end_time]` in locale timezone.</dd> | ||
* </dl> | ||
* | ||
* @get result | ||
* @var array | ||
*/ | ||
public $a_schedule = []; | ||
|
||
/** | ||
* Business key. | ||
* | ||
* @get get | ||
* @var string | ||
*/ | ||
public $k_business = ''; | ||
|
||
/** | ||
* Class key. | ||
* | ||
* @get get | ||
* @var string | ||
*/ | ||
public $k_class = ''; | ||
} | ||
|
||
?> |