/** * @param PURGE_OPTIONS $options * @access private */ protected function _purge($options) { if ($options->remove_resources) { $url = $this->location(true); $file_name = url_to_file_name($url->as_text()); if ($file_name) { @unlink($file_name); } $url = $this->thumbnail_location(true); $file_name = url_to_file_name($url->as_text()); if ($file_name) { @unlink($file_name); } } parent::_purge($options); }