SimplePie_Credit

Handles `` as defined in Media RSS.

Defined (1)

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

/wp-includes/SimplePie/Credit.php  
  1. class SimplePie_Credit 
  2. /** 
  3. * Credited role 
  4. * @var string 
  5. * @see get_role() 
  6. */ 
  7. var $role; 
  8.  
  9. /** 
  10. * Organizational scheme 
  11. * @var string 
  12. * @see get_scheme() 
  13. */ 
  14. var $scheme; 
  15.  
  16. /** 
  17. * Credited name 
  18. * @var string 
  19. * @see get_name() 
  20. */ 
  21. var $name; 
  22.  
  23. /** 
  24. * Constructor, used to input the data 
  25. * For documentation on all the parameters, see the corresponding 
  26. * properties and their accessors 
  27. */ 
  28. public function __construct($role = null, $scheme = null, $name = null) 
  29. $this->role = $role; 
  30. $this->scheme = $scheme; 
  31. $this->name = $name; 
  32.  
  33. /** 
  34. * String-ified version 
  35. * @return string 
  36. */ 
  37. public function __toString() 
  38. // There is no $this->data here 
  39. return md5(serialize($this)); 
  40.  
  41. /** 
  42. * Get the role of the person receiving credit 
  43. * @return string|null 
  44. */ 
  45. public function get_role() 
  46. if ($this->role !== null) 
  47. return $this->role; 
  48. else 
  49. return null; 
  50.  
  51. /** 
  52. * Get the organizational scheme 
  53. * @return string|null 
  54. */ 
  55. public function get_scheme() 
  56. if ($this->scheme !== null) 
  57. return $this->scheme; 
  58. else 
  59. return null; 
  60.  
  61. /** 
  62. * Get the credited person/entity's name 
  63. * @return string|null 
  64. */ 
  65. public function get_name() 
  66. if ($this->name !== null) 
  67. return $this->name; 
  68. else 
  69. return null;