[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

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

(no description)

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

Defines 1 class

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


Class: Profiler  - X-Ref

Profiler.

__construct(ProfilerStorageInterface $storage, LoggerInterface $logger = null)   X-Ref
Constructor.

param: ProfilerStorageInterface $storage A ProfilerStorageInterface instance
param: LoggerInterface          $logger  A LoggerInterface instance

disable()   X-Ref
Disables the profiler.


enable()   X-Ref
Enables the profiler.


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

param: Response $response A Response instance
return: Profile A Profile instance

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

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

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

param: Profile $profile A Profile instance
return: bool

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


export(Profile $profile)   X-Ref
Exports the current profiler data.

param: Profile $profile A Profile instance
return: string The exported data

import($data)   X-Ref
Imports data into the profiler storage.

param: string $data A data string as exported by the export() method
return: Profile A Profile instance

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

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
return: array An array of tokens

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

param: Request    $request   A Request instance
param: Response   $response  A Response instance
param: \Exception $exception An exception instance if the request threw one
return: Profile|null A Profile instance or null if the profiler is disabled

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

return: array An array of collectors

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

param: DataCollectorInterface[] $collectors An array of collectors

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

param: DataCollectorInterface $collector A DataCollectorInterface instance

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

param: string $name A collector name
return: bool

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

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

getTimestamp($value)   X-Ref
No description



Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1