]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/ttUser.class.php
Wrote ttUser::getConfigInt and started to use it.
[timetracker.git] / WEB-INF / lib / ttUser.class.php
index 2d7f1c9852f68bd18ba62dd4aaa2c91bcf0f6fad..a95fa72efb0a5e8d0db5f0fe3a0ee55d865c0d7d 100644 (file)
@@ -235,6 +235,12 @@ class ttUser {
     return $config->getDefinedValue($name);
   }
 
+  // getConfigInt retruns an integer value defined in a group, or false.
+  function getConfigInt($name) {
+    $config = new ttConfigHelper($this->getConfig());
+    return $config->getIntValue($name);
+  }
+
   // can - determines whether user has a right to do something.
   function can($do_something) {
     return in_array($do_something, $this->rights);