<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Expressions</title><link>https://sourceforge.net/p/pexeso-php/wiki/Expressions/</link><description>Recent changes to Expressions</description><atom:link href="https://sourceforge.net/p/pexeso-php/wiki/Expressions/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 20 May 2014 18:10:40 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/pexeso-php/wiki/Expressions/feed" rel="self" type="application/rss+xml"/><item><title>Expressions modified by Jan Volf</title><link>https://sourceforge.net/p/pexeso-php/wiki/Expressions/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="pxml-expressions"&gt;PXML Expressions&lt;/h1&gt;
&lt;p&gt;PXML expressions are PHP expressions used directly in the PXML. Several rules apply to such expressions: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;they must be enclosed in &lt;strong&gt;curly braces&lt;/strong&gt; and thus should not contain curly braces themselves &lt;/li&gt;
&lt;li&gt;the expression is always executed in the global scope - the PHP lambda functions are created from expressions &lt;/li&gt;
&lt;li&gt;the instance of the document (encapsulating PXML document) in whose context expression is evaluated is reachable by &lt;strong&gt;&lt;code&gt;$self&lt;/code&gt;&lt;/strong&gt; variable &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The expressions are evaluated several times in &lt;a class="" href="/p/pexeso-php/wiki/ViewLifecycle/"&gt;view's lifecycle&lt;/a&gt;: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;during initialization only static bindings? are evaluated &lt;/li&gt;
&lt;li&gt;just before restoring state &lt;a class="" href="/p/pexeso-php/wiki/BindingExpression/"&gt;binding expressions&lt;/a&gt; are evaluated first time &lt;/li&gt;
&lt;li&gt;during execute stage of the view's lifecycle the &lt;a class="" href="/p/pexeso-php/wiki/EventExpression/"&gt;event expressions&lt;/a&gt; are evaluated &lt;/li&gt;
&lt;li&gt;binding expressions can also by evaluated during the update of display list if it results in dynamic creation of the components with bindings assigned &lt;/li&gt;
&lt;li&gt;second time are binding expressions evaluated before saving state &lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jan Volf</dc:creator><pubDate>Tue, 20 May 2014 18:10:40 -0000</pubDate><guid>https://sourceforge.netf42feebc6e993d65fbbab3b7165d910cf7896e00</guid></item></channel></rss>