class MysqlProfilerStorage extends PdoProfilerStorage
A ProfilerStorage for Mysql
Methods
|
__construct(string $dsn, string $username = '', string $password = '', integer $lifetime = 86400)
Constructor. |
from PdoProfilerStorage | |
| array |
find(string $ip, string $url, string $limit, string $method, int|null $start = null, int|null $end = null)
Finds profiler tokens for the given criteria. |
from PdoProfilerStorage |
| Profile |
read(string $token)
Reads data associated with the given token. |
from PdoProfilerStorage |
| Boolean |
write(Profile $profile)
Saves a Profile. |
from PdoProfilerStorage |
|
purge()
Purges all data from the database. |
from PdoProfilerStorage |
Details
in PdoProfilerStorage at line 36
public
__construct(string $dsn, string $username = '', string $password = '', integer $lifetime = 86400)
Constructor.
in PdoProfilerStorage at line 47
public array
find(string $ip, string $url, string $limit, string $method, int|null $start = null, int|null $end = null)
Finds profiler tokens for the given criteria.
in PdoProfilerStorage at line 71
public Profile
read(string $token)
Reads data associated with the given token.
The method returns false if the token does not exists in the storage.
in PdoProfilerStorage at line 87
public Boolean
write(Profile $profile)
Saves a Profile.
in PdoProfilerStorage at line 121
public
purge()
Purges all data from the database.