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

YamlSymfony::decode

public static YamlSymfony::decode($raw) Decodes data from the serialization format. Parameters string $raw: The raw data string to decode. Return value mixed The decoded data. Overrides SerializationInterface::decode File core/lib/Drupal/Component/Serialization/YamlSymfony.php, line 31 Class YamlSymfony Default serialization for YAML using the Symfony component. Namespace Drupal\Component\Serialization Code public static function decode($raw) { try { $yaml = new Parser(); /

YamlSymfony

Default serialization for YAML using the Symfony component. Hierarchy class \Drupal\Component\Serialization\YamlSymfony implements SerializationInterface File core/lib/Drupal/Component/Serialization/YamlSymfony.php, line 12 Namespace Drupal\Component\Serialization Members Name Modifiers Type Description YamlSymfony::decode public static function Decodes data from the serialization format. Overrides SerializationInterface::decode YamlSymfony::encode public static fu

YamlSymfony::encode

public static YamlSymfony::encode($data) Encodes data into the serialization format. Parameters mixed $data: The data to encode. Return value string The encoded data. Overrides SerializationInterface::encode File core/lib/Drupal/Component/Serialization/YamlSymfony.php, line 17 Class YamlSymfony Default serialization for YAML using the Symfony component. Namespace Drupal\Component\Serialization Code public static function encode($data) { try { $yaml = new Dumper(); $yaml->

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'; }

YamlPecl::errorHandler

public static YamlPecl::errorHandler($severity, $message) Handles errors for \Drupal\Component\Serialization\YamlPecl::decode(). Parameters int $severity: The severity level of the error. string $message: The error message to display. See also \Drupal\Component\Serialization\YamlPecl::decode() File core/lib/Drupal/Component/Serialization/YamlPecl.php, line 61 Class YamlPecl Provides default serialization for YAML using the PECL extension. Namespace Drupal\Component\Serialization Code

YamlPecl::decode

public static YamlPecl::decode($raw) Decodes data from the serialization format. Parameters string $raw: The raw data string to decode. Return value mixed The decoded data. Overrides SerializationInterface::decode File core/lib/Drupal/Component/Serialization/YamlPecl.php, line 29 Class YamlPecl Provides default serialization for YAML using the PECL extension. Namespace Drupal\Component\Serialization Code public static function decode($raw) { // yaml_parse() will error with an empty

YamlPecl::encode

public static YamlPecl::encode($data) Encodes data into the serialization format. Parameters mixed $data: The data to encode. Return value string The encoded data. Overrides SerializationInterface::encode File core/lib/Drupal/Component/Serialization/YamlPecl.php, line 15 Class YamlPecl Provides default serialization for YAML using the PECL extension. Namespace Drupal\Component\Serialization Code public static function encode($data) { static $init; if (!isset($init)) { ini_set

YamlPecl::getFileExtension

public static YamlPecl::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/YamlPecl.php, line 69 Class YamlPecl Provides default serialization for YAML using the PECL extension. Namespace Drupal\Component\Serialization Code public static function getFileExtension() { return 'yml'; }