SimplePie_Rating

Handles `` or `` tags as defined in Media RSS and iTunes RSS respectively.

Defined (1)

The class is defined in the following location(s).

/wp-includes/SimplePie/Rating.php  
  1. class SimplePie_Rating 
  2. /** 
  3. * Rating scheme 
  4. * @var string 
  5. * @see get_scheme() 
  6. */ 
  7. var $scheme; 
  8.  
  9. /** 
  10. * Rating value 
  11. * @var string 
  12. * @see get_value() 
  13. */ 
  14. var $value; 
  15.  
  16. /** 
  17. * Constructor, used to input the data 
  18. * For documentation on all the parameters, see the corresponding 
  19. * properties and their accessors 
  20. */ 
  21. public function __construct($scheme = null, $value = null) 
  22. $this->scheme = $scheme; 
  23. $this->value = $value; 
  24.  
  25. /** 
  26. * String-ified version 
  27. * @return string 
  28. */ 
  29. public function __toString() 
  30. // There is no $this->data here 
  31. return md5(serialize($this)); 
  32.  
  33. /** 
  34. * Get the organizational scheme for the rating 
  35. * @return string|null 
  36. */ 
  37. public function get_scheme() 
  38. if ($this->scheme !== null) 
  39. return $this->scheme; 
  40. else 
  41. return null; 
  42.  
  43. /** 
  44. * Get the value of the rating 
  45. * @return string|null 
  46. */ 
  47. public function get_value() 
  48. if ($this->value !== null) 
  49. return $this->value; 
  50. else 
  51. return null;