Mercurial > hg > extraction-interface
comparison develop/classes/basemodel.php @ 42:c245d54eab9f extractapp
config lg server url, without port
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Thu, 12 Mar 2015 17:33:30 +0100 |
parents | 4b3da4802998 |
children | 807d3bb33da7 |
comparison
equal
deleted
inserted
replaced
41:533a6c39c128 | 42:c245d54eab9f |
---|---|
1 <?php | 1 <?php |
2 | 2 |
3 abstract class BaseModel { | 3 abstract class BaseModel { |
4 // protected $database; | 4 // protected $database; |
5 protected $systemNAME, $topic; | 5 protected $systemNAME, $lgserver_url; |
6 | 6 |
7 protected $get_text_from_fileId_url = "http://localgazetteers-dev:8080/LGServer/rest/text/getFileText?fileId="; | 7 protected $get_text_from_fileId_url = $this->lgserver_url."rest/text/getFileText?fileId="; |
8 protected $get_text_from_sectionId_url = "http://localgazetteers-dev:8080/LGServer/rest/text/getSectionText?sectionId="; | 8 protected $get_text_from_sectionId_url = $this->lgserver_url."rest/text/getSectionText?sectionId="; |
9 protected $save_to_LGService_url = "http://localgazetteers-dev:8080/LGServer/rest/text/save"; | 9 protected $save_to_LGService_url = $this->lgserver_url."rest/text/save"; |
10 protected $save_new_to_LGService_url = "http://localgazetteers-dev:8080/LGServer/rest/text/saveNew"; | 10 protected $save_new_to_LGService_url = $this->lgserver_url."rest/text/saveNew"; |
11 | |
11 | 12 |
12 /* | 13 /* |
13 // protected $lg_server_url = "http://141.14.239.226:8080/gazetteer-server/rest/text/"; | 14 protected $get_text_from_fileId_url = "http://localgazetteers-dev/LGServer/rest/text/getFileText?fileId="; |
14 protected $get_text_from_fileId_url = "http://141.14.239.226:8080/gazetteer-server/rest/text/getFileText?fileId="; | 15 protected $get_text_from_sectionId_url = "http://localgazetteers-dev/LGServer/rest/text/getSectionText?sectionId="; |
15 protected $get_text_from_sectionId_url = "http://141.14.239.226:8080/gazetteer-server/rest/text/getSectionText?sectionId="; | 16 protected $save_to_LGService_url = "http://localgazetteers-dev/LGServer/rest/text/save"; |
16 protected $save_to_LGService_url = "http://141.14.239.226:8080/gazetteer-server/rest/text/save"; | 17 protected $save_new_to_LGService_url = "http://localgazetteers-dev/LGServer/rest/text/saveNew"; |
17 protected $save_new_to_LGService_url = "http://141.14.239.226:8080/gazetteer-server/rest/text/saveNew"; | |
18 */ | 18 */ |
19 | 19 |
20 | 20 |
21 public function __construct() { | 21 public function __construct() { |
22 global $mysql_database, $mysql_server, $mysql_user, $mysql_password, $systemNAME; | 22 global $mysql_database, $mysql_server, $mysql_user, $mysql_password, $systemNAME, $lgserver_url; |
23 $this->systemNAME = $systemNAME; | 23 $this->systemNAME = $systemNAME; |
24 $this->lgserver_url = $lgserver_url; | |
24 | 25 |
25 // $this->database = new PDO("mysql:host=localhost;dbname=test", "username", "password"); | 26 // $this->database = new PDO("mysql:host=localhost;dbname=test", "username", "password"); |
26 set_time_limit(0); | 27 set_time_limit(0); |
27 ini_set('memory_limit', '-1'); | 28 ini_set('memory_limit', '-1'); |
28 | 29 |