Source for file navigation.php

Documentation is available at navigation.php

  1. <?php
  2.  
  3. class de_linkm_collector_navigation {
  4.  
  5. var $_topic;
  6. var $_config;
  7. var $_l10n_midcom;
  8.  
  9. function de_linkm_collector_navigation () {
  10. $this->_topic = null;
  11. $this->_config = $GLOBALS['de_linkm_collector__default_config'];
  12. $i18n =& $GLOBALS["midcom"]->get_service("i18n");
  13. $this->_l10n_midcom = $i18n->get_l10n("midcom");
  14. }
  15.  
  16. function is_internal() {
  17. return false;
  18. }
  19.  
  20. function set_object($topic) {
  21. $this->_topic = $topic;
  22. $this->_config->store_from_object ($topic, "de.linkm.collector");
  23. return true;
  24. }
  25.  
  26. function get_node() {
  27. $toolbar[100] = Array
  28. (
  29. MIDCOM_TOOLBAR_URL => '',
  30. MIDCOM_TOOLBAR_LABEL => $this->_l10n_midcom->get('component configuration'),
  31. MIDCOM_TOOLBAR_HELPTEXT => $this->_l10n_midcom->get('component configuration helptext'),
  32. MIDCOM_TOOLBAR_ICON => 'stock-icons/16x16/stock_folder-properties.png',
  33. MIDCOM_TOOLBAR_ENABLED => true
  34. );
  35. return Array (
  36. MIDCOM_NAV_URL => "",
  37. MIDCOM_NAV_NAME => $this->_topic->extra,
  38. MIDCOM_NAV_TOOLBAR => $toolbar,
  39. MIDCOM_META_CREATOR => $this->_topic->creator,
  40. MIDCOM_META_CREATED => $this->_topic->created,
  41. MIDCOM_META_EDITOR => $this->_topic->revisor,
  42. MIDCOM_META_EDITED => $this->_topic->revised
  43. );
  44. }
  45.  
  46. function get_leaves() {
  47. return Array();
  48. }
  49.  
  50. function get_current_leaf () {
  51. return null;
  52. }
  53.  
  54.  
  55. }
  56.  
  57. ?>

Documentation generated on Mon, 21 Nov 2005 18:20:16 +0100 by phpDocumentor 1.3.0RC3