Rating Field Type: comparison of v.2 vs v.4
Versions Compared
Old Version 2
changes.mady.by.user Dominika Kurek
Saved on Apr 29, 2016
compared with
New Version Current
changes.mady.by.user André Rømcke
Saved on Jan 04, 2017
Key
- This line was added.
- This line was removed.
- Formatting was changed.
This Field Type is used to provide rating functionality.
| Info |
|---|
| Rating Field Type does not provide the APIs for actual rating, this part is provided by Legacy Stack extension that can be found at https://github.com/ezsystems/ezstarrating. |
| Name | Internal name | Expected input |
|---|---|---|
| Rating | ezsrrating | boolean |
PHP API Field Type
Input expectations
| Type | Description | Example |
|---|---|---|
| boolean | Denotes if the rating is enabled or disabled | true |
Value Object
API
Properties
eZ\Publish\Core\FieldType\Rating\Value offers the following properties.
| Property | Type | Description | Example |
|---|---|---|---|
| isDisabled | boolean | Denotes if the rating is enabled or disabled | true |
Hash format
Hash matches the Value Object, having only one property:
- isDisabled
Settings
The Field Type does not support settings.
Validation
The Field Type does not support validation.
Comments
Add a comment