12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- if (!defined('GNUSOCIAL')) { exit(1); }
- class JSONActivityCollection {
-
- protected $totalItems;
-
- protected $items;
-
- protected $url;
-
- function __construct(array $items=[], $url = null)
- {
- $this->items = empty($items) ? array() : $items;
- $this->totalItems = count($items);
- $this->url = $url;
- }
-
- public function getTotalItems()
- {
- $this->totalItems = count($items);
- return $this->totalItems;
- }
- }
|