SimplePie_Author

Manages all author-related data.

Defined (1)

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

/wp-includes/SimplePie/Author.php  
  1. class SimplePie_Author 
  2. /** 
  3. * Author's name 
  4. * @var string 
  5. * @see get_name() 
  6. */ 
  7. var $name; 
  8.  
  9. /** 
  10. * Author's link 
  11. * @var string 
  12. * @see get_link() 
  13. */ 
  14. var $link; 
  15.  
  16. /** 
  17. * Author's email address 
  18. * @var string 
  19. * @see get_email() 
  20. */ 
  21. var $email; 
  22.  
  23. /** 
  24. * Constructor, used to input the data 
  25. * @param string $name 
  26. * @param string $link 
  27. * @param string $email 
  28. */ 
  29. public function __construct($name = null, $link = null, $email = null) 
  30. $this->name = $name; 
  31. $this->link = $link; 
  32. $this->email = $email; 
  33.  
  34. /** 
  35. * String-ified version 
  36. * @return string 
  37. */ 
  38. public function __toString() 
  39. // There is no $this->data here 
  40. return md5(serialize($this)); 
  41.  
  42. /** 
  43. * Author's name 
  44. * @return string|null 
  45. */ 
  46. public function get_name() 
  47. if ($this->name !== null) 
  48. return $this->name; 
  49. else 
  50. return null; 
  51.  
  52. /** 
  53. * Author's link 
  54. * @return string|null 
  55. */ 
  56. public function get_link() 
  57. if ($this->link !== null) 
  58. return $this->link; 
  59. else 
  60. return null; 
  61.  
  62. /** 
  63. * Author's email address 
  64. * @return string|null 
  65. */ 
  66. public function get_email() 
  67. if ($this->email !== null) 
  68. return $this->email; 
  69. else 
  70. return null;