PHP Class Nabble\SemaltBlocker\Updater

Afficher le fichier Open project: nabble/semalt-blocker Class Usage Examples

Méthodes publiques

Свойство Type Description
$ttl
$updateUrl = 60 * 60 * 24 * 7 = 7 days

Méthodes publiques

Méthode Description
getBlocklistFilename ( ) : string
getNewDomainList ( ) : string
update ( boolean $force = false ) Try to update the blocked domains list.

Private Methods

Méthode Description
doUpdate ( )
isOutdated ( ) : boolean
isWritable ( ) : boolean

Method Details

getBlocklistFilename() public static méthode

public static getBlocklistFilename ( ) : string
Résultat string

getNewDomainList() public static méthode

public static getNewDomainList ( ) : string
Résultat string

update() public static méthode

Try to update the blocked domains list.
public static update ( boolean $force = false )
$force boolean

Property Details

$ttl public_oe static_oe property

public static $ttl

$updateUrl public_oe static_oe property

= 60 * 60 * 24 * 7 = 7 days
public static $updateUrl