class PurgeDependCurl in Purge 7.2
Checks if the curl library is installed.
Hierarchy
- class \Purge
- class \PurgeDepend implements PurgeValidateable
- class \PurgeDependCurl
- class \PurgeDepend implements PurgeValidateable
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
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 | Only serialize the static values. | 1 |
PurgeDepend:: |
public | function |
Validates the dependency. Overrides Purge:: |
|
PurgeDependCurl:: |
public | function | Checks if the curl library is installed. | |
PurgeDependCurl:: |
public | function | Declares the dependency on the curl library. |