_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

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

_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); }

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

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::extract

public Zip::extract($path, array $files = array()) Extracts multiple files in the archive to the specified path. Parameters string $path: A full system path of the directory to which to extract files. array $files: Optionally specify a list of files to be extracted. Files are relative to the root of the archive. If not specified, all files in the archive will be extracted. Return value \Drupal\Core\Archiver\ArchiverInterface The called object. Overrides ArchiverInterface::extract File core/li

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