protected function PdoProfilerStorage::has 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::has()
 
Returns whether data for the given token already exists in storage.
Parameters
string $token The profile token:
Return value
string
1 call to PdoProfilerStorage::has()
- PdoProfilerStorage::write in vendor/
symfony/ http-kernel/ Profiler/ PdoProfilerStorage.php  - Saves a Profile.
 
File
- vendor/
symfony/ http-kernel/ Profiler/ PdoProfilerStorage.php, line 255  
Class
- PdoProfilerStorage
 - Base PDO storage for profiling information in a PDO database.
 
Namespace
Symfony\Component\HttpKernel\ProfilerCode
protected function has($token) {
  $db = $this
    ->initDb();
  $tokenExists = $this
    ->fetch($db, 'SELECT 1 FROM sf_profiler_data WHERE token = :token LIMIT 1', array(
    ':token' => $token,
  ));
  $this
    ->close($db);
  return !empty($tokenExists);
}