mirror of
https://github.com/friendica/friendica
synced 2025-04-27 15:10:11 +00:00
Add new paradigm classes for notify
- Create BaseDepository class - Create Entity, Collection, Factory and Depository classes - Create FormattedNotification Entity, Collection and Factory to remove business logic from Notify repository - Create new NotificationCreationIntercepted exception to allow addons to cancel notification creation - Remove unused frio notifications/notify.tpl template
This commit is contained in:
parent
810699b454
commit
1b4e3564a5
11 changed files with 983 additions and 3 deletions
16
src/Capabilities/ICanCreateFromTableRow.php
Normal file
16
src/Capabilities/ICanCreateFromTableRow.php
Normal file
|
@ -0,0 +1,16 @@
|
|||
<?php
|
||||
|
||||
namespace Friendica\Capabilities;
|
||||
|
||||
use Friendica\BaseEntity;
|
||||
|
||||
interface ICanCreateFromTableRow
|
||||
{
|
||||
/**
|
||||
* Returns the correcponding Entity given a table row record
|
||||
*
|
||||
* @param array $row
|
||||
* @return BaseEntity
|
||||
*/
|
||||
public function createFromTableRow(array $row);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue