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;

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

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