You are here

class PurgeHandlerHttprl in Purge 7.2

Class definition for HTTPrl handler.

Hierarchy

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

Namesort descending Modifiers Type Description Overrides
Purge::$access public property
Purge::$available public property
Purge::$depend public property
Purge::$description public property
Purge::$enabled public property
Purge::$item public property
Purge::$name public property
Purge::$option public property
Purge::validate public function Does basic dependency checks for builtin dependencies. 5
Purge::__sleep public function Only serialize the static values. 1
PurgeHandlerHttprl::execute public function