conversationtreeitem.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. /**
  3. * StatusNet - the distributed open-source microblogging tool
  4. * Copyright (C) 2011, StatusNet, Inc.
  5. *
  6. * Conversation tree widget for oooooold school playas
  7. *
  8. * PHP version 5
  9. *
  10. * This program is free software: you can redistribute it and/or modify
  11. * it under the terms of the GNU Affero General Public License as published by
  12. * the Free Software Foundation, either version 3 of the License, or
  13. * (at your option) any later version.
  14. *
  15. * This program is distributed in the hope that it will be useful,
  16. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  17. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  18. * GNU Affero General Public License for more details.
  19. *
  20. * You should have received a copy of the GNU Affero General Public License
  21. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  22. *
  23. * @category Widget
  24. * @package StatusNet
  25. * @author Evan Prodromou <evan@status.net>
  26. * @copyright 2011 StatusNet, Inc.
  27. * @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
  28. * @link http://status.net/
  29. */
  30. if (!defined('GNUSOCIAL')) { exit(1); }
  31. /**
  32. * Conversation tree list item
  33. *
  34. * Special class of NoticeListItem for use inside conversation trees.
  35. *
  36. * @category Widget
  37. * @package StatusNet
  38. * @author Evan Prodromou <evan@status.net>
  39. * @license http://www.fsf.org/licensing/licenses/agpl.html AGPLv3
  40. * @link http://status.net/
  41. */
  42. class ConversationTreeItem extends NoticeListItem
  43. {
  44. /**
  45. * start a single notice.
  46. *
  47. * The default creates the <li>; we skip, since the ConversationTree
  48. * takes care of that.
  49. *
  50. * @return void
  51. */
  52. function showStart()
  53. {
  54. return;
  55. }
  56. /**
  57. * finish the notice
  58. *
  59. * The default closes the <li>; we skip, since the ConversationTree
  60. * takes care of that.
  61. *
  62. * @return void
  63. */
  64. function showEnd()
  65. {
  66. return;
  67. }
  68. /**
  69. * show people this notice is in reply to
  70. *
  71. * Tree context shows this, so we skip it.
  72. *
  73. * @return void
  74. */
  75. function showAddressees()
  76. {
  77. return;
  78. }
  79. }