REDROOM
PHP 7.4.33
Path:
Logout
Edit File
Size: 1.30 KB
Close
/home/godevadmin/www/admin/vendor/aws/Aws/Api/Serializer/RestXmlSerializer.php
Text
Base64
<?php namespace Aws\Api\Serializer; use Aws\Api\StructureShape; use Aws\Api\Service; /** * @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, $endpoint, 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'] = $this->getXmlBody($member, $value); } /** * @param StructureShape $member * @param array $value * @return string */ private function getXmlBody(StructureShape $member, array $value) { $xmlBody = (string)$this->xmlBody->build($member, $value); $xmlBody = str_replace("'", "'", $xmlBody); $xmlBody = str_replace('\r', " ", $xmlBody); $xmlBody = str_replace('\n', " ", $xmlBody); return $xmlBody; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 9
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Ec2ParamBuilder.php
906 B
lrwxrwxr-x
2024-06-18 20:09:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
JsonBody.php
2.80 KB
lrwxrwxr-x
2024-06-18 20:09:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
JsonRpcSerializer.php
1.82 KB
lrwxrwxr-x
2024-06-18 20:09:54
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
QueryParamBuilder.php
4.08 KB
lrwxrwxr-x
2024-06-18 20:09:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
QuerySerializer.php
1.75 KB
lrwxrwxr-x
2024-06-18 20:09:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
RestJsonSerializer.php
1.14 KB
lrwxrwxr-x
2024-06-18 20:09:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
RestSerializer.php
8.33 KB
lrwxrwxr-x
2024-06-18 20:09:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
RestXmlSerializer.php
1.30 KB
lrwxrwxr-x
2024-06-18 20:09:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
XmlBody.php
5.99 KB
lrwxrwxr-x
2024-06-18 20:09:56
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).