function fetch_data() { global $dbh; $this->info = array(); if (!$this->id) { return; } $req = "select authperso_authority_authperso_num from authperso_authorities where id_authperso_authority=" . $this->id; $res = pmb_mysql_query($req, $dbh); if ($r = pmb_mysql_fetch_object($res)) { $authperso = new authperso($r->authperso_authority_authperso_num); $this->info['isbd'] = $authperso->get_isbd($this->id); $this->info['view'] = $authperso->get_view($this->id); $this->info['authperso'] = $authperso->get_data(); $this->info['data'] = $authperso->fetch_data_auth($this->id); $this->info['authperso_num'] = $r->authperso_authority_authperso_num; } }