Mercurial > hg > extraction-interface
comparison classes/basemodel.php @ 77:97c1e5102a22 extractapp
New: export table for a file from LGService
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Thu, 16 Apr 2015 14:53:22 +0200 |
parents | 3ada9334ebfc |
children | 960ba96efce1 |
comparison
equal
deleted
inserted
replaced
76:c49192885290 | 77:97c1e5102a22 |
---|---|
1 <?php | 1 <?php |
2 /** | |
3 * BaseModel is for the general methods/functions. | |
4 * For example, setting related to outside services, connecting to database, get information from database, etc. | |
5 */ | |
2 | 6 |
3 abstract class BaseModel { | 7 abstract class BaseModel { |
4 | 8 |
5 /* | |
6 protected $get_text_from_fileId_url = "http://localgazetteers-dev/LGServer/rest/text/getFileText?fileId="; | |
7 protected $get_text_from_sectionId_url = "http://localgazetteers-dev/LGServer/rest/text/getSectionText?sectionId="; | |
8 protected $save_to_LGService_url = "http://localgazetteers-dev/LGServer/rest/text/save"; | |
9 protected $save_new_to_LGService_url = "http://localgazetteers-dev/LGServer/rest/text/saveNew"; | |
10 | |
11 */ | |
12 protected $get_text_from_fileId_url, $get_text_from_sectionId_url, $save_to_LGService_url, $save_new_to_LGService_url; | 9 protected $get_text_from_fileId_url, $get_text_from_sectionId_url, $save_to_LGService_url, $save_new_to_LGService_url; |
13 | 10 |
14 public function __construct() { | 11 public function __construct() { |
15 global $mysql_database, $mysql_server, $mysql_user, $mysql_password, $systemNAME, $lgserver_url; | 12 global $mysql_database, $mysql_server, $mysql_user, $mysql_password, $systemNAME, $lgserver_url; |
16 $this->systemNAME = $systemNAME; | 13 $this->systemNAME = $systemNAME; |