XBRL-Global.php
public function removeCache()
	{
		if ( ! $this->useCache || ! $this->cacheLocation ) return false;

		if ( ! is_dir( $this->cacheLocation ) ) return false;

		$rmrf = function ($dir) use ( &$rmrf )
		{
		    foreach ( glob( $dir ) as $file )
		    {
		        if ( is_dir( $file ) )
		        {
		            $rmrf( "$file/*" );
		            rmdir( $file );
		        }
		        else
		        {
		            unlink( $file );
		        }
		    }
		};

		$rmrf( $this->cacheLocation );

		return true;
	}
public function removeCache()
	{
		if ( ! $this->useCache || ! $this->cacheLocation ) return false;

		if ( ! is_dir( $this->cacheLocation ) ) return false;

		$rmrf = function ($dir) use ( &$rmrf )
		{
		    foreach ( glob( $dir ) as $file )
		    {
		        if ( is_dir( $file ) )
		        {
		            $rmrf( "$file/*" );
		            rmdir( $file );
		        }
		        else
		        {
		            unlink( $file );
		        }
		    }
		};

		$rmrf( $this->cacheLocation );

		return true;
	}
public function removeCache ( ) { if ( ! $ this -> useCache || ! $ this -> cacheLocation ) return false ; if ( ! is_dir ( $ this -> cacheLocation ) ) return false ; $ rmrf = function ( $ dir ) use ( & $ rmrf ) { foreach ( glob ( $ dir ) as $ file ) { if ( is_dir ( $ file ) ) { $ rmrf ( "$file/*" ) ; rmdir ( $ file ) ; } else { unlink ( $ file ) ; } } } ; $ rmrf ( $ this -> cacheLocation ) ; return true ; }
Removes any cached file and directories
@return boolean True if the directory exists and has been deleted
Removes any cached file and directories