original_string: function getProjects() {
  		$getUserProjectsRequest = new getUserProjects ();
  		$getUserProjectsRequest->isSubProjectIncluded = TRUE;
  		$projects = $this->projectService->getUserProjects ( $getUserProjectsRequest )->return;
  
  		$i = 0;
  		$proj_arr = array ();
  		if (is_array ( $projects )) {
  			foreach ( $projects as $project ) {
  				$pdproject = new PDProject ( $project );
  				$proj_arr [$i ++] = $pdproject;
  			}
  		} else {
  			$fullProject = $this->getProject ( $projects->projectInfo->shortCode );
  			$proj_arr [0] = $fullProject;
  		}
  		
  		return $proj_arr;
  	}
code: function getProjects() {
  		$getUserProjectsRequest = new getUserProjects ();
  		$getUserProjectsRequest->isSubProjectIncluded = TRUE;
  		$projects = $this->projectService->getUserProjects ( $getUserProjectsRequest )->return;
  
  		$i = 0;
  		$proj_arr = array ();
  		if (is_array ( $projects )) {
  			foreach ( $projects as $project ) {
  				$pdproject = new PDProject ( $project );
  				$proj_arr [$i ++] = $pdproject;
  			}
  		} else {
  			$fullProject = $this->getProject ( $projects->projectInfo->shortCode );
  			$proj_arr [0] = $fullProject;
  		}
  		
  		return $proj_arr;
  	}
code_tokens: function getProjects ( ) { $ getUserProjectsRequest = new getUserProjects ( ) ; $ getUserProjectsRequest -> isSubProjectIncluded = TRUE ; $ projects = $ this -> projectService -> getUserProjects ( $ getUserProjectsRequest ) -> return ; $ i = 0 ; $ proj_arr = array ( ) ; if ( is_array ( $ projects ) ) { foreach ( $ projects as $ project ) { $ pdproject = new PDProject ( $ project ) ; $ proj_arr [ $ i ++ ] = $ pdproject ; } } else { $ fullProject = $ this -> getProject ( $ projects -> projectInfo -> shortCode ) ; $ proj_arr [ 0 ] = $ fullProject ; } return $ proj_arr ; }
docstring: Get all user projects
  
  @return Array of PDProject to which the logged in user has access to
docstring_tokens: Get all user projects