<?php
public function getAllData($code)
{
$STH = $this->DBH->prepare("SELECT id, fullname, company FROM data WHERE data.code = :code");
$STH->bindValue(":code", $code);
$STH->execute();
$result = $STH->fetchAll(PDO::FETCH_CLASS | PDO::FETCH_PROPS_LATE, "Workers");
return $result;
}
PD9waHAKCnB1YmxpYyBmdW5jdGlvbiBnZXRBbGxEYXRhKCRjb2RlKQp7CiAgICAkU1RIID0gJHRoaXMtPkRCSC0+cHJlcGFyZSgiU0VMRUNUIGlkLCBmdWxsbmFtZSwgY29tcGFueSBGUk9NIGRhdGEgV0hFUkUgZGF0YS5jb2RlID0gOmNvZGUiKTsKCiAgICAkU1RILT5iaW5kVmFsdWUoIjpjb2RlIiwgJGNvZGUpOwogICAgJFNUSC0+ZXhlY3V0ZSgpOwoKICAgICRyZXN1bHQgPSAkU1RILT5mZXRjaEFsbChQRE86OkZFVENIX0NMQVNTIHwgUERPOjpGRVRDSF9QUk9QU19MQVRFLCAiV29ya2VycyIpOwoKICAgIHJldHVybiAkcmVzdWx0Owp9