Skip to content

Commit

Permalink
Merge pull request #21 from Bulletof/master
Browse files Browse the repository at this point in the history
wl-37862: [WL EXPLORER] - Add Class Periods to ClassView model
  • Loading branch information
Kasp42 authored Aug 15, 2022
2 parents bc2f6a3 + c9fd939 commit 25fc47e
Showing 1 changed file with 38 additions and 30 deletions.
68 changes: 38 additions & 30 deletions WellnessLiving/Wl/Classes/ClassView/ElementModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,43 +10,49 @@
class ElementModel extends WlModelAbstract
{
/**
* Class schedule information.
*
* Class schedule information. Each element has next structure:
* <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:
* <dt>array <var>a_schedule</var></dt>
* <dd>List of class schedules. Each element has next structure:
* <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.
* <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>
* </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>
* <dt>string <var>k_class</var></dt>
* <dd>Class key. Primary key in {@link \RsClassSql} table.</dd>
* </dl>
*
* @get result
* @var array
*/
public $a_schedule = [];
public $a_class_list = [];

/**
* Business key.
Expand All @@ -57,7 +63,9 @@ class ElementModel extends WlModelAbstract
public $k_business = '';

/**
* Class key.
* Class key to get information of specific class only.
*
* Empty value to return information for all classes of the business.
*
* @get get
* @var string
Expand Down

0 comments on commit 25fc47e

Please sign in to comment.