Interface.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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-2009 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-2009 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_Entry_Interface
  28. {
  29. /**
  30. * Constructor
  31. *
  32. * @param Zend_Feed_Entry_Abstract $entry
  33. * @param int $entryKey
  34. * @param string $type
  35. * @return void
  36. */
  37. public function __construct(DOMElement $entry, $entryKey, $type = null);
  38. /**
  39. * Get the specified author
  40. *
  41. * @param int $index
  42. * @return string|null
  43. */
  44. public function getAuthor($index = 0);
  45. /**
  46. * Get an array with feed authors
  47. *
  48. * @return array
  49. */
  50. public function getAuthors();
  51. /**
  52. * Get the entry content
  53. *
  54. * @return string
  55. */
  56. public function getContent();
  57. /**
  58. * Get the entry creation date
  59. *
  60. * @return string
  61. */
  62. public function getDateCreated();
  63. /**
  64. * Get the entry modification date
  65. *
  66. * @return string
  67. */
  68. public function getDateModified();
  69. /**
  70. * Get the entry description
  71. *
  72. * @return string
  73. */
  74. public function getDescription();
  75. /**
  76. * Get the entry ID
  77. *
  78. * @return string
  79. */
  80. public function getId();
  81. /**
  82. * Get a specific link
  83. *
  84. * @param int $index
  85. * @return string
  86. */
  87. public function getLink($index = 0);
  88. /**
  89. * Get all links
  90. *
  91. * @return array
  92. */
  93. public function getLinks();
  94. /**
  95. * Get a permalink to the entry
  96. *
  97. * @return string
  98. */
  99. public function getPermalink();
  100. /**
  101. * Get the entry title
  102. *
  103. * @return string
  104. */
  105. public function getTitle();
  106. /**
  107. * Get the number of comments/replies for current entry
  108. *
  109. * @return integer
  110. */
  111. public function getCommentCount();
  112. /**
  113. * Returns a URI pointing to the HTML page where comments can be made on this entry
  114. *
  115. * @return string
  116. */
  117. public function getCommentLink();
  118. /**
  119. * Returns a URI pointing to a feed of all comments for this entry
  120. *
  121. * @return string
  122. */
  123. public function getCommentFeedLink();
  124. }