Copyright notes at top op every source file
[fa-stable.git] / includes / prefs / userprefs.inc
index f48fef0ec4a4c8e1a77d560c0d9117082d0316b1..f8fa8915511b4e28667a73130c0d26491db57a3f 100644 (file)
@@ -1,5 +1,14 @@
 <?php
-
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU Affero General Public License,
+       AGPL, 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/agpl-3.0.html>.
+***********************************************************************/
 class user_prefs 
 {
 
@@ -22,6 +31,8 @@ class user_prefs
        var $rep_popup;
        var $pagesize; // for printing
        var $show_hints;
+       var $query_size; // table pager page length
+       var $graphic_links; // use graphic links
 
        function user_prefs(&$user) 
        {
@@ -45,6 +56,8 @@ class user_prefs
                $this->show_hints = $user["show_hints"];
                $this->print_profile = $user["print_profile"];
                $this->rep_popup = $user["rep_popup"];
+               $this->query_size = $user["query_size"];
+               $this->graphic_links = $user["graphic_links"];
        }
 
        function language() 
@@ -139,6 +152,16 @@ class user_prefs
                return $this->rep_popup;
        }
 
+       function query_size() 
+       {
+               return $this->query_size;
+       }
+
+       function graphic_links() 
+       {
+               return $this->graphic_links;
+       }
+
        function set_dec($price_dec, $qty_dec, $exrate_dec, $percent_dec, $showgl, $showcodes) 
        {
                $this->price_dec = $price_dec;