_batch_current_set

&_batch_current_set() Returns the batch set being currently processed. File core/includes/batch.inc, line 363 Batch processing API for processes to run in multiple HTTP requests. Code function &_batch_current_set() { $batch = &batch_get(); return $batch['sets'][$batch['current_set']]; }

_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::__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

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

_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($

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

Zip::listContents

public Zip::listContents() Lists all files in the archive. Return value array An array of file names relative to the root of the archive. Overrides ArchiverInterface::listContents File core/lib/Drupal/Core/Archiver/Zip.php, line 71 Class Zip Defines a archiver implementation for .zip files. Namespace Drupal\Core\Archiver Code public function listContents() { $files = array(); for ($i = 0; $i < $this->zip->numFiles; $i++) { $files[] = $this->zip->getNameIndex($i)

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;