YamlSymfony::getFileExtension

public static YamlSymfony::getFileExtension() Gets the file extension for this serialization format. Return value string The file extension, without leading dot. Overrides SerializationInterface::getFileExtension File core/lib/Drupal/Component/Serialization/YamlSymfony.php, line 46 Class YamlSymfony Default serialization for YAML using the Symfony component. Namespace Drupal\Component\Serialization Code public static function getFileExtension() { return 'yml'; }

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::$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::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::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::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::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); }