You are here

interface DatabaseFileUtilityInterface in Smart IP 8.2

Same name and namespace in other branches
  1. 8.4 src/DatabaseFileUtilityInterface.php \Drupal\smart_ip\DatabaseFileUtilityInterface
  2. 8.3 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

Expanded class hierarchy of DatabaseFileUtilityInterface

All classes that implement DatabaseFileUtilityInterface

File

src/DatabaseFileUtilityInterface.php, line 16
Contains \Drupal\smart_ip\DatabaseFileUtilityInterface.

Namespace

Drupal\smart_ip
View source
interface DatabaseFileUtilityInterface {

  /**
   * Get Smart IP's data source module's database filename.
   *
   * @return string
   */
  public static function getFilename();

  /**
   * Get Smart IP's data source module's database file's path.
   *
   * @param bool $autoUpdate
   * @param string $customPath
   * @return string
   */
  public static function getPath($autoUpdate, $customPath);

  /**
   * Checks if Smart IP's data source module's database file needs update.
   *
   * @param bool $autoUpdate
   * @param int $frequency
   * @return bool
   */
  public static function needsUpdate($autoUpdate, $frequency);

}

Members

Namesort descending Modifiers Type Description Overrides
DatabaseFileUtilityInterface::getFilename public static function Get Smart IP's data source module's database filename.
DatabaseFileUtilityInterface::getPath public static function Get Smart IP's data source module's database file's path. 1
DatabaseFileUtilityInterface::needsUpdate public static function Checks if Smart IP's data source module's database file needs update. 1