Esempio n. 1
0
<?php

/*
@info
Κλάση υπεύθυνη για την δημιουργία αναφοράς
*/
//header('Content-Type: text/html; charset=utf-8');
header('Content-type=application/json; charset=utf-8');
require_once __DIR__ . '/db_connect.php';
$database = new DB_CONNECT();
$rep = new report();
$rep->makeReport($_REQUEST["getReasons"], $_REQUEST["orderid"], $_REQUEST["reportfrom"], $_REQUEST["reportTo"], $_REQUEST["userType"]);
//========================================================================================
class report
{
    private $jsonResponse;
    private $reportReason;
    private $orderid;
    private $reportFrom;
    private $reportTo;
    private $sql;
    private $query;
    function __construct()
    {
        $this->jsonResponse = array();
        $this->reportReason = null;
        $this->sql = "";
        $this->query = null;
        $this->orderid = null;
        $this->reportFrom = null;
        $this->reportTo = null;