FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=15618&edit=1

ID: 15618
Updated by: cweiske@php.net
Reported By: pear at sebastianmendel dot de
Summary: [patch] support arrayAccess interface
Status: Open
Type: Feature/Change Request
Package: HTML_QuickForm2
Package Version: CVS
PHP Version: Irrelevant
Roadmap Versions:
New Comment:

I'd love to see this.


Previous Comments:
------------------------------------------------------------------------

[2009-01-12 10:41:32] cybot

very short incomplete example usage:

$form['container'] = array('fieldset');
$form['container']['element_id'] = array('text');

echo $form['element_id'];
echo $form['container']['element_id'];
unset($form['container']);

with Smarty:

{$form.element_id}
{$form.container.element_id}

------------------------------------------------------------------------

[2009-01-12 10:28:51] cybot

Description:
------------
These patch implements arrayAccess Interface into
HTML_QuickForm2_Container

------------------------------------------------------------------------

Search Discussions

  • Php at Nov 7, 2011 at 8:43 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=15618&edit=1

    ID: 15618
    Updated by: php@mamasam.net
    Reported By: pear at sebastianmendel dot de
    Summary: [patch] support arrayAccess interface
    Status: Open
    Type: Feature/Change Request
    Package: HTML_QuickForm2
    Package Version: CVS
    PHP Version: Irrelevant
    Roadmap Versions:
    New Comment:

    I like this too, but we have to check for side cases first. With
    ArrayAccess, things can
    get ugly.


    Previous Comments:
    ------------------------------------------------------------------------

    [2011-11-07 18:24:02] cweiske

    I'd love to see this.

    ------------------------------------------------------------------------

    [2009-01-12 10:41:32] cybot

    very short incomplete example usage:

    $form['container'] = array('fieldset');
    $form['container']['element_id'] = array('text');

    echo $form['element_id'];
    echo $form['container']['element_id'];
    unset($form['container']);

    with Smarty:

    {$form.element_id}
    {$form.container.element_id}

    ------------------------------------------------------------------------

    [2009-01-12 10:28:51] cybot

    Description:
    ------------
    These patch implements arrayAccess Interface into
    HTML_QuickForm2_Container

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedNov 7, '11 at 5:25p
activeNov 7, '11 at 8:43p
posts2
users2
websitepear.php.net

2 users in discussion

Cweiske: 1 post Php: 1 post

People

Translate

site design / logo © 2022 Grokbase