interface DatabaseFileUtilityInterface in Smart IP 8.3
Same name and namespace in other branches
- 8.4 src/DatabaseFileUtilityInterface.php \Drupal\smart_ip\DatabaseFileUtilityInterface
- 8.2 src/DatabaseFileUtilityInterface.php \Drupal\smart_ip\DatabaseFileUtilityInterface
Provides an interface for Smart IP's data source modules for its database file.
@package Drupal\smart_ip
Hierarchy
- interface \Drupal\smart_ip\DatabaseFileUtilityInterface
Expanded class hierarchy of DatabaseFileUtilityInterface
All classes that implement DatabaseFileUtilityInterface
File
- src/
DatabaseFileUtilityInterface.php, line 16 - Contains \Drupal\smart_ip\DatabaseFileUtilityInterface.
Namespace
Drupal\smart_ipView source
interface DatabaseFileUtilityInterface {
/**
* Get Smart IP's data source module's database filename.
*
* @return string
* Smart IP's data source module's database filename.
*/
public static function getFilename();
/**
* Get Smart IP's data source module's database file's path.
*
* @param bool $autoUpdate
* Auto update flag.
* @param string $customPath
* Smart IP's data source module's database file's user defined custom path.
* @return string
* Smart IP's data source module's database file's path.
*/
public static function getPath($autoUpdate, $customPath);
/**
* Checks if Smart IP's data source module's database file needs update.
*
* @param int $lastUpdateTime
* Smart IP's data source module's database file last update time.
* @param bool $autoUpdate
* Auto update flag.
* @param int $frequency
* Auto update frequency: weekly or monthly.
* @return bool
* TRUE if Smart IP's data source module's database file needs update and
* FALSE if not.
*/
public static function needsUpdate($lastUpdateTime, $autoUpdate, $frequency);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DatabaseFileUtilityInterface:: |
public static | function | Get Smart IP's data source module's database filename. | 2 |
DatabaseFileUtilityInterface:: |
public static | function | Get Smart IP's data source module's database file's path. | 1 |
DatabaseFileUtilityInterface:: |
public static | function | Checks if Smart IP's data source module's database file needs update. | 1 |