Kimai_Registry::getUser PHP Method

getUser() public static method

public static getUser ( ) : Kimai_User
return Kimai_User
    public static function getUser()
    {
        return self::get('Kimai_User');
    }

Usage Example

Example #1
0
         $logdatei = fopen(WEBROOT . "temporary/logfile.txt", "w");
         fwrite($logdatei, "");
         fclose($logdatei);
         echo $kga['lang']['log_delete'];
     } else {
         die;
     }
     break;
     /**
      * Write some message to the logfile.
      */
 /**
  * Write some message to the logfile.
  */
 case "shoutbox":
     Kimai_Logger::logfile("[" . Kimai_Registry::getUser()->getName() . "] " . $axValue);
     break;
     /**
      * Return the $kga variable (Kimai Global Array). Strip out some sensitive
      * information if not configured otherwise.
      */
 /**
  * Return the $kga variable (Kimai Global Array). Strip out some sensitive
  * information if not configured otherwise.
  */
 case "reloadKGA":
     $output = $kga;
     $filter = array('server_hostname' => "xxx", 'server_database' => "xxx", 'server_username' => "xxx", 'server_password' => "xxx", 'password_salt' => "xxx", 'user' => array('secure' => "xxx", 'userID' => "xxx", 'pw' => "xxx", 'password' => "xxx", 'apikey' => "xxx"));
     switch ($axValue) {
         case 'plain':
             $output = $kga;
All Usage Examples Of Kimai_Registry::getUser