[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@3.145.9.174: ~ $
<?php

use JMS\Serializer\Metadata\ClassMetadata;
use JMS\Serializer\Metadata\PropertyMetadata;

$metadata = new ClassMetadata('JMS\Serializer\Tests\Fixtures\BlogPost');
$metadata->xmlRootName = 'blog-post';

$metadata->registerNamespace('http://example.com/namespace');
$metadata->registerNamespace('http://schemas.google.com/g/2005', 'gd');
$metadata->registerNamespace('http://www.w3.org/2005/Atom', 'atom');
$metadata->registerNamespace('http://purl.org/dc/elements/1.1/', 'dc');

$pMetadata = new PropertyMetadata('JMS\Serializer\Tests\Fixtures\BlogPost', 'id');
$pMetadata->setType('string');
$pMetadata->groups = array('comments', 'post');
$pMetadata->xmlElementCData = false;
$metadata->addPropertyMetadata($pMetadata);

$pMetadata = new PropertyMetadata('JMS\Serializer\Tests\Fixtures\BlogPost', 'title');
$pMetadata->setType('string');
$pMetadata->groups = array('comments', 'post');
$pMetadata->xmlNamespace = "http://purl.org/dc/elements/1.1/";
$metadata->addPropertyMetadata($pMetadata);

$pMetadata = new PropertyMetadata('JMS\Serializer\Tests\Fixtures\BlogPost', 'createdAt');
$pMetadata->setType('DateTime');
$pMetadata->xmlAttribute = true;
$metadata->addPropertyMetadata($pMetadata);

$pMetadata = new PropertyMetadata('JMS\Serializer\Tests\Fixtures\BlogPost', 'published');
$pMetadata->setType('boolean');
$pMetadata->serializedName = 'is_published';
$pMetadata->groups = array('post');
$pMetadata->xmlAttribute = true;
$metadata->addPropertyMetadata($pMetadata);

$pMetadata = new PropertyMetadata('JMS\Serializer\Tests\Fixtures\BlogPost', 'etag');
$pMetadata->setType('string');
$pMetadata->groups = array('post');
$pMetadata->xmlAttribute = true;
$pMetadata->xmlNamespace = 'http://schemas.google.com/g/2005';
$metadata->addPropertyMetadata($pMetadata);

$pMetadata = new PropertyMetadata('JMS\Serializer\Tests\Fixtures\BlogPost', 'comments');
$pMetadata->setType('ArrayCollection<JMS\Serializer\Tests\Fixtures\Comment>');
$pMetadata->xmlCollection = true;
$pMetadata->xmlCollectionInline = true;
$pMetadata->xmlEntryName = 'comment';
$pMetadata->groups = array('comments');

$metadata->addPropertyMetadata($pMetadata);

$pMetadata = new PropertyMetadata('JMS\Serializer\Tests\Fixtures\BlogPost', 'author');
$pMetadata->setType('JMS\Serializer\Tests\Fixtures\Author');
$pMetadata->groups = array('post');
$pMetadata->xmlNamespace = 'http://www.w3.org/2005/Atom';

$metadata->addPropertyMetadata($pMetadata);

return $metadata;

Filemanager

Name Type Size Permission Actions
AuthorExpressionAccess.php File 748 B 0644
AuthorReadOnly.php File 149 B 0644
AuthorReadOnlyPerClass.php File 157 B 0644
BlogPost.php File 2.39 KB 0644
Discriminator.Car.php File 152 B 0644
Discriminator.ImagePost.php File 158 B 0644
Discriminator.Moped.php File 154 B 0644
Discriminator.ObjectWithXmlAttributeDiscriminatorParent.php File 425 B 0644
Discriminator.ObjectWithXmlNamespaceAttributeDiscriminatorParent.php File 464 B 0644
Discriminator.ObjectWithXmlNamespaceDiscriminatorParent.php File 401 B 0644
Discriminator.Post.php File 549 B 0644
Discriminator.Vehicle.php File 533 B 0644
DiscriminatorGroup.Vehicle.php File 494 B 0644
Node.php File 341 B 0644
ObjectWithAbsentXmlListNode.php File 642 B 0644
ObjectWithExpressionVirtualPropertiesAndExcludeAll.php File 413 B 0644
ObjectWithHandlerCallbacks.php File 598 B 0644
ObjectWithVirtualProperties.php File 963 B 0644
ObjectWithVirtualPropertiesAndExcludeAll.php File 409 B 0644
ObjectWithXmlKeyValuePairs.php File 370 B 0644
ObjectWithXmlNamespaces.php File 1.71 KB 0644
ParentSkipWithEmptyChild.php File 522 B 0644
Person.php File 638 B 0644
PersonSecret.php File 783 B 0644
Price.php File 373 B 0644
SimpleClassObject.php File 1.08 KB 0644
SimpleSubClassObject.php File 1 KB 0644