-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
Description
пытаюсь использовать библиотеку для отправки документа содержащего вложенные структуры, например таких как корзина с продуктами в интернет магазине, см. пример:
<entry xml:base="..."
xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">
<id>.../shopping_cartSet('')</id>
<title type="text">...</title>
<category term="..." scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/>
<link href="shopping_cartSet('')" rel="edit" title="shopping_cart"/>
<link href="shopping_cartSet('')/getarticles"
rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/getarticles"
type="application/atom+xml;type=feed" title="getarticles">
<m:inline>
<feed xml:base=".../">
<id>.../shopping_cartSet('')/getarticles</id>
<title type="text">articlesSet</title>
<link href="shopping_cartSet('')/getarticles" rel="self" title="articlesSet"/>
<entry>
...
</entry>
<entry>
...
</entry>
</feed>
</m:inline>
</link>
<content type="application/xml">
<m:properties>
...
</m:properties>
</content>
</entry>
см. также https://tools.ietf.org/id/draft-snell-atompub-inline-01.html
и пока не очень понятно можно ли это сделать используя уже существующую функциональность или требуется добавить что-то.
Поэтому пара вопросов:
-
Какой предполагается сценарий использования метода
\Mekras\OData\Client\Element\Entry::addRelation() -
Можно ли заменить класс
\Mekras\Atom\Element\Linkна расширенный (поддерживающий вложения) не меняя кода библиотеки?
Спасибо.
Reactions are currently unavailable