[0000290] Can't upload files
[fa-stable.git] / applications / application.php
index 2b76e2ce9b95da9bd4e8be26b6901c9a0e8d9d6d..430b20c80a531b741632b9daaf9f00e2168ba2f3 100644 (file)
@@ -47,7 +47,7 @@
                var $link;
                var $access;
                
-               function app_function($label,$link,$access=1
+               function app_function($label,$link,$access='SA_OPEN'
                {
                        $this->label = $label;
                        $this->link = $link;
@@ -70,7 +70,7 @@
                        $this->rappfunctions = array();
                }
                
-               function add_lapp_function($label,$link="",$access=1
+               function add_lapp_function($label,$link="",$access='SA_OPEN'
                {
                        $appfunction = new app_function($label,$link,$access);
                        //array_push($this->lappfunctions,$appfunction);
@@ -78,7 +78,7 @@
                        return $appfunction;
                }
 
-               function add_rapp_function($label,$link="",$access=1
+               function add_rapp_function($label,$link="",$access='SA_OPEN'
                {
                        $appfunction = new app_function($label,$link,$access);
                        //array_push($this->rappfunctions,$appfunction);
@@ -93,6 +93,7 @@
        {
                var $id;
                var $name;
+               var $help_context;
                var $modules;
                var $enabled;
                
                        return $module;
                }
                
-               function add_lapp_function($level, $label,$link="",$access=1
+               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=1
+               }
+               
+               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 '';
+               }
        }