mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Use composer as application autoloader
This commit is contained in:
32
lib/classes/eventsmanager/notifyAbstract.php
Normal file
32
lib/classes/eventsmanager/notifyAbstract.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
abstract class eventsmanager_notifyAbstract extends eventsmanager_eventAbstract
|
||||
{
|
||||
protected $events = array('__EVENT__');
|
||||
|
||||
public function fire($event, $params, &$object)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
abstract public function datas($datas, $unread);
|
||||
|
||||
public function is_available()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function email()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
abstract public function icon_url();
|
||||
|
||||
protected function get_prefs($class, $usr_id)
|
||||
{
|
||||
$user = User_Adapter::getInstance($usr_id, $this->app);
|
||||
|
||||
return $user->getPrefs('notification_' . $class);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user