public function PdoProfilerStorage::read in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Profiler/PdoProfilerStorage.php \Symfony\Component\HttpKernel\Profiler\PdoProfilerStorage::read()
Reads data associated with the given token.
The method returns false if the token does not exist in the storage.
Parameters
string $token A token:
Return value
Profile The profile associated with token
Overrides ProfilerStorageInterface::read
1 call to PdoProfilerStorage::read()
- PdoProfilerStorage::createProfileFromData in vendor/
symfony/ http-kernel/ Profiler/ PdoProfilerStorage.php
File
- vendor/
symfony/ http-kernel/ Profiler/ PdoProfilerStorage.php, line 71
Class
- PdoProfilerStorage
- Base PDO storage for profiling information in a PDO database.
Namespace
Symfony\Component\HttpKernel\ProfilerCode
public function read($token) {
$db = $this
->initDb();
$args = array(
':token' => $token,
);
$data = $this
->fetch($db, 'SELECT data, parent, ip, method, url, time FROM sf_profiler_data WHERE token = :token LIMIT 1', $args);
$this
->close($db);
if (isset($data[0]['data'])) {
return $this
->createProfileFromData($token, $data[0]);
}
}