PHP Classes

File: application/modules/extensions/aws/Aws/Api/Serializer/RestXmlSerializer.php

Recommend this page to a friend!
  Classes of Tran Tuan  >  Pretty PHP S3 Files Manager  >  application/modules/extensions/aws/Aws/Api/Serializer/RestXmlSerializer.php  >  Download  
File: application/modules/extensions/aws/Aws/Api/Serializer/RestXmlSerializer.php
Role: Application script
Content type: text/plain
Description: Application script
Class: Pretty PHP S3 Files Manager
Web based interface to manage files in Amazon S3
Author: By
Last change:
Date: 6 years ago
Size: 848 bytes


Class file image Download
namespace Aws\Api\Serializer;


 * @internal
class RestXmlSerializer extends RestSerializer
/** @var XmlBody */
private $xmlBody;

     * @param Service $api Service API description
     * @param string $endpoint Endpoint to connect to
     * @param XmlBody $xmlBody Optional XML formatter to use
public function __construct(
Service $api,
XmlBody $xmlBody = null
) {
parent::__construct($api, $endpoint);
$this->xmlBody = $xmlBody ?: new XmlBody($api);

    protected function
payload(StructureShape $member, array $value, array &$opts)
$opts['headers']['Content-Type'] = 'application/xml';
$opts['body'] = (string) $this->xmlBody->build($member, $value);

For more information send a message to info at phpclasses dot org.