PHP Classes

File: src/Interfaces/Modal.php

Recommend this page to a friend!
  Classes of Thierry Feuzeu   Modals, alerts and confirmation dialogs for Jaxon   src/Interfaces/Modal.php   Download  
File: src/Interfaces/Modal.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Modals, alerts and confirmation dialogs for Jaxon
Display Ajax modal, alert and confirmation dialogs
Author: By
Last change: Apply fixes from StyleCI
Date: 5 years ago
Size: 1,453 bytes


Class file image Download

 * Modal.php - Interface for modal dialogs.
 * @package jaxon-dialogs
 * @author Thierry Feuzeu <>
 * @copyright 2016 Thierry Feuzeu <>
 * @license BSD 3-Clause License
 * @link

namespace Jaxon\Dialogs\Interfaces;

     * Show a modal dialog.
     * @param string $title The title of the dialog
     * @param string $content The content of the dialog
     * @param array $buttons The buttons of the dialog
     * @param array $options The options of the dialog
     * Each button is an array with the following entries:
     * - title: the text to be printed in the button
     * - class: the CSS class of the button
     * - click: the javascript function to be called when the button is clicked
     * If the click value is set to "close", then the button closes the dialog.
     * The content of the $options depends on the javascript library in use.
     * Check their specific documentation for more information.
     * @return void
public function show($title, $content, array $buttons, array $options = array());

     * Hide the modal dialog.
     * @return void
public function hide();