Mercurial > hg > extraction-interface
comparison develop/classes/basemodel.php @ 45:3d6b8fb7335d extractapp
lock the topic tag when edit tag list
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Fri, 13 Mar 2015 14:47:23 +0100 |
parents | 807d3bb33da7 |
children | b3ca5d2b4d3f |
comparison
equal
deleted
inserted
replaced
43:807d3bb33da7 | 45:3d6b8fb7335d |
---|---|
7 protected $get_text_from_sectionId_url = "http://localgazetteers-dev/LGServer/rest/text/getSectionText?sectionId="; | 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"; | 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"; | 9 protected $save_new_to_LGService_url = "http://localgazetteers-dev/LGServer/rest/text/saveNew"; |
10 | 10 |
11 */ | 11 */ |
12 protected $get_text_from_fileId_url, $get_text_from_sectionId_url, $save_to_LGService_url, $save_new_to_LGService_url; | |
12 | 13 |
13 public function __construct() { | 14 public function __construct() { |
14 global $mysql_database, $mysql_server, $mysql_user, $mysql_password, $systemNAME, $lgserver_url; | 15 global $mysql_database, $mysql_server, $mysql_user, $mysql_password, $systemNAME, $lgserver_url; |
15 $this->systemNAME = $systemNAME; | 16 $this->systemNAME = $systemNAME; |
16 | 17 |
17 $this->get_text_from_fileId_url = $lgserver_url."rest/text/getFileText?fileId="; | 18 $this->get_text_from_fileId_url = $lgserver_url."rest/text/getFileText?fileId="; |
18 $this->get_text_from_sectionId_url = $lgserver_url."rest/text/getSectionText?sectionId="; | 19 $this->get_text_from_sectionId_url = $lgserver_url."rest/text/getSectionText?sectionId="; |
19 $this->save_to_LGService_url = $lgserver_url."rest/text/save"; | 20 $this->save_to_LGService_url = $lgserver_url."rest/text/save"; |
20 $this->save_new_to_LGService_url = $lgserver_url."rest/text/saveNew"; | 21 $this->save_new_to_LGService_url = $lgserver_url."rest/text/saveNew"; |
21 | |
22 | |
23 | 22 |
24 // $this->database = new PDO("mysql:host=localhost;dbname=test", "username", "password"); | |
25 set_time_limit(0); | 23 set_time_limit(0); |
26 ini_set('memory_limit', '-1'); | 24 ini_set('memory_limit', '-1'); |
27 | 25 |
28 $link_mysql = mysql_connect($mysql_server, $mysql_user, $mysql_password); | 26 $link_mysql = mysql_connect($mysql_server, $mysql_user, $mysql_password); |
29 mysql_query("SET NAMES utf8"); | 27 mysql_query("SET NAMES utf8"); |