ProfilerStorageInterface
in
ProfilerStorageInterface.
Tags
Table of Contents
- find() : array<string|int, mixed>
- Finds profiler tokens for the given criteria.
- purge() : mixed
- Purges all data from the database.
- read() : Profile|null
- Reads data associated with the given token.
- write() : bool
- Saves a Profile.
Methods
find()
Finds profiler tokens for the given criteria.
public
find(string $ip, string $url, string $limit, string $method[, int|null $start = null ][, int|null $end = null ]) : array<string|int, mixed>
Parameters
- $ip : string
-
The IP
- $url : string
-
The URL
- $limit : string
-
The maximum number of tokens to return
- $method : string
-
The request method
- $start : int|null = null
-
The start date to search from
- $end : int|null = null
-
The end date to search to
Return values
array<string|int, mixed> —An array of tokens
purge()
Purges all data from the database.
public
purge() : mixed
Return values
mixed —read()
Reads data associated with the given token.
public
read(string $token) : Profile|null
The method returns false if the token does not exist in the storage.
Parameters
- $token : string
-
A token
Return values
Profile|null —The profile associated with token
write()
Saves a Profile.
public
write(Profile $profile) : bool
Parameters
- $profile : Profile
Return values
bool —Write operation successful