Revisions for framework/Tree/Tree.php

Location: [ Horde ] / framework / Tree / Tree.php View: Logs | Branches | Statistics
Search Revisions:
Show diffs between and
Show Differences shows diffs to the previous revision. If you select a revision by clicking its row, Show Differences will show the differences to the selected row.
Show Branch:
  Revision Date Author Log Message
1.46.6.17 FRAMEWORK_3 (+2 -2 lines) 08/11/2008 08:50 AM Jan Schneider jan

MFH: 1.64

1.64 (+2 -2 lines) 08/11/2008 08:38 AM Jan Schneider jan

Nuke &

1.46.6.16 FRAMEWORK_3 (+2 -2 lines) 07/03/2008 02:50 PM Michael Rubinsky mrubinsk

MFH: 1.63

1.63 (+2 -2 lines) 07/03/2008 02:49 PM Michael Rubinsky mrubinsk

Add a default value to this parameter since it's deprecated and not used in
the function

1.46.6.15 FRAMEWORK_3 (+2 -2 lines) 01/02/2008 06:30 AM Jan Schneider jan

Happy New Year

Tags: HORDE_3_2_1, HORDE_3_2, HORDE_3_2_RC4, HORDE_3_2_RC3, HORDE_3_2_RC2

1.62 (+2 -2 lines) 01/02/2008 06:12 AM Jan Schneider jan

Happy New Year

1.46.6.14 FRAMEWORK_3 (+4 -3 lines) 12/20/2007 08:50 AM Jan Schneider jan

Merge from HEAD.

1.46.6.13 FRAMEWORK_3 (+3 -1 lines) 01/11/2007 01:19 AM Chuck Hagenbuch chuck

MFH 1.61

Tags: HORDE_3_1_8, HORDE_3_1_7, HORDE_3_1_6, HORDE_3_1_5, HORDE_3_1_4, HORDE_3_1_4_RC1

1.61 (+3 -1 lines) 01/11/2007 01:19 AM Chuck Hagenbuch chuck

Set options passed in the constructor.

Tags: BEFORE_MERGE_3_2, HORDE_3_2_RC1, HORDE_3_2_ALPHA

1.46.6.12 FRAMEWORK_3 (+2 -2 lines) 01/02/2007 08:54 AM Jan Schneider jan

Happy New Year

1.60 (+2 -2 lines) 01/02/2007 07:47 AM Jan Schneider jan

Happy New Year

1.59 (+2 -2 lines) 01/01/2007 07:40 PM Jan Schneider jan

Assign copyright to The Horde Project for those copyright holders that already agreed to it.

1.46.6.11 FRAMEWORK_3 (+2 -2 lines) 01/01/2006 04:28 PM Jan Schneider jan

Happy new year

Tags: HORDE_3_1_3, HORDE_3_1_2, HORDE_3_1_1, HORDE_3_1, HORDE_3_1_RC3, HORDE_3_1_RC2, HORDE_3_1_RC1

1.58 (+2 -2 lines) 01/01/2006 04:10 PM Jan Schneider jan

Happy new year\!

1.57 (+3 -2 lines) 11/20/2005 04:16 PM Chuck Hagenbuch chuck

- Use JSON instead of writing out JS arrays directly and worrying about escaping.
- allow tooltip titles on tree items, and reload titles when the tree is re-rendered.

1.46.6.10 FRAMEWORK_3 (+5 -3 lines) 11/07/2005 04:49 AM Jan Schneider jan

MFH: Fixes for reference warnings with PHP 5.1.

1.56 (+5 -3 lines) 11/07/2005 12:50 AM Chuck Hagenbuch chuck

Fixes for reference warnings with PHP 5.1. If someone could merge
these it'd be appreciated, I'm not up to it right now and will be
swamped come morning.

1.46.6.9 FRAMEWORK_3 (+43 -8 lines) 10/18/2005 07:01 AM Jan Schneider jan

Merged from HEAD.

1.46.6.8 FRAMEWORK_3 (+2 -2 lines) 08/24/2005 10:04 AM Matt Selsky selsky

MFH: Use double-quotes.

Tags: HORDE_3_0_12, HORDE_3_0_11, HORDE_3_0_10, HORDE_3_0_9, HORDE_3_0_8, HORDE_3_0_7, HORDE_3_0_6, HORDE_3_0_6_RC1

1.55 (+2 -2 lines) 08/24/2005 09:23 AM Matt Selsky selsky

Use double-quotes.

Tags: BEFORE_MERGE_3_1

1.46.6.7 FRAMEWORK_3 (+1 -17 lines) 07/03/2005 01:22 AM Matt Selsky selsky

MFH: Remove "@access public".

Tags: HORDE_3_0_5, HORDE_3_0_5_RC2, HORDE_3_0_5_RC1

1.54 (+1 -17 lines) 07/03/2005 01:15 AM Matt Selsky selsky

Remove "@access public".

1.46.6.6 FRAMEWORK_3 (+16 -3 lines) 07/01/2005 08:05 PM Chuck Hagenbuch chuck

[cjh] Let Horde_Tree handle all indent calculation based on parent/child
relationships (Bug #2198).

1.53 (+16 -16 lines) 07/01/2005 07:55 PM Chuck Hagenbuch chuck

Handle indents entirely inside Horde_Tree.

1.46.6.5 FRAMEWORK_3 (+14 -1 lines) 06/30/2005 03:40 PM Jan Schneider jan

MFH 1.52

1.52 (+14 -1 lines) 06/30/2005 03:27 PM Jan Schneider jan

Add getNode().

1.46.6.4 FRAMEWORK_3 (+11 -11 lines) 06/01/2005 06:38 PM Matt Selsky selsky

MFH: Clean up types in phpdoc.

1.51 (+12 -12 lines) 06/01/2005 06:26 PM Matt Selsky selsky

Clean up types in phpdoc.

1.46.6.3 FRAMEWORK_3 (+10 -4 lines) 04/26/2005 07:36 PM Matt Selsky selsky

MFH 1.50, 1.56

1.50 (+10 -4 lines) 04/26/2005 01:32 PM Matt Selsky selsky

phpdoc clean-up

1.49 (+49 -1 lines) 03/21/2005 08:32 AM Jan Schneider jan

Add sort().

1.46.6.2 FRAMEWORK_3 (+1 -2 lines) 01/19/2005 03:52 PM Chuck Hagenbuch chuck

MFH: don't use httpclient updates with HTML trees

Tags: HORDE_3_0_4, HORDE_3_0_4_RC2, HORDE_3_0_4_RC1, HORDE_3_0_3, HORDE_3_0_3_RC1

1.48 (+1 -2 lines) 01/19/2005 12:09 PM Chuck Hagenbuch chuck

- don't use httpclient updates if we're not using a javascript tree
- add a stub renderNodeDefinitions() method to Tree_html

1.47 (+1 -1 lines) 01/03/2005 08:09 AM Jan Schneider jan

Happy New Year

1.46.6.1 FRAMEWORK_3 (+3 -3 lines) 01/03/2005 07:19 AM Jan Schneider jan

Happy New Year

Tags: HORDE_3_0_2, HORDE_3_0_1

1.46 (+3 -6 lines) 11/19/2004 03:25 PM Chuck Hagenbuch chuck

Allow specifying of column widths in trees again.

Bug: #751

Tags: FRAMEWORK_3, HORDE_3_0, HORDE_3_0_RC3

1.45 (+77 -60 lines) 09/26/2004 01:00 AM Chuck Hagenbuch chuck

Instead of hardcoding the $browser dom check into
Horde_Tree::singleton(), slightly-less-firmly code it into a
renderer-level isSupported() function (better name suggestions gladly
taken) and a Horde_Tree::fallback() method that goes down the list of
renderers it knows about.

Also, assorted doc fixes.

1.44 (+3 -3 lines) 09/08/2004 11:51 PM Chuck Hagenbuch chuck

The javascript Tree implementation more accurately requires the dom
capability, not just javascript.

1.43 (+4 -3 lines) 09/07/2004 08:43 AM Jan Schneider jan

Document multiline feature.

1.42 (+17 -2 lines) 09/02/2004 08:07 AM Jan Schneider jan

Add isExpanded().

1.41 (+4 -3 lines) 08/31/2004 11:42 AM Jan Schneider jan

Allow to disable tree lines.

1.40 (+26 -2 lines) 08/30/2004 12:44 PM Jan Schneider jan

Allow to set table headers.

1.39 (+15 -2 lines) 08/30/2004 10:47 AM Jan Schneider jan

Add getTree().

1.38 (+53 -51 lines) 08/30/2004 10:34 AM Jan Schneider jan

comments

1.37 (+11 -2 lines) 08/29/2004 12:12 PM Jan Schneider jan

Allow static trees (without expanding/collapsing of subtrees).

1.36 (+11 -4 lines) 08/05/2004 04:15 PM Chuck Hagenbuch chuck

- Don't add the same node to $_root_nodes more than once.
- Make the js returned by _getJsArrayElement() not override pre-existing
arrays (just values).

1.35 (+4 -4 lines) 08/04/2004 08:28 AM Jan Schneider jan

Make this code LGPL.

1.34 (+6 -5 lines) 08/01/2004 01:11 AM Chuck Hagenbuch chuck

The Horde sidebar menu is now build with Horde_Tree. This means much
cleaner code in services/portal/menu.php, but is intended mostly to
allow future creation of Horde_Blocks that work by adding entries into
the $tree Horde_Tree variable (think IMP folder lists).

With this in mind, the default registry config has switched around a
bit so that IMP is now a top-level app (more indent space), with
filters, etc. under it.

Still to do: make the menu line up a bit better again, and add those
Horde_Blocks. Also will probably want to make non-app header entries
clickable again to expand their group.

1.33 (+11 -10 lines) 07/31/2004 11:08 PM Chuck Hagenbuch chuck

- allow multiple top-level nodes in the tree
- allow setting the target of node urls

1.32 (+3 -3 lines) 01/12/2004 03:58 PM Michael M Slusarz slusarz

Slightly shorter parameter name.

Tags: HORDE_3_0_ALPHA

1.31 (+23 -11 lines) 01/05/2004 07:58 AM mdjukic

comments, add passing of a default value for an option

1.30 (+3 -3 lines) 01/03/2004 02:12 PM mdjukic

typo

1.29 (+3 -3 lines) 01/01/2004 10:14 AM Jan Schneider jan

Happy new year everyone.

1.28 (+6 -6 lines) 12/31/2003 04:52 PM Michael M Slusarz slusarz

Typo in constant name.

1.27 (+21 -19 lines) 12/31/2003 02:19 PM Michael M Slusarz slusarz

Add HORDE_TREE_TOGGLE constant, which identifies the preamble text used for
the toggle_ form submission action when using the HTML driver.

1.26 (+11 -3 lines) 12/31/2003 01:45 PM Michael M Slusarz slusarz

phpdoc

1.25 (+12 -12 lines) 12/30/2003 06:54 PM Michael M Slusarz slusarz

Add 'iconalt' option for alt text for node icons.

1.24 (+6 -6 lines) 12/20/2003 11:18 PM Chuck Hagenbuch chuck

Fix constant definitions and variable names (John M., make sure you're
developing with error_level set to E_ALL).

1.23 (+46 -17 lines) 12/19/2003 06:02 PM Michael M Slusarz slusarz

Allow extra columns on both left and right of node.

1.22 (+33 -12 lines) 12/19/2003 01:35 PM Michael M Slusarz slusarz

Storing Tree information in the session is now optional (info is still stored
in session by default).
Lots of phpdoc and private variable naming.
Don't use statics if at all possible - use member variables or use return
from recursive function calls.

1.21 (+26 -26 lines) 12/17/2003 01:24 PM Michael M Slusarz slusarz

Use $renderer instead of $driver

1.20 (+11 -11 lines) 12/15/2003 07:47 PM Michael M Slusarz slusarz

$_nodes is now a private variable.
We should talk in terms of driver, not renderer, to be consistent with other
libraries.

1.19 (+117 -53 lines) 12/15/2003 07:32 PM Michael M Slusarz slusarz

Moved Horde_Tree to framework.

1.18 (+3 -3 lines) 11/06/2003 10:26 AM Chuck Hagenbuch chuck

lots more @package fixes

1.17 (+3 -3 lines) 10/30/2003 06:37 PM Jan Schneider jan

PHP 5 fixes.

1.16 (+3 -3 lines) 09/16/2003 07:06 PM Jan Schneider jan

Use the new Util:: class.

1.15 (+22 -23 lines) 07/29/2003 07:56 PM Chuck Hagenbuch chuck

- move addslashes() calls just into the javascript driver.
- make sure to thorougly escape all javascript code.

1.14 (+8 -8 lines) 07/29/2003 07:07 PM Chuck Hagenbuch chuck

indent

1.13 (+39 -26 lines) 07/23/2003 03:24 PM mdjukic

better options setting, more options for table, alternating colours for rows

1.12 (+48 -37 lines) 07/16/2003 03:29 AM mdjukic

- clean up comments
- add table width, border and style settings

1.11 (+3 -2 lines) 05/22/2003 02:21 PM mdjukic

comments

1.10 (+20 -12 lines) 05/03/2003 11:14 AM mdjukic

use singleton, set up properly the instance name

1.9 (+4 -4 lines) 04/28/2003 03:31 PM Jan Schneider jan

It's a VERY bad idea to silence require[_once] calls because the scripts
die without ANY further notice (in the output or the logs).
And it's unecessary because our factory() methods check the existance of
the expected classes and return a PEAR_Error if they can't be found.

1.8 (+25 -3 lines) 04/21/2003 03:56 AM mdjukic

saving of states to sessions

1.7 (+2 -81 lines) 04/21/2003 02:14 AM mdjukic

get rid of javascript specific functions here

1.6 (+24 -2 lines) 04/20/2003 10:56 PM mdjukic

start cleaning up the Tree class and separate out the renderering functions

1.5 (+12 -8 lines) 03/23/2003 09:55 AM mdjukic

simpler logic for making sure always a unique tree instance

1.4 (+3 -3 lines) 03/11/2003 01:11 AM mdjukic

slight change to session name

1.3 (+3 -3 lines) 02/24/2003 06:02 AM mdjukic

more slashes.... those annoying ' in foreign words...

1.2 (+9 -4 lines) 02/24/2003 05:50 AM mdjukic

add slashes to params being passed to the JS aray, add ability to quickly include also extra cols when adding a node

1.1 02/22/2003 09:51 PM mdjukic

The class to create dynamic trees, works with the relative js template to create a DHTML tree, but should be (see TODO) falling back to a reload-type tree if no js available.
- sets up the hierarchy array through the addNode method
- lots of customisation possible for each node, plus each row can have additional columns to the right
- renders all the html/js code needed to display the tree

TODO:
- fix up the setting up of class and actions for each node
- saving of tree state to sessions so that when coming back to the page the layout can be preserved
- deleted by accident the fall-back php code when there's no javascript, needs to be rewritten at some point