PHP Classes

File: src/App/Dialog/DialogTrait.php

Recommend this page to a friend!
  Packages of Thierry Feuzeu   Jaxon   src/App/Dialog/DialogTrait.php   Download  
File: src/App/Dialog/DialogTrait.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 months ago
Size: 519 bytes
 

Contents

Class file image Download
<?php

namespace Jaxon\App\Dialog;

use
Jaxon\Response\AjaxResponse;

trait
DialogTrait
{
   
/**
     * @return AjaxResponse
     */
   
abstract protected function response(): AjaxResponse;

   
/**
     * @return AlertInterface
     */
   
protected function alert(): AlertInterface
   
{
        return
$this->response()->dialog;
    }

   
/**
     * @return ModalInterface
     */
   
protected function modal(): ModalInterface
   
{
        return
$this->response()->dialog;
    }
}