Mercurial > hg > extraction-interface
comparison develop/models/extractapp.php @ 38:4b3da4802998 extractapp
config for localgazetteers-dev
| author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
|---|---|
| date | Fri, 06 Mar 2015 17:56:48 +0100 |
| parents | fc7342914cdf |
| children | 8347776a44fc |
comparison
equal
deleted
inserted
replaced
| 37:893ed33c2bd4 | 38:4b3da4802998 |
|---|---|
| 60 | 60 |
| 61 $this->section_name = $_postdata['sectionName']; | 61 $this->section_name = $_postdata['sectionName']; |
| 62 $this->book_id = $_postdata['bookId']; | 62 $this->book_id = $_postdata['bookId']; |
| 63 $this->book_name = $_postdata['bookName']; | 63 $this->book_name = $_postdata['bookName']; |
| 64 | 64 |
| 65 | |
| 66 // get from URL with file_id | 65 // get from URL with file_id |
| 67 $lg_text_url = $this->get_text_from_sectionId_url.$section_id; | 66 $lg_text_url = $this->get_text_from_sectionId_url.$section_id; |
| 67 | |
| 68 $lg_text = file_get_contents($lg_text_url); | 68 $lg_text = file_get_contents($lg_text_url); |
| 69 | 69 |
| 70 $stringInput = $lg_text; | 70 $stringInput = $lg_text; |
| 71 $stringInput = preg_replace("/<(.*?)>/u", "○", $stringInput); | 71 $stringInput = preg_replace("/<(.*?)>/u", "○", $stringInput); |
| 72 $stringInput = preg_replace("/ /u", "○", $stringInput); | 72 $stringInput = preg_replace("/ /u", "○", $stringInput); |
