Gdata/Extension/Rating.php
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Gdata
- Subpackage
- Gdata
- Version
- $Id$
\Zend_Gdata_Extension_Rating
- Parent(s)
- \Zend_Gdata_Extension < \Zend_Gdata_App_Extension < \Zend_Gdata_App_Base
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
Methods

__construct(integer $average = null, integer $min = null, integer $max = null, integer $numRaters = null, integer $value = null) : voidConstructs a new Zend_Gdata_Extension_Rating object.
| Name | Type | Description |
|---|---|---|
| $average | integer | (optional) Average rating. |
| $min | integer | (optional) Minimum rating. |
| $max | integer | (optional) Maximum rating. |
| $numRaters | integer | (optional) Number of raters. |
| $value | integer | (optional) The value of the rating. |

getAverage() : integerGet the value for this element's average attribute.
| Type | Description |
|---|---|
| integer | The requested attribute. |

getDOM(\DOMDocument $doc = null, $majorVersion = 1, $minorVersion = null) : \DOMElementRetrieves a DOMElement which corresponds to this element and all child properties. This is used to build an entry back into a DOM and eventually XML text for sending to the server upon updates, or for application storage/persistence.
| Name | Type | Description |
|---|---|---|
| $doc | \DOMDocument | The DOMDocument used to construct DOMElements |
| $majorVersion | ||
| $minorVersion |
| Type | Description |
|---|---|
| \DOMElement | The DOMElement representing this element and all child properties. |

getMax() : integerGet the value for this element's max attribute.
| Type | Description |
|---|---|
| integer | The requested attribute. |

getMin() : integerGet the value for this element's min attribute.
| Type | Description |
|---|---|
| integer | The requested attribute. |

getNumRaters() : integerGet the value for this element's numRaters attribute.
| Type | Description |
|---|---|
| integer | The requested attribute. |

getValue() : integerGet the value for this element's value attribute.
| Type | Description |
|---|---|
| integer | The requested attribute. |

setAverage(bool $value) : \Zend_Gdata_Extension_RatingSet the value for this element's average attribute.
| Name | Type | Description |
|---|---|---|
| $value | bool | The desired value for this attribute. |
| Type | Description |
|---|---|
| \Zend_Gdata_Extension_Rating | The element being modified. |

setMax(bool $value) : \Zend_Gdata_Extension_RatingSet the value for this element's max attribute.
| Name | Type | Description |
|---|---|---|
| $value | bool | The desired value for this attribute. |
| Type | Description |
|---|---|
| \Zend_Gdata_Extension_Rating | The element being modified. |

setMin(bool $value) : \Zend_Gdata_Extension_RatingSet the value for this element's min attribute.
| Name | Type | Description |
|---|---|---|
| $value | bool | The desired value for this attribute. |
| Type | Description |
|---|---|
| \Zend_Gdata_Extension_Rating | The element being modified. |

setNumRaters(bool $value) : \Zend_Gdata_Extension_RatingSet the value for this element's numRaters attribute.
| Name | Type | Description |
|---|---|---|
| $value | bool | The desired value for this attribute. |
| Type | Description |
|---|---|
| \Zend_Gdata_Extension_Rating | The element being modified. |

setValue(bool $value) : \Zend_Gdata_Extension_RatingSet the value for this element's value attribute.
| Name | Type | Description |
|---|---|---|
| $value | bool | The desired value for this attribute. |
| Type | Description |
|---|---|
| \Zend_Gdata_Extension_Rating | The element being modified. |