Zip::remove

public Zip::remove($file_path) Removes the specified file from the archive. Parameters string $path: The file name relative to the root of the archive to remove. Return value \Drupal\Core\Archiver\ArchiverInterface The called object. Overrides ArchiverInterface::remove File core/lib/Drupal/Core/Archiver/Zip.php, line 48 Class Zip Defines a archiver implementation for .zip files. Namespace Drupal\Core\Archiver Code public function remove($file_path) { $this->zip->deleteName($f

Zip::__construct

public Zip::__construct($file_path) Constructs a Zip object. Parameters string $file_path: The full system path of the archive to manipulate. Only local files are supported. If the file does not yet exist, it will be created if appropriate. Throws \Drupal\Core\Archiver\ArchiverException File core/lib/Drupal/Core/Archiver/Zip.php, line 29 Class Zip Defines a archiver implementation for .zip files. Namespace Drupal\Core\Archiver Code public function __construct($file_path) { $this-&g

_aggregator_allowed_tags

_aggregator_allowed_tags() Gets the list of allowed tags. @internal Return value array The list of allowed tags. File core/modules/aggregator/aggregator.module, line 171 Used to aggregate syndicated content (RSS, RDF, and Atom). Code function _aggregator_allowed_tags() { return preg_split('/\s+|<|>/', \Drupal::config('aggregator.settings')->get('items.allowed_html'), -1, PREG_SPLIT_NO_EMPTY); }

_batch_finished

_batch_finished() Ends the batch processing. Call the 'finished' callback of each batch set to allow custom handling of the results and resolve page redirection. File core/includes/batch.inc, line 400 Batch processing API for processes to run in multiple HTTP requests. Code function _batch_finished() { $batch = &batch_get(); $batch_finished_redirect = NULL; // Execute the 'finished' callbacks for each batch set, if defined. foreach ($batch['sets'] as $batch_set) { if (isset($

_batch_api_percentage

_batch_api_percentage($total, $current) Formats the percent completion for a batch set. Parameters int $total: The total number of operations. int|float $current: The number of the current operation. This may be a floating point number rather than an integer in the case of a multi-step operation that is not yet complete; in that case, the fractional part of $current represents the fraction of the operation that has been completed. Return value string The properly formatted percentage, as a st

_batch_do

_batch_do() Does one execution pass with JavaScript and returns progress to the browser. See also _batch_progress_page_js() _batch_process() File core/includes/batch.inc, line 93 Batch processing API for processes to run in multiple HTTP requests. Code function _batch_do() { // Perform actual processing. list($percentage, $message, $label) = _batch_process(); return new JsonResponse(array('status' => TRUE, 'percentage' => $percentage, 'message' => $message, 'label' => $lab

Zip::getArchive

public Zip::getArchive() Retrieves the zip engine itself. In some cases it may be necessary to directly access the underlying ZipArchive object for implementation-specific logic. This is for advanced use only as it is not shared by other implementations of ArchiveInterface. Return value \ZipArchive The ZipArchive object used by this object. File core/lib/Drupal/Core/Archiver/Zip.php, line 89 Class Zip Defines a archiver implementation for .zip files. Namespace Drupal\Core\Archiver Cod

Zip::$zip

The underlying ZipArchive instance that does the heavy lifting. Type: \ZipArchive File core/lib/Drupal/Core/Archiver/Zip.php, line 17 Class Zip Defines a archiver implementation for .zip files. Namespace Drupal\Core\Archiver Code protected $zip;

Zip::add

public Zip::add($file_path) Adds the specified file or directory to the archive. Parameters string $file_path: The full system path of the file or directory to add. Only local files and directories are supported. Return value \Drupal\Core\Archiver\ArchiverInterface The called object. Overrides ArchiverInterface::add File core/lib/Drupal/Core/Archiver/Zip.php, line 39 Class Zip Defines a archiver implementation for .zip files. Namespace Drupal\Core\Archiver Code public function add($f

Zip

Defines a archiver implementation for .zip files. @link http://php.net/zip Hierarchy class \Drupal\Core\Archiver\Zip implements ArchiverInterface File core/lib/Drupal/Core/Archiver/Zip.php, line 10 Namespace Drupal\Core\Archiver Members Name Modifiers Type Description Zip::$zip protected property The underlying ZipArchive instance that does the heavy lifting. Zip::add public function Adds the specified file or directory to the archive. Overrides ArchiverInterface