Files
Phraseanet/lib/classes/eventsmanager/notify/basketwip.php
Aina Sitraka f004015f64 PHRAS-3662 Share Basket fix GUI - icons color and behavior (#4007)
* 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
2022-04-28 12:11:55 +02:00

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;
}
}