<?php
-
+/**********************************************************************
+ Copyright (C) FrontAccounting, LLC.
+ Released under the terms of the GNU General Public License, GPL,
+ as published by the Free Software Foundation, either version 3
+ of the License, or (at your option) any later version.
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
+***********************************************************************/
class menu_item
{
var $label;
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;
$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);
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);
{
$this->id = $id;
$this->name = $name;
- $this->enables = $enabled;
+ $this->enabled = $enabled;
$this->modules = array();
}
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);
}