EntryInterface.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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_EntryInterface
  28. {
  29. /**
  30. * Get the specified 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 entry content
  44. *
  45. * @return string
  46. */
  47. public function getContent();
  48. /**
  49. * Get the entry creation date
  50. *
  51. * @return string
  52. */
  53. public function getDateCreated();
  54. /**
  55. * Get the entry modification date
  56. *
  57. * @return string
  58. */
  59. public function getDateModified();
  60. /**
  61. * Get the entry description
  62. *
  63. * @return string
  64. */
  65. public function getDescription();
  66. /**
  67. * Get the entry enclosure
  68. *
  69. * @return stdClass
  70. */
  71. public function getEnclosure();
  72. /**
  73. * Get the entry ID
  74. *
  75. * @return string
  76. */
  77. public function getId();
  78. /**
  79. * Get a specific link
  80. *
  81. * @param int $index
  82. * @return string
  83. */
  84. public function getLink($index = 0);
  85. /**
  86. * Get all links
  87. *
  88. * @return array
  89. */
  90. public function getLinks();
  91. /**
  92. * Get a permalink to the entry
  93. *
  94. * @return string
  95. */
  96. public function getPermalink();
  97. /**
  98. * Get the entry title
  99. *
  100. * @return string
  101. */
  102. public function getTitle();
  103. /**
  104. * Get the number of comments/replies for current entry
  105. *
  106. * @return integer
  107. */
  108. public function getCommentCount();
  109. /**
  110. * Returns a URI pointing to the HTML page where comments can be made on this entry
  111. *
  112. * @return string
  113. */
  114. public function getCommentLink();
  115. /**
  116. * Returns a URI pointing to a feed of all comments for this entry
  117. *
  118. * @return string
  119. */
  120. public function getCommentFeedLink();
  121. /**
  122. * Get all categories
  123. *
  124. * @return Zend_Feed_Reader_Collection_Category
  125. */
  126. public function getCategories();
  127. }