PHP Class Tollwerk\Squeezr\Cleaner

Since: 1.0b
Author: Joschi Kuphal ([email protected])
ファイルを表示 Open project: jkphl/squeezr Class Usage Examples

Protected Properties

Property Type Description
$_base string Base path

Public Methods

Method Description
clean ( ) : void Recursively clean the cache directory given as base path
instance ( string $base ) : Cleaner Instanciate a cache cleaner

Private Methods

Method Description
__construct ( string $base ) Constructor
_cleanDirectory ( string $path = '' ) : integer Recursively clean a subdirectory

Method Details

clean() public method

Recursively clean the cache directory given as base path
public clean ( ) : void
return void

instance() public static method

Instanciate a cache cleaner
public static instance ( string $base ) : Cleaner
$base string Base path
return Cleaner Instance reference

Property Details

$_base protected_oe property

Base path
protected string $_base
return string