function isSubmitterValid($shortCode, $newSubmitter){
		$getSubmittersRequest = new getSubmitters ();
		$getSubmittersRequest->projectShortCode = $shortCode;
		$submitters = $this->userProfileService->getSubmitters ( $getSubmittersRequest )->return;
		if(isset($submitters)){
			foreach ($submitters as &$submitter){
				if(isset($submitter)){
					$info = $submitter;
					if(isset($submitter->userInfo)){
						$info = $submitter->userInfo;
					}
					if($info->userName == $newSubmitter && ($info->enabled=='1' || $info->enabled==1 || $info->enabled=='true' || $info->enabled==true)){
						return true;
					}
				}
			}
		}
		return false;
	}
function isSubmitterValid($shortCode, $newSubmitter){
		$getSubmittersRequest = new getSubmitters ();
		$getSubmittersRequest->projectShortCode = $shortCode;
		$submitters = $this->userProfileService->getSubmitters ( $getSubmittersRequest )->return;
		if(isset($submitters)){
			foreach ($submitters as &$submitter){
				if(isset($submitter)){
					$info = $submitter;
					if(isset($submitter->userInfo)){
						$info = $submitter->userInfo;
					}
					if($info->userName == $newSubmitter && ($info->enabled=='1' || $info->enabled==1 || $info->enabled=='true' || $info->enabled==true)){
						return true;
					}
				}
			}
		}
		return false;
	}
function isSubmitterValid ( $ shortCode , $ newSubmitter ) { $ getSubmittersRequest = new getSubmitters ( ) ; $ getSubmittersRequest -> projectShortCode = $ shortCode ; $ submitters = $ this -> userProfileService -> getSubmitters ( $ getSubmittersRequest ) -> return ; if ( isset ( $ submitters ) ) { foreach ( $ submitters as & $ submitter ) { if ( isset ( $ submitter ) ) { $ info = $ submitter ; if ( isset ( $ submitter -> userInfo ) ) { $ info = $ submitter -> userInfo ; } if ( $ info -> userName == $ newSubmitter && ( $ info -> enabled == '1' || $ info -> enabled == 1 || $ info -> enabled == 'true' || $ info -> enabled == true ) ) { return true ; } } } } return false ; }
Validate Submission submitter

@param
$shortCode
Project shortcode
@param
$submitter
Username to validate
Validate Submission submitter