comparison develop/classes/basemodel.php @ 12:e82ca7375e93

Integration with LocalGazetteerService (LGService), getting text from LGService and saving text to LGService. Adjust the control flow (controller).
author Zoe Hong <zhong@mpiwg-berlin.mpg.de>
date Mon, 16 Feb 2015 16:51:39 +0100
parents 3d6fba07bfbd
children cc36a20a68ab
comparison
equal deleted inserted replaced
11:3d6fba07bfbd 12:e82ca7375e93
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, $topic;
6 // protected $lg_server_url = "http://141.14.239.226:8080/gazetteer-server/rest/text/";
7 protected $get_text_from_fileId_url = "http://141.14.239.226:8080/gazetteer-server/rest/text/getFileText?fileId=";
8 protected $get_text_from_sectionId_url = "http://141.14.239.226:8080/gazetteer-server/rest/text/getSectionText?sectionId=";
9 protected $save_to_LGService_url = "http://141.14.239.226:8080/gazetteer-server/rest/text/save";
10 protected $save_new_to_LGService_url = "http://141.14.239.226:8080/gazetteer-server/rest/text/saveNew";
6 11
7 public function __construct() { 12 public function __construct() {
8 global $mysql_database, $mysql_server, $mysql_user, $mysql_password, $systemNAME; 13 global $mysql_database, $mysql_server, $mysql_user, $mysql_password, $systemNAME;
9 $this->systemNAME = $systemNAME; 14 $this->systemNAME = $systemNAME;
10 15