X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=applications%2Fapplication.php;h=cf8c7c39b2d957d8aedf08096ca4c8866578009d;hb=777422e8d5a3ba188e7420719e33322098075313;hp=a7c47964b190ee56ed9f4dad2df83970b4b7f824;hpb=d567a10b7925c8bb97c734e213d6651a979af29d;p=fa-stable.git diff --git a/applications/application.php b/applications/application.php index a7c47964..cf8c7c39 100644 --- a/applications/application.php +++ b/applications/application.php @@ -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; @@ -100,7 +101,7 @@ { $this->id = $id; $this->name = $name; - $this->enables = $enabled; + $this->enabled = $enabled; $this->modules = array(); } @@ -112,12 +113,12 @@ 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); }