Home
last modified time | relevance | path

Searched refs:visitor (Results 1 – 25 of 88) sorted by relevance

1234

/plugin/findologicxmlexport/vendor/hoa/math/Test/Unit/Visitor/
H A DArithmetic.php73 $visitor = new CUT()
81 $x = (float) $visitor->visit(
108 $visitor = new CUT(),
125 $visitor = new CUT(),
142 $visitor = new CUT(),
159 $visitor = new CUT(),
174 $visitor = new CUT(),
191 $visitor = new CUT(),
208 $visitor = new CUT(),
215 ->object($visitor->setContext($context))
[all …]
/plugin/findologicxmlexport/vendor/jms/serializer/src/Handler/
H A DConstraintViolationHandler.php39 …public function serializeListToXml(XmlSerializationVisitor $visitor, ConstraintViolationList $list… argument
41 $currentNode = $visitor->getCurrentNode();
43 $visitor->createRoot();
47 $this->serializeViolationToXml($visitor, $violation);
56 return $visitor->visitArray(iterator_to_array($list), $type);
59 …public function serializeViolationToXml(XmlSerializationVisitor $visitor, ConstraintViolation $vio… argument
61 $violationNode = $visitor->getDocument()->createElement('violation');
63 $parent = $visitor->getCurrentNode();
65 $visitor->setCurrentAndRootNode($violationNode);
71 … $violationNode->appendChild($messageNode = $visitor->getDocument()->createElement('message'));
[all …]
H A DDateHandler.php74 SerializationVisitorInterface $visitor, argument
79 if ($visitor instanceof XmlSerializationVisitor && false === $this->xmlCData) {
80 return $visitor->visitSimpleString($date->format($this->getFormat($type)), $type);
85 return $visitor->visitInteger((int) $date->format($format), $type);
88 return $visitor->visitString($date->format($this->getFormat($type)), $type);
98 return $this->serializeDateTimeInterface($visitor, $date, $type, $context);
107 SerializationVisitorInterface $visitor, argument
112 return $this->serializeDateTimeInterface($visitor, $date, $type, $context);
124 if ($visitor instanceof XmlSerializationVisitor && false === $this->xmlCData) {
125 return $visitor->visitSimpleString($iso8601DateIntervalString, $type);
[all …]
H A DFormErrorHandler.php59 …public function serializeFormToXml(XmlSerializationVisitor $visitor, Form $form, array $type): \DO… argument
61 $formNode = $visitor->getDocument()->createElement('form');
65 $formNode->appendChild($errorsNode = $visitor->getDocument()->createElement('errors'));
67 $errorNode = $visitor->getDocument()->createElement('entry');
68 $errorNode->appendChild($this->serializeFormErrorToXml($visitor, $error, []));
74 if (null !== $node = $this->serializeFormToXml($visitor, $child, [])) {
86 …public function serializeFormToJson(JsonSerializationVisitor $visitor, Form $form, array $type): \… argument
88 return $this->convertFormToArray($visitor, $form);
96 return $visitor->getDocument()->createCDATASection($this->getErrorMessage($formError));
120 …private function convertFormToArray(SerializationVisitorInterface $visitor, Form $data): \ArrayObj… argument
[all …]
H A DIteratorHandler.php63 SerializationVisitorInterface $visitor, argument
71 $result = $visitor->visitArray(iterator_to_array($iterator), $type);
81 DeserializationVisitorInterface $visitor, argument
88 return new \ArrayIterator($visitor->visitArray($data, $type));
96 DeserializationVisitorInterface $visitor, argument
101 return (static function () use (&$visitor, &$data, &$type): \Generator {
103 foreach ($visitor->visitArray($data, $type) as $key => $item) {
H A DArrayCollectionHandler.php66 …public function serializeCollection(SerializationVisitorInterface $visitor, Collection $collection… argument
78 return $visitor->visitArray([], $type, $context);
81 $result = $visitor->visitArray($collection->toArray(), $type);
90 …public function deserializeCollection(DeserializationVisitorInterface $visitor, $data, array $type… argument
95 return new ArrayCollection($visitor->visitArray($data, $type));
H A DStdClassHandler.php40 …public function serializeStdClass(SerializationVisitorInterface $visitor, \stdClass $stdClass, arr… argument
43 $visitor->startVisitingObject($classMetadata, $stdClass, ['name' => 'stdClass'], $context);
47 $visitor->visitProperty($metadata, $value);
50 … return $visitor->endVisitingObject($classMetadata, $stdClass, ['name' => 'stdClass'], $context);
/plugin/findologicxmlexport/vendor/twig/twig/src/
H A DNodeTraverser.php36 foreach ($visitors as $visitor) {
37 $this->addVisitor($visitor);
41 public function addVisitor(NodeVisitorInterface $visitor) argument
43 $this->visitors[$visitor->getPriority()][] = $visitor;
55 foreach ($visitors as $visitor) {
56 $node = $this->traverseForVisitor($visitor, $node);
63 …protected function traverseForVisitor(NodeVisitorInterface $visitor, \Twig_NodeInterface $node = n… argument
69 $node = $visitor->enterNode($node, $this->env);
72 if (false !== $m = $this->traverseForVisitor($visitor, $n)) {
81 return $visitor->leaveNode($node, $this->env);
/plugin/findologicxmlexport/vendor/jms/serializer/tests/Handler/
H A DDateHandlerTest.php49 $visitor = $this->getMockBuilder(SerializationVisitorInterface::class)->getMock();
50 $visitor->method('visitString')->with('2017-06-18');
54 $this->handler->serializeDateTime($visitor, $datetime, $type, $context);
59 $visitor = new JsonDeserializationVisitor();
64 $this->handler->deserializeDateTimeFromJson($visitor, '2017-06-18', $type)
70 $visitor = new JsonDeserializationVisitor();
84 $this->handler->deserializeDateTimeFromJson($visitor, '2017-06-18', $type)
91 $this->handler->deserializeDateTimeFromJson($visitor, '2017-06-18', $type)
97 $visitor = new JsonDeserializationVisitor();
106 $actualDateTime = $this->handler->deserializeDateTimeFromJson($visitor, $timestamp, $type);
[all …]
H A DArrayCollectionHandlerTest.php25 $visitor = $this->getMockBuilder(SerializationVisitorInterface::class)->getMock();
26 $visitor->method('visitArray')->with(['foo'])->willReturn(['foo']);
33 $handler->serializeCollection($visitor, $collection, $type, $context);
43 $visitor = $this->getMockBuilder(SerializationVisitorInterface::class)->getMock();
44 $visitor->method('visitArray')->with([])->willReturn([]);
58 $handler->serializeCollection($visitor, $collection, $type, $context);
H A DIteratorHandlerTest.php85 $visitor = $this->getMockBuilder(DeserializationVisitorInterface::class)->getMock();
86 $visitor->method('visitArray')->with(self::DATA)->willReturn(self::DATA);
87 return $visitor;
92 $visitor = $this->getMockBuilder(SerializationVisitorInterface::class)->getMock();
93 $visitor->method('visitArray')->with(self::DATA)->willReturn(self::DATA);
94 return $visitor;
/plugin/findologicxmlexport/vendor/goetas-webservices/xsd2php-runtime/src/Jms/Handler/
H A DXmlSchemaDateHandler.php70 …public function deserializeDateIntervalXml(XmlDeserializationVisitor $visitor, $data, array $type){ argument
78 …public function serializeDate(XmlSerializationVisitor $visitor, \DateTime $date, array $type, Cont… argument
83 return $visitor->visitSimpleString($v, $type, $context);
86 public function deserializeDate(XmlDeserializationVisitor $visitor, $data, array $type) argument
99 …public function serializeDateTime(XmlSerializationVisitor $visitor, \DateTime $date, array $type, … argument
104 return $visitor->visitSimpleString($v, $type, $context);
107 public function deserializeDateTime(XmlDeserializationVisitor $visitor, $data, array $type) argument
118 …public function serializeTime(XmlSerializationVisitor $visitor, \DateTime $date, array $type, Cont… argument
124 return $visitor->visitSimpleString($v, $type, $context);
127 public function deserializeTime(XmlDeserializationVisitor $visitor, $data, array $type) argument
/plugin/findologicxmlexport/vendor/jms/serializer/src/
H A DSerializer.php162 $result = $this->visit($navigator, $visitor, $context, $data, $format, $type);
163 return $visitor->getResult($result);
178 $result = $this->visit($navigator, $visitor, $context, $data, $format, $type);
180 return $visitor->getResult($result);
192 $visitor = $this->getVisitor(GraphNavigatorInterface::DIRECTION_SERIALIZATION, 'json');
196 $result = $this->visit($navigator, $visitor, $context, $data, 'json', $type);
222 return $this->visit($navigator, $visitor, $context, $data, 'json', $type, false);
234 $visitor,
239 $visitor->setNavigator($navigator);
240 $navigator->initialize($visitor, $context);
[all …]
H A DGraphNavigator.php25 protected $visitor; variable in JMS\\Serializer\\GraphNavigator
39 public function initialize(VisitorInterface $visitor, Context $context): void argument
41 $this->visitor = $visitor;
/plugin/findologicxmlexport/vendor/jms/serializer/src/GraphNavigator/
H A DDeserializationGraphNavigator.php41 protected $visitor; variable in JMS\\Serializer\\GraphNavigator\\DeserializationGraphNavigator
112 …if ($this->visitor instanceof NullAwareVisitorInterface && true === $this->visitor->isNull($data))…
118 return $this->visitor->visitNull($data, $type);
121 return $this->visitor->visitString($data, $type);
125 return $this->visitor->visitInteger($data, $type);
129 return $this->visitor->visitBoolean($data, $type);
133 return $this->visitor->visitDouble($data, $type);
136 return $this->visitor->visitArray($data, $type);
183 $this->visitor->startVisitingObject($metadata, $object, $type);
199 $v = $this->visitor->visitProperty($propertyMetadata, $data);
[all …]
H A DSerializationGraphNavigator.php43 protected $visitor; variable in JMS\\Serializer\\GraphNavigator\\SerializationGraphNavigator
98 parent::initialize($visitor, $context);
128 …if ($this->visitor instanceof NullAwareVisitorInterface && true === $this->visitor->isNull($data))…
137 return $this->visitor->visitNull($data, $type);
140 return $this->visitor->visitString((string) $data, $type);
144 return $this->visitor->visitInteger((int) $data, $type);
148 return $this->visitor->visitBoolean((bool) $data, $type);
152 return $this->visitor->visitDouble((float) $data, $type);
155 return $this->visitor->visitArray((array) $data, $type);
217 $this->visitor->startVisitingObject($metadata, $data, $type);
[all …]
/plugin/findologicxmlexport/vendor/hoa/math/Test/Unit/
H A DIssue.php59 $visitor = new CUT(),
62 ->exception(function () use ($visitor, $ast) {
63 $visitor->visit($ast);
73 $visitor = new CUT(),
76 ->exception(function () use ($visitor, $ast) {
77 $visitor->visit($ast);
87 $visitor = new CUT()
/plugin/findologicxmlexport/vendor/hoa/math/Bin/
H A DCalc.php91 $visitor = new Math\Visitor\Arithmetic();
96 echo $expression . ' = ' . $visitor->visit($ast), "\n";
105 array_keys($visitor->getConstants()->getArrayCopy()),
106 array_keys($visitor->getFunctions()->getArrayCopy())
134 $visitor->getConstants()->getArrayCopy()
147 $visitor->getFunctions()->getArrayCopy()
180 echo $visitor->visit($compiler->parse($expression)), "\n";
/plugin/findologicxmlexport/vendor/hoa/visitor/
H A DREADME.md8 …<a href="https://travis-ci.org/hoaproject/visitor"><img src="https://img.shields.io/travis/hoaproj…
9 …://coveralls.io/github/hoaproject/visitor?branch=master"><img src="https://img.shields.io/coverall…
10 …a href="https://packagist.org/packages/hoa/visitor"><img src="https://img.shields.io/packagist/dt/…
11 …oa-project.net/LICENSE"><img src="https://img.shields.io/packagist/l/hoa/visitor.svg" alt="License…
24 …(https://img.shields.io/badge/organisation-board-ff0066.svg)](https://waffle.io/hoaproject/visitor)
26 This library provides interfaces to apply the visitor pattern.
34 require [`hoa/visitor`](https://packagist.org/packages/hoa/visitor):
37 $ composer require hoa/visitor '~2.0'
63 element to visit and a visitor, for example a node of a tree and a dumper. The
65 visitor will implement the `Hoa\Visitor\Visit` interface. The first one will ask
[all …]
/plugin/findologicxmlexport/vendor/goetas-webservices/xsd2php-runtime/tests/
H A DXmlSchemaDateHandlerSerializationTest.php31 protected $visitor; variable in GoetasWebservices\\Xsd\\XsdToPhpRuntime\\Tests\\Jms\\Handler\\XmlSchemaDateHandlerSerializationTest
48 $this->visitor->setNavigator($navigator);
54 $this->visitor = new XmlSerializationVisitor();
61 $this->visitor = new XmlSerializationVisitor($naming);
72 $ret = $this->handler->serializeDateTime($this->visitor, $date, [], $this->context);
73 $actual = $ret ? $ret->nodeValue : $this->visitor->getCurrentNode()->nodeValue;
97 $ret = $this->handler->serializeDate($this->visitor, $date, [], $this->context);
99 $actual = $ret ? $ret->nodeValue : $this->visitor->getCurrentNode()->nodeValue;
H A DXmlSchemaDateHandlerDeserializationTest.php32 protected $visitor; variable in GoetasWebservices\\Xsd\\XsdToPhpRuntime\\Tests\\Jms\\Handler\\XmlSchemaDateHandlerDeserializationTest
50 $this->visitor->setNavigator($navigator);
56 $this->visitor = new XmlDeserializationVisitor();
63 $this->visitor = new XmlDeserializationVisitor($naming);
76 … $deserialized = $this->handler->deserializeDate($this->visitor, $element, [], $this->context);
96 $this->handler->deserializeDate($this->visitor, $element, [], $this->context);
/plugin/combo/ComboStrap/PageSqlParser/
H A DPageSqlParser.php1068 return $visitor->visitChildren($this);
1114 return $visitor->visitChildren($this);
1160 return $visitor->visitChildren($this);
1223 return $visitor->visitChildren($this);
1269 return $visitor->visitChildren($this);
1364 return $visitor->visitChildren($this);
1514 return $visitor->visitChildren($this);
1574 return $visitor->visitChildren($this);
1651 return $visitor->visitChildren($this);
1697 return $visitor->visitChildren($this);
[all …]
/plugin/findologicxmlexport/vendor/hoa/compiler/Bin/
H A DPp.php77 $visitor = null;
86 $visitor = 'Hoa\Compiler\Visitor\Dump';
97 $visitor = str_replace('.', '\\', $v);
156 if (null !== $visitor) {
157 $visitor = Consistency\Autoloader::dnew($visitor);
158 echo $visitor->visit($ast);
/plugin/findologicxmlexport/vendor/jms/serializer/src/Construction/
H A DDoctrineObjectConstructor.php51 …public function construct(DeserializationVisitorInterface $visitor, ClassMetadata $metadata, $data… argument
58 … return $this->fallbackConstructor->construct($visitor, $metadata, $data, $type, $context);
66 … return $this->fallbackConstructor->construct($visitor, $metadata, $data, $type, $context);
87 … return $this->fallbackConstructor->construct($visitor, $metadata, $data, $type, $context);
102 … return $this->fallbackConstructor->construct($visitor, $metadata, $data, $type, $context);
/plugin/findologicxmlexport/vendor/jms/serializer/tests/Serializer/Doctrine/
H A DObjectConstructorTest.php47 private $visitor; variable in JMS\\Serializer\\Tests\\Serializer\\Doctrine\\ObjectConstructorTest
67 …$authorFetched = $constructor->construct($this->visitor, $class, ['id' => 5], $type, $this->contex…
86 …$authorFetched = $constructor->construct($this->visitor, $class, ['id' => 5], $type, $this->contex…
99 … $author = $constructor->construct($this->visitor, $class, ['id' => 5], $type, $this->context);
114 …$authorFetched = $constructor->construct($this->visitor, $class, ['id' => 5], $type, $this->contex…
129 …$authorFetched = $constructor->construct($this->visitor, $class, ['id' => 5], $type, $this->contex…
147 $authorFetched = $constructor->construct($this->visitor, $class, 5, $type, $this->context);
162 $constructor->construct($this->visitor, $class, ['id' => 5], $type, $this->context);
176 $constructor->construct($this->visitor, $class, ['id' => 5], $type, $this->context);
190 …$authorFetched = $constructor->construct($this->visitor, $class, ['foo' => 5], $type, $this->conte…
[all …]

1234