X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=applications%2Fapplication.php;h=430b20c80a531b741632b9daaf9f00e2168ba2f3;hb=5089910120614dfb8b76a0271b43739f90f38b01;hp=cf8c7c39b2d957d8aedf08096ca4c8866578009d;hpb=d2cc0860eccf02eaefcd90731ac3af141a841529;p=fa-stable.git diff --git a/applications/application.php b/applications/application.php index cf8c7c39..430b20c8 100644 --- a/applications/application.php +++ b/applications/application.php @@ -116,12 +116,32 @@ function add_lapp_function($level, $label,$link="",$access='SA_OPEN') { $this->modules[$level]->lappfunctions[] = new app_function($label, $link, $access); - } - + } + function add_rapp_function($level, $label,$link="",$access='SA_OPEN') { $this->modules[$level]->rappfunctions[] = new app_function($label, $link, $access); - } + } + + function add_extensions() + { + hook_invoke_all('install_options', $this); + } + // + // Helper returning link to report class added by extension module. + // + function report_class_url($class) + { + global $installed_extensions; + + // TODO : konwencja lub ? + $classno = 7; +// if (file_exists($path_to_root.'/'.$mod['path'].'/'.$entry['url'] +// .'/'.'reporting/reports_custom.php')) + return "reporting/reports_main.php?Class=".$class; +// else +// return ''; + } }