Mercurial > pub > Impl
diff _test/Resources/sample.xml @ 225:a1e868b0fba9
Bindings concept in progress
author | sergey |
---|---|
date | Fri, 31 Aug 2012 16:41:18 +0400 |
parents | e6c050db7d98 |
children | b6cde007a175 |
line wrap: on
line diff
--- a/_test/Resources/sample.xml Wed Aug 29 17:28:13 2012 +0400 +++ b/_test/Resources/sample.xml Fri Aug 31 16:41:18 2012 +0400 @@ -3,14 +3,14 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://implab.org/schemas/resources resources.xsd "> <root> - <get expr="model" /> + <get expr="$model" /> <resource> <name>projects</name> - <model expr="model" /> - <get expr="model.projects" /> + <model expr="$model" /> + <get expr="$model->projects" /> - <post expr="model.CreateProject(project)"> + <post expr="$model->CreateProject($project)"> <var name="project"> <transform class="IMPL::Web::Transform::BindModel" /> </var> @@ -23,29 +23,31 @@ <resource> <match>(\w+)</match> - <model expr="model.GetProject(resourceId)" /> + <model expr="$model->GetProject($resourceId)" /> - <get expr="model" /> - <put expr="model.update(data)"> + <get expr="$model" /> + <put expr="$model->update(data)"> + <var name="data"> + <transform class="IMPL::Web::Transform::BindModel" /> + </var> </put> <resource> <name>library</name> - <model expr="model" /> - <get expr="model" /> + <model expr="$model" /> + <get expr="$model" /> </resource> <resource> <name>sources</name> - <model expr="model" /> - <get expr="model" /> + <model expr="$model" /> + <get expr="$model" /> </resource> </resource> </resource> </root> <contracts> - <contract id="project-contract"> - <modelType>Benzin::Model::Project</modelType> - <get expr="model"/> + <contract id="project-contract" modelType="IMPL::Web::Model::Project"> + <get expr="$model"/> </contract> </contracts> </resources> \ No newline at end of file