changeset 43:807d3bb33da7 extractapp

config lg server url, without port
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Thu, 12 Mar 2015 17:58:09 +0100
parents c245d54eab9f
children 3d6b8fb7335d
files develop/classes/basemodel.php
diffstat 1 files changed, 9 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/develop/classes/basemodel.php	Thu Mar 12 17:33:30 2015 +0100
+++ b/develop/classes/basemodel.php	Thu Mar 12 17:58:09 2015 +0100
@@ -1,27 +1,25 @@
 <?php
 
 abstract class BaseModel {
-	// protected $database;
-    protected $systemNAME, $lgserver_url;
-
-    protected $get_text_from_fileId_url = $this->lgserver_url."rest/text/getFileText?fileId=";
-    protected $get_text_from_sectionId_url = $this->lgserver_url."rest/text/getSectionText?sectionId=";
-    protected $save_to_LGService_url = $this->lgserver_url."rest/text/save";
-    protected $save_new_to_LGService_url = $this->lgserver_url."rest/text/saveNew";
-
-
+	
     /*
     protected $get_text_from_fileId_url = "http://localgazetteers-dev/LGServer/rest/text/getFileText?fileId=";
     protected $get_text_from_sectionId_url = "http://localgazetteers-dev/LGServer/rest/text/getSectionText?sectionId=";
     protected $save_to_LGService_url = "http://localgazetteers-dev/LGServer/rest/text/save";
     protected $save_new_to_LGService_url = "http://localgazetteers-dev/LGServer/rest/text/saveNew";
+
     */
 
-
 	public function __construct() {
         global $mysql_database, $mysql_server, $mysql_user, $mysql_password, $systemNAME, $lgserver_url;
         $this->systemNAME = $systemNAME;
-        $this->lgserver_url = $lgserver_url;
+        
+        $this->get_text_from_fileId_url = $lgserver_url."rest/text/getFileText?fileId=";
+        $this->get_text_from_sectionId_url = $lgserver_url."rest/text/getSectionText?sectionId=";
+        $this->save_to_LGService_url = $lgserver_url."rest/text/save";
+        $this->save_new_to_LGService_url = $lgserver_url."rest/text/saveNew";
+
+
         
         // $this->database = new PDO("mysql:host=localhost;dbname=test", "username", "password");
         set_time_limit(0);