Dialog
        
        extends Base
    
    
            
            in package
            
        
    
            
            implements
                            Component                    
    
    
        
            A dialog popup with where selected choice is posted back the server.
Compatible with Bootrap 3 .modal-dialog.
Interfaces, Classes, Traits and Enums
- Component
- Interface for the components, the V in MVC.
Table of Contents
- $template : mixed
- $body : mixed
- $choices : mixed
- $close : mixed
- $identifier : mixed
- $method : mixed
- $title : mixed
- __call() : mixed
- Report that the $method doesn't exist.
- __callStatic() : mixed
- Report that the $method doesn't exist.
- __construct() : mixed
- __get() : mixed
- Report that $property doesn't exist.
- __set() : mixed
- Report that $property doesn't exist and set the property to the given $value.
- __toString() : string
- The object is used as an string.
- getHeaders() : mixed
- prompt() : mixed
- render() : mixed
- Render the view to the client (echo statements).
Properties
$template
    public
        mixed
    $template
     = 'sledgehammer/mvc/templates/dialog.php'
        
        
    
$body
    private
        mixed
    $body
    
        
        
    
$choices
    private
        mixed
    $choices
    
        
        
    
$close
    private
        mixed
    $close
     = false
        
        
    
$identifier
    private
        mixed
    $identifier
     = 'answer'
        
        
    
$method
    private
        mixed
    $method
     = 'post'
        
        
    
$title
    private
        mixed
    $title
    
        
        
    
Methods
__call()
Report that the $method doesn't exist.
    public
                __call(string $method, array<string|int, mixed> $arguments) : mixed
    
        Parameters
- $method : string
- $arguments : array<string|int, mixed>
Return values
mixed —__callStatic()
Report that the $method doesn't exist.
    public
            static    __callStatic(string $method, array<string|int, mixed> $arguments) : mixed
    
        Parameters
- $method : string
- $arguments : array<string|int, mixed>
Return values
mixed —__construct()
    public
                __construct(string $title, string $body[, array<string|int, mixed> $choices = [] ][, array<string|int, mixed> $options = [] ]) : mixed
    
        Parameters
- $title : string
- $body : string
- 
                    html 
- $choices : array<string|int, mixed> = []
- $options : array<string|int, mixed> = []
- 
                    [optional] 
Return values
mixed —__get()
Report that $property doesn't exist.
    public
                __get(string $property) : mixed
    
        Parameters
- $property : string
Return values
mixed —__set()
Report that $property doesn't exist and set the property to the given $value.
    public
                __set(string $property, mixed $value) : mixed
    
        Parameters
- $property : string
- $value : mixed
Return values
mixed —__toString()
The object is used as an string.
    public
                __toString() : string
    
    
    
        Return values
string —getHeaders()
    public
                getHeaders() : mixed
        
    
    
        Return values
mixed —prompt()
    public
                prompt([mixed &$error = null ][, mixed $request = null ]) : mixed
        
        Parameters
- $error : mixed = null
- $request : mixed = null
Return values
mixed —render()
Render the view to the client (echo statements).
    public
                render() : mixed