Re: accounts tree

Chuck Hagenbuch <[email protected]> Mon, 26 Aug 2002 11:40:54 -0400
Newsgroups gmane.comp.horde.juno
Message-ID <[email protected]>
Quoting Mathieu Legare <[email protected]>:

> Is there some classes in the Horde API, I could use to build and
> display an account tree in a way similar of gnucash. See screeshot :

Check out horde/lib/CategoryTree.php.

> I would use the field 'account_parent' of the juno_accounts table
> which will point to the parent account_id of the current account...

If you pass the above class data in the appropriate format (see 
Category::export() and the admin/*.php files), it'll do it for you. Trean, 
the new bookmarks app, uses the code a lot too.

-chuck

--
Charles Hagenbuch, <[email protected]>
"After a few minutes the most aromatic and nice smelling Italian coffee 
 will come out of the exhaustpipe." - Our stove-top espresso pot

-- 
Juno mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]