protected function __construct($db, $filtro, $sql, $fieldList) { $this->filtro = $filtro; $this->sql = $sql; $this->fieldList = $fieldList; $data = new ControladorAccess($db, $this->sql); $data->set_field_list($this->fieldList); $this->json = $data->get_json_data(); }