You are here

public function PurgeHandlerCurl::execute in Purge 7.2

Funtion will determine what options are set and call the right execute function.

File

includes/purge.class.inc, line 531
Contains all class and interface definitions for Purge.

Class

PurgeHandlerCurl
Class definition for the Curl HTTP request library.

Code

public function execute($purges, $handler_options) {
  if ($handler_options['multi']) {

    //if ($handler_options['legacy']) {

    //  $purges = $this->execute_legacy($purges, $handler_options);

    //}

    //else {
    $purges = $this
      ->execute_multi($purges, $handler_options);

    // }
  }
  else {
    $purges = $this
      ->execute_single($purges, $handler_options);
  }
  return $purges;
}