[ticket/12608] Changed get_styling() to get_style_class()

PHPBB3-12608
This commit is contained in:
PayBas 2014-06-13 09:42:57 +02:00
parent a9e6caa775
commit 8e06d76aaa
6 changed files with 13 additions and 22 deletions

View file

@ -308,24 +308,15 @@ abstract class base implements \phpbb\notification\type\type_interface
return array(
'NOTIFICATION_ID' => $this->notification_id,
'STYLING' => $this->get_styling(),
'STYLING' => $this->get_style_class(),
'AVATAR' => $this->get_avatar(),
'FORMATTED_TITLE' => $this->get_title(),
'REFERENCE' => $this->get_reference(),
'FORUM' => $this->get_forum(),
'REASON' => $this->get_reason(),
'URL' => $this->get_url(),
'TIME' => $this->user->format_date($this->notification_time),
'UNREAD' => !$this->notification_read,
'U_MARK_READ' => (!$this->notification_read) ? $u_mark_read : '',
);
}
@ -345,11 +336,11 @@ abstract class base implements \phpbb\notification\type\type_interface
}
/**
* Get the styling of the notification (fall back)
* Get the CSS style class of the notification (fall back)
*
* @return string
*/
public function get_styling()
public function get_style_class()
{
return '';
}

View file

@ -31,11 +31,11 @@ class disapprove_post extends \phpbb\notification\type\approve_post
}
/**
* Get the styling of the notification
* Get the CSS style class of the notification
*
* @return string
*/
public function get_styling()
public function get_style_class()
{
return 'reported';
}

View file

@ -31,11 +31,11 @@ class disapprove_topic extends \phpbb\notification\type\approve_topic
}
/**
* Get the styling of the notification
* Get the CSS style class of the notification
*
* @return string
*/
public function get_styling()
public function get_style_class()
{
return 'reported';
}

View file

@ -31,11 +31,11 @@ class report_pm extends \phpbb\notification\type\pm
}
/**
* Get the styling of the notification
* Get the CSS style class of the notification
*
* @return string
*/
public function get_styling()
public function get_style_class()
{
return 'reported';
}

View file

@ -30,11 +30,11 @@ class report_post extends \phpbb\notification\type\post_in_queue
}
/**
* Get the styling of the notification
* Get the CSS style class of the notification
*
* @return string
*/
public function get_styling()
public function get_style_class()
{
return 'reported';
}

View file

@ -88,11 +88,11 @@ interface type_interface
public function load_special($data, $notifications);
/**
* Get the styling of the notification
* Get the CSS style class of the notification
*
* @return string
*/
public function get_styling();
public function get_style_class();
/**
* Get the HTML formatted title of this notification