class PurgeHandlerDrupal in Purge 7.2
Class definition for the Drupal HTTP request handler.
Hierarchy
- class \Purge
- class \PurgeHandler
- class \PurgeHandlerDrupal
- class \PurgeHandler
Expanded class hierarchy of PurgeHandlerDrupal
File
- includes/
purge.class.inc, line 498 - Contains all class and interface definitions for Purge.
View source
class PurgeHandlerDrupal extends PurgeHandler {
/**
* Function to execute items from a queue.
*
* @param array $purges
*
* @param array $handler_options
*
* @return array $purges
*/
public function execute($purges, $handler_options) {
foreach ($purges as $purge_id => $purge) {
$options = array(
'headers' => $purge['headers'],
'method' => $handler_options['method'],
);
$results = drupal_http_request($purge['purge_url'], $options);
$purges[$purge_id]['http_code'] = 200;
// $results['code'];
}
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 |
PurgeHandlerDrupal:: |
public | function | Function to execute items from a queue. |