<?php
namespace Claromentis\Quiz\Controller;

$GLOBALS["__65da1b1ec2d665" . "3e8a0ab7848e5362" . "15"] = (@$GLOBALS["__65da1b1ec2d6653e8a0" . "ab7848e536215"] ?: array()) + array("_4f972d8e1eed" . "d2e581b50f3cf" . "4add99b" => base64_decode("bGVh" . "cm5p" . "bmc="), "_dc55adf8ec35ba5a04bac693" . "7ed2510c" => base64_decode("YXBwX3RpdGxlX2VuYWJsZWQudm" . "lzaWJsZQ=="), "_df1463d8a9b74272d2025f4eb59541" . "14" => base64_decode("YXBwX3RpdGx" . "lX2Rpc2FibG" . "VkLnZpc2lib" . "GU="), "_fa447d7fa2948" . "f150ff80176241" . "af90d" => base64_decode("cGx1Z2lucy5yZXBvc2l0b3J" . "5"));
use Claromentis\Core\Http\RedirectResponse;
use Claromentis\Core\Http\TemplaterCallResponse;
trait Helper
{
    
    
    
    
    
    
    
    
    
    
    
    public function Respond($template, array $args = array(), $title = null, $message = null, $is_error = false, $is_quiz = true)
    {
        global $g_application;
        
        
        if (!$g_application[$GLOBALS["__65da1b1ec2d6653" . "e8a0ab7848e536215"]["_fa447d7fa2948f150ff801" . "76241af90d"]]->Exists($GLOBALS["__65da1b1ec2d6653e" . "8a0ab7848e536215"]["_4f972d8e1eedd2e58" . "1b50f3cf4add99b"]) && $is_quiz) {
            $args[$GLOBALS["__65da1b1ec2d6" . "653e8a0ab7848e" . "536215"]["_dc55adf8ec35ba5" . "a04bac6937ed2510" . "c"]] = false;
            $args[$GLOBALS["__65da1b1ec2d" . "6653e8a0ab784" . "8e536215"]["_df1463d8a9b74272d202" . "5f4eb5954114"]] = true;
        }
        $response = new TemplaterCallResponse($template, $args, $title);
        if ($message !== null) {
            $response->SetMessage($message, $is_error);
        }
        return $response;
    }
    
    
    
    
    
    
    
    
    
    public function Redirect($url, $message = null, $is_error = false)
    {
        return RedirectResponse::httpRedirect($url, $message, $is_error);
    }
}