mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00

* fix some display icon * update translation * fix icon size * fix context color, set order * remove search background * change color share, refresh workzone * fix icon active * remove ccs from js file * remove css in js file * fix
70 lines
1.3 KiB
PHP
70 lines
1.3 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Phraseanet
|
|
*
|
|
* (c) 2005-2016 Alchemy
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
use Alchemy\Phrasea\Model\Entities\User;
|
|
|
|
class eventsmanager_notify_basketwip extends eventsmanager_notifyAbstract
|
|
{
|
|
/**
|
|
*
|
|
* @return string
|
|
*/
|
|
public function icon_url()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @param Array $data
|
|
* @param boolean $unread
|
|
* @return Array
|
|
*/
|
|
public function datas(array $data, $unread)
|
|
{
|
|
$ret = [
|
|
'text' => $data['message'],
|
|
'class' => ($unread == 1 ? 'reload_baskets' : '')
|
|
];
|
|
|
|
return $ret;
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @return string
|
|
*/
|
|
public function get_name()
|
|
{
|
|
return $this->app->trans('notification:: Basket WIP');
|
|
}
|
|
|
|
/**
|
|
*
|
|
* @return string
|
|
*/
|
|
public function get_description()
|
|
{
|
|
return $this->app->trans('notification:: Receive notification when a basket is WIP');
|
|
}
|
|
|
|
/**
|
|
* @param integer $usr_id The id of the user to check
|
|
*
|
|
* @return boolean
|
|
*/
|
|
public function is_available(User $user)
|
|
{
|
|
return true;
|
|
}
|
|
|
|
}
|