FeedInterface.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?php
  2. /**
  3. * Zend Framework
  4. *
  5. * LICENSE
  6. *
  7. * This source file is subject to the new BSD license that is bundled
  8. * with this package in the file LICENSE.txt.
  9. * It is also available through the world-wide-web at this URL:
  10. * http://framework.zend.com/license/new-bsd
  11. * If you did not receive a copy of the license and are unable to
  12. * obtain it through the world-wide-web, please send an email
  13. * to license@zend.com so we can send you a copy immediately.
  14. *
  15. * @category Zend
  16. * @package Zend_Feed_Reader
  17. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  18. * @license http://framework.zend.com/license/new-bsd New BSD License
  19. * @version $Id$
  20. */
  21. /**
  22. * @category Zend
  23. * @package Zend_Feed_Reader
  24. * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
  25. * @license http://framework.zend.com/license/new-bsd New BSD License
  26. */
  27. interface Zend_Feed_Reader_FeedInterface extends Iterator, Countable
  28. {
  29. /**
  30. * Get a single author
  31. *
  32. * @param int $index
  33. * @return string|null
  34. */
  35. public function getAuthor($index = 0);
  36. /**
  37. * Get an array with feed authors
  38. *
  39. * @return array
  40. */
  41. public function getAuthors();
  42. /**
  43. * Get the copyright entry
  44. *
  45. * @return string|null
  46. */
  47. public function getCopyright();
  48. /**
  49. * Get the feed creation date
  50. *
  51. * @return string|null
  52. */
  53. public function getDateCreated();
  54. /**
  55. * Get the feed modification date
  56. *
  57. * @return string|null
  58. */
  59. public function getDateModified();
  60. /**
  61. * Get the feed description
  62. *
  63. * @return string|null
  64. */
  65. public function getDescription();
  66. /**
  67. * Get the feed generator entry
  68. *
  69. * @return string|null
  70. */
  71. public function getGenerator();
  72. /**
  73. * Get the feed ID
  74. *
  75. * @return string|null
  76. */
  77. public function getId();
  78. /**
  79. * Get the feed language
  80. *
  81. * @return string|null
  82. */
  83. public function getLanguage();
  84. /**
  85. * Get a link to the HTML source
  86. *
  87. * @return string|null
  88. */
  89. public function getLink();
  90. /**
  91. * Get a link to the XML feed
  92. *
  93. * @return string|null
  94. */
  95. public function getFeedLink();
  96. /**
  97. * Get the feed title
  98. *
  99. * @return string|null
  100. */
  101. public function getTitle();
  102. /**
  103. * Get all categories
  104. *
  105. * @return Zend_Feed_Reader_Collection_Category
  106. */
  107. public function getCategories();
  108. }