Symfony\Component\HttpKernel\Profiler\PdoProfilerStorage
Base PDO storage for profiling information in a PDO database.
- Author: Fabien Potencier <fabien@symfony.com>
Synopsis
class PdoProfilerStorage
implements
ProfilerStorageInterface
{
- // members
- protected $dsn;
- protected $username;
- protected $password;
- protected $lifetime;
- protected $db;
- // methods
- public void __construct()
- public void find()
- public void read()
- public void write()
- public void purge()
- protected abstract array buildCriteria()
- protected abstract void initDb()
- protected void cleanup()
- protected void exec()
- protected void prepareStatement()
- protected void fetch()
- protected void close()
- protected void createProfileFromData()
- protected array readChildren()
- protected string has()
Hierarchy
Extended by
- Symfony\Component\HttpKernel\Profiler\SqliteProfilerStorage
- Symfony\Component\HttpKernel\Profiler\MysqlProfilerStorage
Implements
Members
protected
- $db
- $dsn
- $lifetime
- $password
- $username
Methods
protected
- buildCriteria() — Build SQL criteria to fetch records by ip and url
- cleanup()
- close()
- createProfileFromData()
- exec()
- fetch()
- has() — Returns whether data for the given token already exists in storage.
- initDb() — Initializes the database
- prepareStatement()
- readChildren() — Reads the child profiles for the given token.
public
- __construct() — Constructor.
- find() — {@inheritdoc}
- purge() — {@inheritdoc}
- read() — {@inheritdoc}
- write() — {@inheritdoc}