mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-10 23:04:26 +02:00
ReWork Notification Model/Module/Object/Repository/Factory
- Introduce Repository for interaction with "notify" table - Introduce Factory for read-only notification objects (they're just loosely based on notification the table!) - Introduce Objects for type-safe usage at the presentation layer - Reworked Model, which is now fully based on the notify table, including generated fields (cache, ..)
This commit is contained in:
parent
230bb6dd53
commit
0850fb88dd
17 changed files with 1413 additions and 851 deletions
17
src/Collection/Notifications.php
Normal file
17
src/Collection/Notifications.php
Normal file
|
@ -0,0 +1,17 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Collection;
|
||||
|
||||
use Friendica\BaseCollection;
|
||||
use Friendica\Model;
|
||||
|
||||
class Notifications extends BaseCollection
|
||||
{
|
||||
/**
|
||||
* @return Model\Notification
|
||||
*/
|
||||
public function current()
|
||||
{
|
||||
return parent::current();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue