You are here

class PurgeHandlerDrupal in Purge 7.2

Class definition for the Drupal HTTP request handler.

Hierarchy

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

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
PurgeHandlerDrupal::execute public function Function to execute items from a queue.