You are here

class PurgeDependCurl in Purge 7.2

Checks if the curl library is installed.

Hierarchy

Expanded class hierarchy of PurgeDependCurl

File

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

View source
class PurgeDependCurl extends PurgeDepend {

  /**
   * Declares the dependency on the curl library.
   */
  public function depends() {
    $dependables = array(
      'custom' => array(
        'curl' => array(
          'name' => t('The Curl library for PHP.'),
          'description' => t('Install the curl library.'),
          'help_link' => 'http://php.net/manual/en/book.curl.php',
        ),
      ),
    );
    return $dependables;
  }

  /**
   * Checks if the curl library is installed.
   */
  public function check_depend() {
    $pass = extension_loaded('curl');
    return $pass;
  }

}

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::__sleep public function Only serialize the static values. 1
PurgeDepend::validate public function Validates the dependency. Overrides Purge::validate
PurgeDependCurl::check_depend public function Checks if the curl library is installed.
PurgeDependCurl::depends public function Declares the dependency on the curl library.