List Info

Thread: Addition to ProjectInfoValues class




Addition to ProjectInfoValues class
country flaguser name
United States
2007-09-17 13:38:42
I discovered that if you need to iterate over the fields in
the 
ProjectInfoValues class without knowing ahead of time what
they are, 
it's pretty hard.  I added a function that will allow you to
do that:

    function fields() {
        $fields = array();
        foreach($this->rows as $row) {
            $fields[] = $row['SubKey'];
        }
        return $fields;
    }

Pretty simple, but quite helpful.  Shall we add this to the
phoenix cvs?

Karl
_______________________________________________
phoenix-dev mailing list
phoenix-deveclipse.org

https://dev.eclipse.org/mailman/listinfo/phoenix-dev

RE: Addition to ProjectInfoValues class
country flaguser name
Canada
2007-09-17 15:25:00
Sounds good to me, go ahead and commit this to Phoenix CVS

+1

Nathan Gervais - nathaneclipse.org
Web Developer 
The Eclipse Foundation
 
 

-----Original Message-----
From: phoenix-dev-bounceseclipse.org
[mailto:phoenix-dev-bounceseclipse.org] On Behalf Of
Karl Matthias
Sent: Monday, September 17, 2007 2:39 PM
To: For developers on the new Eclipse.org website project.
Subject: [phoenix-dev] Addition to ProjectInfoValues class

I discovered that if you need to iterate over the fields in
the 
ProjectInfoValues class without knowing ahead of time what
they are, 
it's pretty hard.  I added a function that will allow you to
do that:

    function fields() {
        $fields = array();
        foreach($this->rows as $row) {
            $fields[] = $row['SubKey'];
        }
        return $fields;
    }

Pretty simple, but quite helpful.  Shall we add this to the
phoenix cvs?

Karl
_______________________________________________
phoenix-dev mailing list
phoenix-deveclipse.org

https://dev.eclipse.org/mailman/listinfo/phoenix-dev

_______________________________________________
phoenix-dev mailing list
phoenix-deveclipse.org

https://dev.eclipse.org/mailman/listinfo/phoenix-dev

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )