PHP Classes

File: src/Contracts/Dialogs/Question.php

Recommend this page to a friend!
  Classes of Thierry Feuzeu   Jaxon   src/Contracts/Dialogs/Question.php   Download  
File: src/Contracts/Dialogs/Question.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: 4 years ago
Size: 651 bytes
 

Contents

Class file image Download
<?php

/**
 * Question.php - A confirmation question for a Jaxon request
 *
 * Interface for adding a confirmation question which is asked before calling a Jaxon function.
 *
 * @package jaxon-core
 * @copyright 2016 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\Contracts\Dialogs;

interface
Question
{
   
/**
     * Return a script which makes a call only if the user answers yes to the given question
     *
     * @return string
     */
   
public function confirm($question, $yesScript, $noScript);
}