Zend Framework
1.12
|
Public Member Functions | |
__construct ($average=null, $min=null, $max=null, $numRaters=null, $value=null) | |
Constructs a new Zend_Gdata_Extension_Rating object. | |
getDOM ($doc=null, $majorVersion=1, $minorVersion=null) | |
Retrieves a DOMElement which corresponds to this element and all child properties. | |
getMin () | |
Get the value for this element's min attribute. | |
setMin ($value) | |
Set the value for this element's min attribute. | |
getNumRaters () | |
Get the value for this element's numRaters attribute. | |
setNumRaters ($value) | |
Set the value for this element's numRaters attribute. | |
getAverage () | |
Get the value for this element's average attribute. | |
setAverage ($value) | |
Set the value for this element's average attribute. | |
getMax () | |
Get the value for this element's max attribute. | |
setMax ($value) | |
Set the value for this element's max attribute. | |
getValue () | |
Get the value for this element's value attribute. | |
setValue ($value) | |
Set the value for this element's value attribute. | |
![]() | |
__construct () | |
Protected Member Functions | |
takeAttributeFromDOM ($attribute) | |
Given a DOMNode representing an attribute, tries to map the data into instance members. | |
Protected Attributes | |
$_rootElement = 'rating' | |
$_min = null | |
$_max = null | |
$_numRaters = null | |
$_average = null | |
$_value = null | |
![]() | |
$_rootNamespace = 'gd' | |
Additional Inherited Members | |
![]() | |
static | flushNamespaceLookupCache () |
Flush namespace lookup cache. | |
![]() | |
static | $_namespaceLookupCache = array() |
__construct | ( | $average = null , |
|
$min = null , |
|||
$max = null , |
|||
$numRaters = null , |
|||
$value = null |
|||
) |
Constructs a new Zend_Gdata_Extension_Rating object.
integer | $average | (optional) Average rating. |
integer | $min | (optional) Minimum rating. |
integer | $max | (optional) Maximum rating. |
integer | $numRaters | (optional) Number of raters. |
integer | $value | (optional) The value of the rating. |
getAverage | ( | ) |
Get the value for this element's average attribute.
getDOM | ( | $doc = null , |
|
$majorVersion = 1 , |
|||
$minorVersion = null |
|||
) |
Retrieves 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.
DOMDocument | $doc | The DOMDocument used to construct DOMElements |
getMax | ( | ) |
Get the value for this element's max attribute.
getMin | ( | ) |
Get the value for this element's min attribute.
getNumRaters | ( | ) |
Get the value for this element's numRaters attribute.
getValue | ( | ) |
Get the value for this element's value attribute.
setAverage | ( | $value | ) |
Set the value for this element's average attribute.
bool | $value | The desired value for this attribute. |
setMax | ( | $value | ) |
Set the value for this element's max attribute.
bool | $value | The desired value for this attribute. |
setMin | ( | $value | ) |
Set the value for this element's min attribute.
bool | $value | The desired value for this attribute. |
setNumRaters | ( | $value | ) |
Set the value for this element's numRaters attribute.
bool | $value | The desired value for this attribute. |
setValue | ( | $value | ) |
Set the value for this element's value attribute.
bool | $value | The desired value for this attribute. |
|
protected |
Given 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.
DOMNode | $attribute | The DOMNode attribute needed to be handled |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |