PHP Classes
elePHPant
Icontem

File: src/Request/Traits/Alert.php

Recommend this page to a friend!
  Classes of Thierry Feuzeu  >  Jaxon  >  src/Request/Traits/Alert.php  >  Download  
File: src/Request/Traits/Alert.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Jaxon
Call PHP classes from JavaScript using AJAX
Author: By
Last change: Apply fixes from StyleCI
Fixed some errors detected by Scrutinizer.
Date: 2 years ago
Size: 987 bytes
 

 

Contents

Class file image Download
<?php

/**
 * Alert.php - Interface for alert messages.
 *
 * @package jaxon-dialogs
 * @author Thierry Feuzeu <thierry.feuzeu@gmail.com>
 * @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\Request\Traits;

trait
Alert
{
   
/**
     * All plugins, indexed by priority
     *
     * @var boolean
     */
   
private $bReturn;

   
/**
     * Set the library to return the javascript code or run it in the browser.
     *
     * @param boolean $bReturn Whether to return the code
     *
     * @return void
     */
   
public function setReturn($bReturn)
    {
       
$this->bReturn = $bReturn;
    }

   
/**
     * Check if the library should return the js code or run it in the browser.
     *
     * @return boolean
     */
   
public function getReturn()
    {
        return
$this->bReturn;
    }
}