]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/ttUser.class.php
Starting to use on behalf group properties.
[timetracker.git] / WEB-INF / lib / ttUser.class.php
index ccd1f961e46cc0374797f5306067089ef22a3266..5f97ae28b4dde7270c1ae88408b9312c78d64ab5 100644 (file)
@@ -166,6 +166,16 @@ class ttUser {
     }
   }
 
+  // getDecimalMark returns decimal mark for active group.
+  function getDecimalMark() {
+    return ($this->behalfGroup ? $this->behalfGroup->decimal_mark : $this->decimal_mark);
+  }
+
+  // getTrackingMode returns tracking mode for active group.
+  function getTrackingMode() {
+    return ($this->behalfGroup ? $this->behalfGroup->tracking_mode : $this->tracking_mode);
+  }
+
   // The getActiveUser returns user id on behalf of whom the current user is operating.
   function getActiveUser() {
     return ($this->behalf_id ? $this->behalf_id : $this->id);