Rename InstantiateProject to LoadProject
Rename InstantiateProject to LoadProject

--- a/include/git/projectlist/ProjectListArray.class.php
+++ b/include/git/projectlist/ProjectListArray.class.php
@@ -37,7 +37,7 @@
 			try {
 				if (is_string($projData)) {
 					// Just flat array of project paths
-					$projObj = $this->InstantiateProject($projData);
+					$projObj = $this->LoadProject($projData);
 					if ($projObj) {
 						$this->projects[$projData] = $projObj;
 						unset($projObj);
@@ -45,14 +45,14 @@
 				} else if (is_array($projData)) {
 					if (is_string($proj) && !empty($proj)) {
 						// Project key pointing to data array
-						$projObj = $this->InstantiateProject($proj);
+						$projObj = $this->LoadProject($proj);
 						if ($projObj) {
 							$this->projects[$proj] = $projObj;
 							unset($projObj);
 						}
 					} else if (isset($projData['project'])) {
 						// List of data arrays with projects inside
-						$projObj = $this->InstantiateProject($projData['project']);
+						$projObj = $this->LoadProject($projData['project']);
 						if ($projObj) {
 							$this->projects[$projData['project']] = $projObj;
 							unset($projObj);
@@ -66,12 +66,12 @@
 	}
 
 	/**
-	 * Instantiates project object
+	 * Loads a project
 	 *
 	 * @param string $proj project
 	 * @return GitPHP_Project project
 	 */
-	protected function InstantiateProject($proj)
+	protected function LoadProject($proj)
 	{
 		$found = false;
 		$projectSettings = null;

--- a/include/git/projectlist/ProjectListArrayLegacy.class.php
+++ b/include/git/projectlist/ProjectListArrayLegacy.class.php
@@ -43,7 +43,7 @@
 			if (is_array($plist)) {
 				foreach ($plist as $pname => $ppath) {
 					try {
-						$projObj = $this->InstantiateProject($ppath);
+						$projObj = $this->LoadProject($ppath);
 						if ($projObj) {
 							$this->projects[$ppath] = $projObj;
 							unset($projObj);
@@ -57,12 +57,12 @@
 	}
 
 	/**
-	 * Instantiates project object
+	 * Loads a project
 	 *
 	 * @param string $proj project
 	 * @return GitPHP_Project project
 	 */
-	protected function InstantiateProject($proj)
+	protected function LoadProject($proj)
 	{
 		$found = false;
 		$projectCat = GitPHP_ProjectListArrayLegacy::NoCategory;

--- a/include/git/projectlist/ProjectListBase.class.php
+++ b/include/git/projectlist/ProjectListBase.class.php
@@ -192,7 +192,7 @@
 			return $this->projects[$project];
 
 		if (!$this->projectsLoaded) {
-			$projObj = $this->InstantiateProject($project);
+			$projObj = $this->LoadProject($project);
 			$this->projects[$project] = $projObj;
 			return $projObj;
 		}
@@ -201,12 +201,12 @@
 	}
 
 	/**
-	 * Instantiates a project object
+	 * Loads a project
 	 *
 	 * @param string $proj project
 	 * @return return GitPHP_Project project object
 	 */
-	protected function InstantiateProject($proj)
+	protected function LoadProject($proj)
 	{
 		$project = new GitPHP_Project(GitPHP_Util::AddSlash($this->projectRoot), $proj);
 

--- a/include/git/projectlist/ProjectListDirectory.class.php
+++ b/include/git/projectlist/ProjectListDirectory.class.php
@@ -70,7 +70,7 @@
 						$this->Log(sprintf('Found project %1$s', $fullPath));
 						$projectPath = substr($fullPath, $trimlen);
 						if (!isset($this->projects[$projectPath])) {
-							$project = $this->InstantiateProject($projectPath);
+							$project = $this->LoadProject($projectPath);
 							if ($project) {
 								$this->projects[$projectPath] = $project;
 								unset($project);
@@ -88,12 +88,12 @@
 	}
 
 	/**
-	 * Instantiates project object
+	 * Loads a project
 	 *
 	 * @param string $proj project
 	 * @return GitPHP_Project project
 	 */
-	protected function InstantiateProject($proj)
+	protected function LoadProject($proj)
 	{
 		try {
 

--- a/include/git/projectlist/ProjectListFile.class.php
+++ b/include/git/projectlist/ProjectListFile.class.php
@@ -52,7 +52,7 @@
 
 		foreach ($this->fileContents as $lineData) {
 			if (isset($lineData['project'])) {
-				$projObj = $this->InstantiateProject($lineData['project']);
+				$projObj = $this->LoadProject($lineData['project']);
 				if ($projObj) {
 					$this->projects[$lineData['project']] = $projObj;
 					unset($projObj);
@@ -62,12 +62,12 @@
 	}
 
 	/**
-	 * Instantiates the project object
+	 * Loads a project
 	 *
 	 * @param string $proj project
 	 * @return GitPHP_Project project object
 	 */
-	protected function InstantiateProject($proj)
+	protected function LoadProject($proj)
 	{
 		if (!$this->fileRead)
 			$this->ReadFile();

--- a/include/git/projectlist/ProjectListScmManager.class.php
+++ b/include/git/projectlist/ProjectListScmManager.class.php
@@ -50,7 +50,7 @@
 			$this->ReadFile();
 
 		foreach ($this->fileContents as $projData) {
-			$projObj = $this->InstantiateProject($projData['name']);
+			$projObj = $this->LoadProject($projData['name']);
 			if ($projObj) {
 				$this->projects[$projData['name']] = $projObj;
 				unset($projObj);
@@ -59,12 +59,12 @@
 	}
 
 	/**
-	 * Instantiates the project object
+	 * Loads a project
 	 *
 	 * @param string $proj project
 	 * @return GitPHP_Project project object
 	 */
-	protected function InstantiateProject($proj)
+	protected function LoadProject($proj)
 	{
 		if (!$this->fileRead)
 			$this->ReadFile();

comments