-
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.
wl-35746: Add is_verified to ReviewElementApi
+review WL-37167
- Loading branch information
Showing
1 changed file
with
102 additions
and
40 deletions.
There are no files selected for viewing
142 changes: 102 additions & 40 deletions
142
WellnessLiving/Wl/Review/ReviewList/ReviewElementModel.php
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 |
---|---|---|
@@ -1,41 +1,103 @@ | ||
<?php | ||
|
||
namespace WellnessLiving\Wl\Review\ReviewList; | ||
|
||
use WellnessLiving\WlModelAbstract; | ||
|
||
/** | ||
* Retrieves information about review element. | ||
*/ | ||
class ReviewElementModel extends WlModelAbstract | ||
{ | ||
/** | ||
* Review identifier. | ||
* | ||
* <tt>null</tt> if not set yet. | ||
* | ||
* @get result | ||
* @var array|null | ||
*/ | ||
public $a_review = null; | ||
|
||
/** | ||
* Review identifier. | ||
* | ||
* <tt>null</tt> if not set yet. | ||
* | ||
* @get get | ||
* @var string|null | ||
*/ | ||
public $k_review = null; | ||
|
||
/** | ||
* User ID. | ||
* | ||
* @get get | ||
* @var string|null | ||
*/ | ||
public $uid = null; | ||
} | ||
|
||
<?php | ||
|
||
namespace WellnessLiving\Wl\Review\ReviewList; | ||
|
||
use WellnessLiving\WlModelAbstract; | ||
|
||
/** | ||
* Retrieves information about review item. | ||
*/ | ||
class ReviewElementModel extends WlModelAbstract | ||
{ | ||
/** | ||
* Review data: | ||
* <dl> | ||
* <dt> | ||
* string <var>dt_add</var> | ||
* </dt> | ||
* <dd> | ||
* Date when review was added by user. | ||
* </dd> | ||
* <dt> | ||
* float <var>f_rate</var> | ||
* </dt> | ||
* <dt> | ||
* bool <var>is_verify</var> | ||
* </dt> | ||
* <dd> | ||
* <tt>true</tt> if review is verified, <tt>false</tt> otherwise. | ||
* </dd> | ||
* <dd> | ||
* Review rate. | ||
* </dd> | ||
* <dt> | ||
* string <var>s_firstname</var> | ||
* </dt> | ||
* <dd> | ||
* Client's first name who added review. | ||
* </dd> | ||
* <dt> | ||
* string <var>s_lastname</var> | ||
* </dt> | ||
* <dd> | ||
* Client's last name who added review. | ||
* </dd> | ||
* <dt> | ||
* string <var>s_reply</var> | ||
* </dt> | ||
* <dd> | ||
* Staff reply. Can be empty. | ||
* </dd> | ||
* <dt> | ||
* string <var>s_text</var> | ||
* </dt> | ||
* <dd> | ||
* Review text. | ||
* </dd> | ||
* <dt> | ||
* string <var>uid</var> | ||
* </dt> | ||
* <dd> | ||
* User key. | ||
* </dd> | ||
* <dt> | ||
* string <var>url_logo</var> | ||
* </dt> | ||
* <dd> | ||
* User logo. | ||
* </dd> | ||
* </dl> | ||
* | ||
* @get result | ||
* @var array | ||
*/ | ||
public $a_review; | ||
|
||
/** | ||
* Key of the business to which the review belongs. | ||
* | ||
* @get get | ||
* @var string | ||
*/ | ||
public $k_business; | ||
|
||
/** | ||
* Review primary key in {@link \RsReviewSql}. | ||
* | ||
* @get get | ||
* @var string | ||
*/ | ||
public $k_review = '0'; | ||
|
||
/** | ||
* User primary key in {@link \PassportLoginSql}. | ||
* | ||
* May be empty for a case of quest. | ||
* | ||
* @get get | ||
* @var string | ||
*/ | ||
public $uid = '0'; | ||
} | ||
|
||
?> |