PHP Classes

File: src/App/Dialog/AlertInterface.php

Recommend this page to a friend!
  Packages of Thierry Feuzeu   Jaxon   src/App/Dialog/AlertInterface.php   Download  
File: src/App/Dialog/AlertInterface.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Jaxon
Call PHP classes from JavaScript using AJAX
Author: By
Last change:
Date: 7 months ago
Size: 1,730 bytes
 

Contents

Class file image Download
<?php

/**
 * AlertInterface.php
 *
 * Defines the message functions of the dialog plugin.
 *
 * @package jaxon-core
 * @author Thierry Feuzeu <thierry.feuzeu@gmail.com>
 * @copyright 2024 Thierry Feuzeu <thierry.feuzeu@gmail.com>
 * @license https://opensource.org/licenses/BSD-3-Clause BSD 3-Clause License
 * @link https://github.com/jaxon-php/jaxon-core
 */

namespace Jaxon\App\Dialog;

interface
AlertInterface
{
   
/**
     * Set the title of the next message.
     *
     * @param string $sTitle The title of the message
     *
     * @return AlertInterface
     */
   
public function title(string $sTitle): AlertInterface;

   
/**
     * Show a success message.
     *
     * @param string $sMessage The text of the message
     * @param array $aArgs The message arguments
     *
     * @return void
     */
   
public function success(string $sMessage, ...$aArgs): void;

   
/**
     * Show an information message.
     *
     * @param string $sMessage The text of the message
     * @param array $aArgs The message arguments
     *
     * @return void
     */
   
public function info(string $sMessage, ...$aArgs): void;

   
/**
     * Show a warning message.
     *
     * @param string $sMessage The text of the message
     * @param array $aArgs The message arguments
     *
     * @return void
     */
   
public function warning(string $sMessage, ...$aArgs): void;

   
/**
     * Show an error message.
     *
     * @param string $sMessage The text of the message
     * @param array $aArgs The message arguments
     *
     * @return void
     */
   
public function error(string $sMessage, ...$aArgs): void;
}