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;
	}
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;
	}
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 ; }
Get all user projects

@return Array of PDProject to which the logged in user has access to
Get all user projects