Skip to content

Commit

Permalink
Merge pull request #20 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 f2666e1 + bf1bee9 commit bc2f6a3
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions WellnessLiving/Wl/Classes/ClassView/ElementModel.php
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 = '';
}

?>

0 comments on commit bc2f6a3

Please sign in to comment.