<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On 03 Aug 2007, at 11:54 AM, David Strauss wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">I strongly support this move.</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Khalid Baheyeldin wrote:</FONT></P> <BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Karoly (chx) seems to be in favor of going all arrays and</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">getting rid of pseudo objects.</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica"><A href="http://drupal4hu.com/node/52">http://drupal4hu.com/node/52</A></FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">He mentions others who support this too.</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px; font: 12.0px Helvetica; min-height: 14.0px"><BR></P> <P style="margin: 0.0px 0.0px 0.0px 10.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">Drupal 7 is the time to do this, not D6.</FONT></P> </BLOCKQUOTE></BLOCKQUOTE></DIV><BR><DIV>I believe in this too, as it melds more with Drupal's structured array syntax, but PHP5 might</DIV><DIV>change my opinion. </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Especially when you throw in things like the ArrayObject syntax (array / object duality), which could</DIV><DIV>even potentially supplant #-notation.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>So yeah. needs more time to gestate methinks.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>&lt;?php</DIV><DIV>class form extends ArrayObject {</DIV><DIV>  function __construct($props = null) {</DIV><DIV>    foreach ((array) $props as $key =&gt; $value) {</DIV><DIV>      $this-&gt;{$key} = $value;</DIV><DIV>    }</DIV><DIV>  }</DIV><DIV>}</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>class element extends ArrayObject {</DIV><DIV>  function __construct($props = null) {</DIV><DIV>    foreach ((array) $props as $key =&gt; $value) {</DIV><DIV>      $this-&gt;{$key} = $value;</DIV><DIV>    }</DIV><DIV>  }</DIV><DIV>}</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>$form = new form();</DIV><DIV>$form['title'] = new element(array(  // this would probably be new DrupalTextfield() or something</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>'type' =&gt; 'textfield', </DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>'title' =&gt; 'my title', </DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>'default_value' =&gt; 'default text'</DIV><DIV>));</DIV><DIV>$form['group'] = new element(array(</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>'type' =&gt; 'fieldset', </DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>'title' =&gt; 'meh')</DIV><DIV>);</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>$form['group']['moretext'] = new element(array(</DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>'type' =&gt; 'textfield', </DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre">        </SPAN>'title' =&gt; 'blah'</DIV><DIV>));</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>print $form['group']-&gt;type;</DIV><DIV>print $form['title']-&gt;default_value;</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>~                                                         </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV></BODY></HTML>