groupadminsection.php 627 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. if (!defined('GNUSOCIAL')) { exit(1); }
  3. class GroupAdminSection extends ProfileSection
  4. {
  5. public $widgetOpts;
  6. public $scoped;
  7. var $group;
  8. function __construct($out, $group)
  9. {
  10. parent::__construct($out);
  11. $this->group = $group;
  12. }
  13. function getProfiles()
  14. {
  15. return $this->group->getAdmins();
  16. }
  17. function title()
  18. {
  19. // TRANS: Title for list of group administrators on a group page.
  20. return _m('TITLE','Admins');
  21. }
  22. function divId()
  23. {
  24. return 'group_admins';
  25. }
  26. function moreUrl()
  27. {
  28. return null;
  29. }
  30. }