[ Index ]

PHP Cross Reference of phpBB-3.3.3-deutsch

title

Body

[close]

/vendor/symfony/http-kernel/Profiler/ -> Profiler.php (summary)

(no description)

File Size: 268 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Profiler:: (16 methods):
  __construct()
  disable()
  enable()
  loadProfileFromResponse()
  loadProfile()
  saveProfile()
  purge()
  find()
  collect()
  reset()
  all()
  set()
  add()
  has()
  get()
  getTimestamp()


Class: Profiler  - X-Ref

Profiler.

__construct(ProfilerStorageInterface $storage, LoggerInterface $logger = null, $enable = true)   X-Ref

param: bool $enable The initial enabled state

disable()   X-Ref
Disables the profiler.


enable()   X-Ref
Enables the profiler.


loadProfileFromResponse(Response $response)   X-Ref
Loads the Profile for the given Response.

return: Profile|null A Profile instance

loadProfile($token)   X-Ref
Loads the Profile for the given token.

return: Profile|null A Profile instance
param: string $token A token

saveProfile(Profile $profile)   X-Ref
Saves a Profile.

return: bool

purge()   X-Ref
Purges all data from the storage.


find($ip, $url, $limit, $method, $start, $end, $statusCode = null)   X-Ref
Finds profiler tokens for the given criteria.

return: array An array of tokens
param: string $ip         The IP
param: string $url        The URL
param: string $limit      The maximum number of tokens to return
param: string $method     The request method
param: string $start      The start date to search from
param: string $end        The end date to search to
param: string $statusCode The request status code

collect(Request $request, Response $response, \Exception $exception = null)   X-Ref
Collects data for the given Response.

return: Profile|null A Profile instance or null if the profiler is disabled

reset()   X-Ref
No description

all()   X-Ref
Gets the Collectors associated with this profiler.

return: array An array of collectors

set(array $collectors = [])   X-Ref
Sets the Collectors associated with this profiler.

param: DataCollectorInterface[] $collectors An array of collectors

add(DataCollectorInterface $collector)   X-Ref
Adds a Collector.


has($name)   X-Ref
Returns true if a Collector for the given name exists.

return: bool
param: string $name A collector name

get($name)   X-Ref
Gets a Collector by name.

return: DataCollectorInterface A DataCollectorInterface instance
param: string $name A collector name

getTimestamp($value)   X-Ref

return: int|null



Generated: Sun Feb 14 20:08:31 2021 Cross-referenced by PHPXref 0.7.1