PHP Class Nabble\SemaltBlocker\Updater

Show file Open project: nabble/semalt-blocker Class Usage Examples

Public Properties

Property Type Description
$ttl
$updateUrl = 60 * 60 * 24 * 7 = 7 days

Public Methods

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

Private Methods

Method Description
doUpdate ( )
isOutdated ( ) : boolean
isWritable ( ) : boolean

Method Details

getBlocklistFilename() public static method

public static getBlocklistFilename ( ) : string
return string

getNewDomainList() public static method

public static getNewDomainList ( ) : string
return string

update() public static method

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

Property Details

$ttl public static property

public static $ttl

$updateUrl public static property

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