You are here

interface DatabaseFileUtilityInterface in Smart IP 8.3

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

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
   *   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

Namesort descending Modifiers Type Description Overrides
DatabaseFileUtilityInterface::getFilename public static function Get Smart IP's data source module's database filename. 2
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