GRAYBYTE WORDPRESS FILE MANAGER5013

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/trustyourlawyer.com/wp-content/plugins/backwpup/inc/Notice/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/trustyourlawyer.com/wp-content/plugins/backwpup/inc/Notice//NoticeView.php
<?php

namespace Inpsyde\BackWPup\Notice;

use function backwpup_template;

/**
 * @method void success(NoticeMessage $string, string|null $dismissActionUrl)
 * @method void error(NoticeMessage $string, string|null $dismissActionUrl)
 * @method void warning(NoticeMessage $string, string|null $dismissActionUrl)
 * @method void info(NoticeMessage $string, string|null $dismissActionUrl)
 */
final class NoticeView
{
    /**
     * @var string
     */
    public const SUCCESS = 'notice-success';
    /**
     * @var string
     */
    public const ERROR = 'notice-error';
    /**
     * @var string
     */
    public const WARNING = 'notice-warning';
    /**
     * @var string
     */
    public const INFO = 'notice-info';

    /**
     * @var string The ID of the notice
     */
    private $id;

    /**
     * @param string $id The ID of the notice
     */
    public function __construct(string $id)
    {
        $this->id = $id;
    }

    /**
     * @param NoticeMessage $message          The contents of the notice
     * @param string|null   $dismissActionUrl The URL for dismissing the notice
     * @param self::*|null  $type             The type of notice: one of NoticeView::SUCCESS,
     *                                        NoticeView::ERROR, NoticeView::WARNING, or NoticeView::INFO
     */
    public function notice(NoticeMessage $message, ?string $dismissActionUrl = null, ?string $type = null): void
    {
        $message->id = $this->id;
        $message->dismissActionUrl = $dismissActionUrl;
        $message->type = $type;

        backwpup_template($message, '/notice/notice.php');
    }

    /**
     * Call notice() with the appropriate notice type.
     *
     * @param 'success'|'error'|'warning'|'info'       $name
     * @param array{0: NoticeMessage, 1?: string|null} $args
     */
    public function __call(string $name, array $args): void
    {
        switch ($name) {
            case 'success':
                $args[] = self::SUCCESS;
                break;

            case 'error':
                $args[] = self::ERROR;
                break;

            case 'warning':
                $args[] = self::WARNING;
                break;

            case 'info':
                $args[] = self::INFO;
                break;

            default:
                throw new \BadMethodCallException(
                    sprintf(
                        __('Call to undefined method %1$s::%2$s()', 'backwpup'),
                        self::class,
                        $name
                    )
                );
        }

        $this->notice(...$args);
    }
}

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:37
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:37
giriqfky / giriqfky
0644
DismissibleNoticeOption.php
7.828 KB
June 27 2024 12:50:44
giriqfky / giriqfky
0644
DropboxNotice.php
1.513 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
EasycronUpdateNotice.php
1.291 KB
October 01 2024 16:10:48
giriqfky / giriqfky
0644
EnvironmentNotice.php
1.258 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
EvaluateNotice.php
2.657 KB
July 05 2024 19:01:30
giriqfky / giriqfky
0644
Informations505Notice.php
1.275 KB
March 03 2025 19:19:24
giriqfky / giriqfky
0644
LegacyDisabledJobsNotice.php
1.421 KB
April 15 2025 13:02:38
giriqfky / giriqfky
0644
NewUINotice.php
0.923 KB
February 04 2025 14:50:44
giriqfky / giriqfky
0644
Notice.php
4.751 KB
April 07 2025 18:31:08
giriqfky / giriqfky
0644
NoticeMessage.php
1.715 KB
May 20 2025 11:41:24
giriqfky / giriqfky
0644
NoticeView.php
2.556 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
PhpNotice.php
0.59 KB
July 05 2024 19:01:30
giriqfky / giriqfky
0644
Promoter.php
0.144 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
PromoterMessage.php
0.153 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
PromoterUpdater.php
0.133 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644
RestoreFeatureInformationNotice.php
1.337 KB
October 15 2024 17:57:42
giriqfky / giriqfky
0644
WordPressNotice.php
0.638 KB
November 16 2022 17:55:50
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF