X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=applications%2Fapplication.php;h=9220d14315eadd9ef10d53db4249e52e32a3790f;hb=11e485e4a7c5f12c9424713b7330815a9cc5e4ae;hp=69029bf22dec90d4aaf79d8d8310abf2e5788cfd;hpb=bda174fa43e903aa40c5a56371e3c853645ded8c;p=fa-stable.git diff --git a/applications/application.php b/applications/application.php index 69029bf2..9220d143 100644 --- a/applications/application.php +++ b/applications/application.php @@ -1,5 +1,14 @@ . +***********************************************************************/ class menu_item { var $label; @@ -38,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; @@ -61,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); @@ -69,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); @@ -91,7 +100,7 @@ { $this->id = $id; $this->name = $name; - $this->enables = $enabled; + $this->enabled = $enabled; $this->modules = array(); } @@ -103,12 +112,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); }