diff options
| author | winter | 2025-01-15 20:33:38 +0000 |
|---|---|---|
| committer | winter | 2025-01-15 20:33:38 +0000 |
| commit | 75b3778dccccddb5cc90b2b4e0a3f958826ad8ba (patch) | |
| tree | 6240a96338f58b5f175e97132a4ce5d804e3b2da /Digitigrade/Timeline.php | |
| parent | 07df9da970ceaa54c734d73bdb148fa36d42db63 (diff) | |
implement home timeline
Diffstat (limited to 'Digitigrade/Timeline.php')
| -rw-r--r-- | Digitigrade/Timeline.php | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/Digitigrade/Timeline.php b/Digitigrade/Timeline.php deleted file mode 100644 index 64aabe1..0000000 --- a/Digitigrade/Timeline.php +++ /dev/null @@ -1,26 +0,0 @@ -<?php -namespace Digitigrade; - -use Digitigrade\Model\Note; - -abstract class Timeline { - // TODO: currently making this number up. probably should be modifiable somewhere - private const RESULTS_PER_PAGE = 50; - - /** - * Gets a pageful of items to be included in the timeline - * @param int $page page number to return (0-indexed) - * @return TimelineItem[] - */ - public function getPage(int $page = 0): array { - return $this->getItems(self::RESULTS_PER_PAGE, self::RESULTS_PER_PAGE * $page); - } - - /** - * Gets a selection of items to be included in the timeline - * @param int $limit max number of items to return - * @param int $offset number of items to skip at first - * @return TimelineItem[] - */ - abstract protected function getItems(int $limit, int $offset): array; -}
\ No newline at end of file |
