Esempio n. 1
0
 /**
  * @param string $json_argument_array
  * @return integer
  * @throws UserIDMissingException
  */
 public static function count_user_related_projects($json_argument_array)
 {
     $argument_array = json_decode($json_argument_array);
     $user_id = $argument_array[1];
     $user = new User($user_id);
     if (is_numeric($user_id)) {
         return Project_Wrapper::count_list_user_related_projects($user_id, $user->is_admin());
     } else {
         throw new UserIDMissingException();
     }
 }