12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <?php
- if (!defined('STATUSNET')) {
-
-
- exit(1);
- }
- class GroupMessageList extends Widget
- {
- var $gm;
-
- function __construct($out, $gm)
- {
- parent::__construct($out);
- $this->gm = $gm;
- }
-
- function show()
- {
- $this->out->elementStart('ul', 'notices messages group-messages');
- $cnt = 0;
- while ($this->gm->fetch() && $cnt <= MESSAGES_PER_PAGE) {
- $cnt++;
- if ($cnt > MESSAGES_PER_PAGE) {
- break;
- }
- $gmli = new GroupMessageListItem($this->out, $this->gm);
- $gmli->show();
- }
- $this->out->elementEnd('ul');
- return $cnt;
- }
- }
|