예제 #1
0
<?php

header('Content-Type: text/html; charset=utf-8');
define("PASTA", "d:/httpc/tcm/");
define("PATH", "http://localhost/tcm/");
date_default_timezone_set('UTC');
include PASTA . "admin/class/config/Autoload.php";
include PASTA . "admin/class/config/AutoloadEntidade.php";
$autoload = new AutoloadEntidade(PASTA);
$postdata = file_get_contents("php://input");
$request = json_decode($postdata, true);
$representante = new Representante();
$representante->serializeArray("Representante", (array) $request);
$representanteService = new RepresentanteService();
$method = $_GET['sub'];
call_user_func($method, $representante);
function carregaTextoComFotos($representante)
{
    global $representanteService;
    $lista = $representanteService->buscarComFotos($representante);
    echo json_encode($lista);
}