protected function inline($type, $title, $text = null)
    {
        $html   = (string) $text;
        $inline = <<<EOD
           $(document).ready(function(){                 
                swal($.extend({}, APP.swal.$type(), {
                    title: '$title',
                    text: '$html',                    
                    showConfirmButton: false,
                    showCancelButton: true,
                    cancelButtonText: 'Ok',
                    closeOnConfirm: false,
                    closeOnCancel: true
                }));
        });
EOD;
        return $inline;
    }