Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Implements the gd:rating element


 __construct(
          integer $average
              =
              null, integer $min
              =
              null, integer $max
              =
              null, integer $numRaters
              =
              null, integer $value
              =
              null
          )
        
        :
          void
__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(
          
          )
        
        :
          integer
getAverage(
          
          )
        
        :
          integerGet the value for this element's average attribute.
| Type | Description | 
|---|---|
| integer | The requested attribute. | 


 getDOM(
          \DOMDocument $doc
              =
              null,  $majorVersion
              =
              1,  $minorVersion
              =
              null
          )
        
        :
          \DOMElement
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(
          
          )
        
        :
          integer
getMax(
          
          )
        
        :
          integerGet the value for this element's max attribute.
| Type | Description | 
|---|---|
| integer | The requested attribute. | 


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


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


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


 setAverage(
          bool $value
          )
        
        :
          \Zend_Gdata_Extension_Rating
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_Rating
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_Rating
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_Rating
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_Rating
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. | 


 takeAttributeFromDOM(
          \DOMNode $attribute
          )
        
        :
          void
takeAttributeFromDOM(
          \DOMNode $attribute
          )
        
        :
          voidGiven a DOMNode representing an attribute, tries to map the data into instance members. If no mapping is defined, the name and value are stored in an array.
| Name | Type | Description | 
|---|---|---|
| $attribute | \DOMNode | The DOMNode attribute needed to be handled |