class PurgeHandlerHttprl in Purge 7.2
Class definition for HTTPrl handler.
Hierarchy
- class \Purge
- class \PurgeHandler
- class \PurgeHandlerHttprl
- class \PurgeHandler
Expanded class hierarchy of PurgeHandlerHttprl
File
- includes/
purge.class.inc, line 634 - Contains all class and interface definitions for Purge.
View source
class PurgeHandlerHttprl extends PurgeHandler {
public function execute($purges, $handler_options) {
foreach ($purges as $purge_id => $purge) {
$headers_array = headers2array($purge['headers']);
// Gather options
$options = array(
'method' => $handler_options['method'],
'blocking' => FALSE,
'headers' => $purge['headers'],
);
// Queue the request
httprl_request($purge['purge_url'], $options);
// Since we don't care about the results, let's fake 200
$purges[$purge_id]['http_code'] = 200;
}
// Issue all requests.
$request = httprl_send_request();
return $purges;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Purge:: |
public | property | ||
Purge:: |
public | property | ||
Purge:: |
public | property | ||
Purge:: |
public | property | ||
Purge:: |
public | property | ||
Purge:: |
public | property | ||
Purge:: |
public | property | ||
Purge:: |
public | property | ||
Purge:: |
public | function | Does basic dependency checks for builtin dependencies. | 5 |
Purge:: |
public | function | Only serialize the static values. | 1 |
PurgeHandlerHttprl:: |
public | function |