# HG changeset patch # User Zoe Hong # Date 1426179489 -3600 # Node ID 807d3bb33da7c7caf8edc306467324c8bd85626f # Parent c245d54eab9f98cf4ba397765c28b67f447396d5 config lg server url, without port diff -r c245d54eab9f -r 807d3bb33da7 develop/classes/basemodel.php --- 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 @@ 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);