Home
last modified time | relevance | path

Searched refs:metadata (Results 1 – 25 of 238) sorted by relevance

12345678910

/plugin/findologicxmlexport/vendor/jms/serializer/src/Accessor/
H A DDefaultAccessorStrategy.php55 return $metadata->getValue(null);
71 if (null === $metadata->getter) {
74 $this->readAccessors[$metadata->class] = function ($o, $name) use ($metadata) {
91 return $this->readAccessors[$metadata->class]($object, $metadata->name);
94 return $object->{$metadata->getter}();
102 if (true === $metadata->readOnly) {
103 … throw new LogicException(sprintf('%s on %s is read only.', $metadata->name, $metadata->class));
106 if (null === $metadata->setter) {
109 … $this->writeAccessors[$metadata->class] = function ($o, $name, $value) use ($metadata): void {
126 $this->writeAccessors[$metadata->class]($object, $metadata->name, $value);
[all …]
/plugin/findologicxmlexport/vendor/jms/serializer/tests/Metadata/
H A DAbstractPropertyMetadataTest.php13 $metadata->sinceVersion = '1';
14 $metadata->untilVersion = '2';
17 $metadata->type = 'array';
18 $metadata->xmlCollection = true;
24 $metadata->xmlAttribute = true;
25 $metadata->xmlValue = true;
29 $metadata->inline = true;
30 $metadata->skipWhenEmpty = true;
31 $metadata->xmlAttributeMap = true;
32 $metadata->maxDepth = 1;
[all …]
H A DClassMetadataTest.php48 $metadata = new ClassMetadata('JMS\Serializer\Tests\Metadata\PropertyMetadataOrder');
51 self::assertEquals(['b', 'a'], array_keys($metadata->propertyMetadata));
53 $metadata->setAccessorOrder(ClassMetadata::ACCESSOR_ORDER_CUSTOM, $order);
54 self::assertEquals($expected, array_keys($metadata->propertyMetadata));
62 self::assertEquals(['b', 'a'], array_keys($metadata->propertyMetadata));
64 $metadata->setAccessorOrder(ClassMetadata::ACCESSOR_ORDER_ALPHABETICAL);
65 self::assertEquals(['a', 'b'], array_keys($metadata->propertyMetadata));
75 $metadata = new PropertyMetadata(get_class($object), $property);
78 self::assertEquals($getterName, $metadata->getter);
79 self::assertEquals($setterName, $metadata->setter);
[all …]
/plugin/findologicxmlexport/vendor/jms/metadata/
H A DCHANGELOG.md3 ## [2.0.0](https://github.com/schmittjoh/metadata/tree/2.0.0) (2018-11-09)
7 ## [1.7.0](https://github.com/schmittjoh/metadata/tree/1.7.0) (2018-10-26)
25 - metadata name not present leads to exception [\#39](https://github.com/schmittjoh/metadata/issues…
32 - simplified class metadata [\#67](https://github.com/schmittjoh/metadata/pull/67) ([goetas](https…
36 ## [1.6.0](https://github.com/schmittjoh/metadata/tree/1.6.0) (2016-12-05)
50 ## [1.5.1](https://github.com/schmittjoh/metadata/tree/1.5.1) (2014-07-12)
58 ## [1.5.0](https://github.com/schmittjoh/metadata/tree/1.5.0) (2013-11-05)
61 - Branch alias [\#38](https://github.com/schmittjoh/metadata/issues/38)
66 - Cache when there is no metadata for a class [\#36](https://github.com/schmittjoh/metadata/pull/36…
84 - Ability to eager-load possible metadata [\#19](https://github.com/schmittjoh/metadata/issues/19)
[all …]
H A DREADME.md1 Metadata is a library for class/method/property metadata management in PHP
13 This library provides some commonly needed base classes for managing metadata
14 for classes, methods and properties. The metadata can come from many different
17 The metadata classes are used to abstract away that source and provide a common
29 from the different metadata sources.
31 Finally, you can use the ``MetadataFactory`` to retrieve the metadata::
43 $metadata = $factory->getMetadataForClass('MyNamespace\MyObject');
47 [Master]: https://travis-ci.org/schmittjoh/metadata
49 [Master coverage]: https://scrutinizer-ci.com/g/schmittjoh/metadata/?branch=master
52 [1.x]: https://github.com/schmittjoh/metadata/tree/1.x
[all …]
/plugin/findologicxmlexport/vendor/jms/serializer/src/
H A DXmlDeserializationVisitor.php243 …case $metadata->xmlDiscriminatorAttribute && null === $metadata->xmlDiscriminatorNamespace && isse…
247metadata->xmlDiscriminatorAttribute && null !== $metadata->xmlDiscriminatorNamespace && isset($dat…
251metadata->xmlDiscriminatorAttribute && null !== $metadata->xmlDiscriminatorNamespace && isset($dat…
261 $metadata->name
276 $name = $metadata->serializedName;
278 if (!$metadata->type) {
281 if (true === $metadata->inline) {
284 if ($metadata->xmlAttribute) {
293 if ($metadata->xmlValue) {
297 if ($metadata->xmlCollection) {
[all …]
H A DXmlSerializationVisitor.php107 if (null !== $metadata && !empty($metadata->xmlRootName)) {
110 … $rootNamespace = $metadata->xmlRootNamespace ?: $this->getClassDefaultNamespace($metadata);
227 $this->createRoot($metadata);
240 if ($metadata->xmlAttribute) {
260 if ($metadata->xmlValue) {
276 if ($metadata->xmlAttributeMap) {
296 if ($addEnclosingElement = !$this->isInLineCollection($metadata) && !$metadata->inline) {
298 ? $metadata->xmlNamespace
335 return $metadata->xmlCollection && $metadata->xmlCollectionInline;
340 return null === $node && !$metadata->xmlCollection && $metadata->skipWhenEmpty;
[all …]
H A DJsonDeserializationVisitor.php131 if (isset($data[$metadata->discriminatorFieldName])) {
137 $metadata->discriminatorFieldName,
138 $metadata->name
155 $name = $metadata->serializedName;
162 …Invalid data %s (%s), expected "%s".', json_encode($data), $metadata->type['name'], $metadata->cla…
165 if (true === $metadata->inline) {
166 if (!$metadata->type) {
169 $metadata->class,
170 $metadata->name
180 if (!$metadata->type) {
[all …]
H A DContext.php196 public function pushClassMetadata(ClassMetadata $metadata): void argument
198 $this->metadataStack->push($metadata);
201 public function pushPropertyMetadata(PropertyMetadata $metadata): void argument
203 $this->metadataStack->push($metadata);
208 $metadata = $this->metadataStack->pop();
210 if (!$metadata instanceof PropertyMetadata) {
217 $metadata = $this->metadataStack->pop();
219 if (!$metadata instanceof ClassMetadata) {
239 foreach ($this->metadataStack as $metadata) {
240 if ($metadata instanceof PropertyMetadata) {
[all …]
/plugin/findologicxmlexport/vendor/jms/serializer/tests/Exclusion/
H A DDisjunctExclusionStrategyTest.php17 $metadata = new ClassMetadata('stdClass');
27 ->with($metadata, $context)
48 ->with($metadata, $context)
53 ->with($metadata, $context)
71 ->with($metadata, $context)
76 ->with($metadata, $context)
94 ->with($metadata, $context)
115 ->with($metadata, $context)
120 ->with($metadata, $context)
138 ->with($metadata, $context)
[all …]
/plugin/findologicxmlexport/vendor/jms/metadata/src/
H A DMetadataFactory.php75 $metadata = null;
123 if (null === $metadata) {
124 $metadata = new NullMetadata($className);
150 if (null === $metadata) {
151 $metadata = clone $toAdd;
153 $metadata->merge($toAdd);
156 if (null === $metadata) {
157 $metadata = new $this->hierarchyMetadataClass();
160 $metadata->addClassMetadata($toAdd);
206 private function filterNullMetadata($metadata = null) argument
[all …]
/plugin/authfacebook/lib/Authentication/
H A DAccessTokenMetadata.php43 protected $metadata = []; variable in Facebook\\Authentication\\AccessTokenMetadata
53 * @param array $metadata
57 public function __construct(array $metadata) argument
59 if (!isset($metadata['data'])) {
63 $this->metadata = $metadata['data'];
78 if (isset($this->metadata[$field])) {
79 return $this->metadata[$field];
112 if (!isset($this->metadata[$parentField])) {
120 return $this->metadata[$parentField][$field];
385 if (isset($this->metadata[$key]) && $this->metadata[$key] !== 0) {
[all …]
/plugin/findologicxmlexport/vendor/jms/serializer/src/GraphNavigator/
H A DDeserializationGraphNavigator.php169 … if (!empty($metadata->discriminatorMap) && $type['name'] === $metadata->discriminatorBaseClass) {
170 $metadata = $this->resolveMetadata($data, $metadata);
179 $this->context->pushClassMetadata($metadata);
183 $this->visitor->startVisitingObject($metadata, $object, $type);
184 foreach ($metadata->propertyMetadata as $propertyMetadata) {
206 $rs = $this->visitor->endVisitingObject($metadata, $data, $type);
207 $this->afterVisitingObject($metadata, $rs, $type);
220 if (!isset($metadata->discriminatorMap[$typeValue])) {
224 $metadata->name,
225 implode(', ', array_keys($metadata->discriminatorMap))
[all …]
/plugin/quickstats/GEOIP/vendor/maxmind-db/reader/src/MaxMind/Db/Reader/
H A DMetadata.php67 public function __construct($metadata) argument
70 $metadata['binary_format_major_version'];
72 $metadata['binary_format_minor_version'];
73 $this->buildEpoch = $metadata['build_epoch'];
74 $this->databaseType = $metadata['database_type'];
75 $this->languages = $metadata['languages'];
76 $this->description = $metadata['description'];
77 $this->ipVersion = $metadata['ip_version'];
78 $this->nodeCount = $metadata['node_count'];
79 $this->recordSize = $metadata['record_size'];
/plugin/findologicxmlexport/vendor/jms/metadata/tests/
H A DMethodMetadataTest.php15 $metadata = new MethodMetadata('Metadata\Tests\Fixtures\TestObject', 'setFoo');
19 $this->assertEquals('Metadata\Tests\Fixtures\TestObject', $metadata->class);
20 $this->assertEquals('setFoo', $metadata->name);
21 $this->assertEquals($expectedReflector, $metadata->reflection);
26 $metadata = new MethodMetadata('Metadata\Tests\Fixtures\TestObject', 'setFoo');
28 $this->assertEquals($metadata, unserialize(serialize($metadata)));
34 $metadata = new MethodMetadata('Metadata\Tests\Fixtures\TestObject', 'setFoo');
37 $metadata->invoke($obj, ['foo']);
H A DClassMetadataTest.php14 $metadata = new ClassMetadata('Metadata\Tests\Fixtures\TestObject');
16 $this->assertEquals('Metadata\Tests\Fixtures\TestObject', $metadata->name);
21 $metadata = new ClassMetadata('Metadata\Tests\Fixtures\TestObject');
23 $this->assertEquals($metadata, unserialize(serialize($metadata)));
32 $metadata = new ClassMetadata($ref->name);
33 $metadata->fileResources[] = $ref->getFilename();
34 $this->assertTrue($metadata->isFresh());
39 $this->assertFalse($metadata->isFresh());
H A DPropertyMetadataTest.php14 $metadata = new PropertyMetadata('Metadata\Tests\Fixtures\TestObject', 'foo');
15 $this->assertEquals('Metadata\Tests\Fixtures\TestObject', $metadata->class);
16 $this->assertEquals('foo', $metadata->name);
21 $metadata = new PropertyMetadata('Metadata\Tests\Fixtures\TestObject', 'foo');
23 $this->assertEquals($metadata, unserialize(serialize($metadata)));
H A DMetadataFactoryTest.php37 $metadata = $factory->getMetadataForClass('Metadata\Tests\Fixtures\TestParent');
39 $this->assertInstanceOf('Metadata\ClassHierarchyMetadata', $metadata);
40 $this->assertEquals(2, count($metadata->classMetadata));
65 $metadata = $factory->getMetadataForClass('Metadata\Tests\Fixtures\TestParent');
67 $this->assertInstanceOf('Metadata\MergeableClassMetadata', $metadata);
68 $this->assertEquals('Metadata\Tests\Fixtures\TestParent', $metadata->name);
79 $metadata = new MergeableClassMetadata($class->name);
98 return $metadata;
134 ->with($this->equalTo($metadata))
229 ->will($this->returnCallback(function ($metadata) use (&$cachedMetadata) {
[all …]
/plugin/findologicxmlexport/vendor/jms/serializer/src/Construction/
H A DDoctrineObjectConstructor.php54 $objectManager = $this->managerRegistry->getManagerForClass($metadata->name);
58 … return $this->fallbackConstructor->construct($visitor, $metadata, $data, $type, $context);
64 if ($classMetadataFactory->isTransient($metadata->name)) {
66 … return $this->fallbackConstructor->construct($visitor, $metadata, $data, $type, $context);
72 return $objectManager->getReference($metadata->name, $data);
76 $classMetadata = $objectManager->getClassMetadata($metadata->name);
80 if (isset($metadata->propertyMetadata[$name])) {
81 $dataName = $metadata->propertyMetadata[$name]->serializedName;
87 … return $this->fallbackConstructor->construct($visitor, $metadata, $data, $type, $context);
93 $object = $objectManager->find($metadata->name, $identifierList);
[all …]
/plugin/findologicxmlexport/vendor/jms/serializer/src/Metadata/Driver/
H A DYamlDriver.php53 $metadata = new ClassMetadata($name);
54 $metadata->fileResources[] = $file;
57 $metadata->fileResources[] = $fileResource;
64 $this->addClassProperties($metadata, $config);
251 … $metadata->isList = $metadata->isList || PropertyMetadata::isCollectionList($pMetadata->type);
252 … $metadata->isMap = $metadata->isMap || PropertyMetadata::isCollectionMap($pMetadata->type);
266 $metadata->addPropertyMetadata($pMetadata);
285 return $metadata;
304 $metadata->xmlRootName = (string) $config['xml_root_name'];
317 $metadata->registerNamespace($uri, $prefix);
[all …]
H A DXmlDriver.php56 $metadata = new ClassMetadata($name = $class->name);
62 $metadata->fileResources[] = $path;
65 $metadata->fileResources[] = $fileResource;
80 $metadata->xmlRootName = (string) $xmlRootName;
84 $metadata->xmlRootNamespace = (string) $xmlRootNamespace;
87 $metadata->xmlRootPrefix = (string) $xmlRootPrefix;
103 $metadata->discriminatorDisabled = true;
320 … $metadata->isList = $metadata->isList || PropertyMetadata::isCollectionList($pMetadata->type);
321 … $metadata->isMap = $metadata->isMap || PropertyMetadata::isCollectionMap($pMetadata->type);
335 $metadata->addPropertyMetadata($pMetadata);
[all …]
/plugin/quickstats/GEOIP/vendor/maxmind-db/reader/src/MaxMind/Db/
H A DReader.php29 private $metadata; variable in MaxMind\\Db\\Reader
72 $this->metadata = new Metadata($metadataArray);
159 $metadata = $this->metadata;
163 if ($metadata->ipVersion === 6) {
174 $nodeCount = $metadata->nodeCount;
195 if ($this->metadata->ipVersion === 4) {
212 switch ($this->metadata->recordSize) {
236 . $this->metadata->recordSize
244 + $this->metadata->searchTreeSize;
294 public function metadata() function in MaxMind\\Db\\Reader
[all …]
/plugin/findologicxmlexport/vendor/jms/serializer/tests/Metadata/Driver/
H A DDoctrineDriverTest.php34 $metadata = $this->getMetadata();
38 $metadata->propertyMetadata['createdAt']->type
44 $metadata = $this->getMetadata();
47 $metadata->propertyMetadata['author']->type
53 $metadata = $this->getMetadata();
62 $metadata->propertyMetadata['comments']->type
68 $metadata = $this->getMetadata();
73 $metadata->propertyMetadata['published']->type
79 $metadata = $this->getMetadata();
117 $metadata = $this->getMetadata();
[all …]
H A DDoctrinePHPCRDriverTest.php26 $metadata = $this->getMetadata();
29 $metadata->propertyMetadata['createdAt']->type
35 $metadata = $this->getMetadata();
38 $metadata->propertyMetadata['author']->type
44 $metadata = $this->getMetadata();
53 $metadata->propertyMetadata['comments']->type
59 $metadata = $this->getMetadata();
64 $metadata->propertyMetadata['published']->type
/plugin/sphinxsearch-was/
H A Dxmlall.php73 $metadata = p_get_metadata($dokuPageId); variable
74 $sections = getDocumentsByHeadings($dokuPageId, $metadata);
87 $data['modified'] = $metadata['date']['modified'];
105 $data['modified'] = $metadata['date']['modified'];
106 $data['title'] = strip_tags($metadata['title']);
107 $data['title_to_index'] = $metadata['title'];
119 $pageMapper->add($dokuPageId, $metadata['title'], $metadata['title']);

12345678910