Mercurial > hg > extraction-interface
comparison classes/basemodel.php @ 81:f1f849d31272 extractapp
book_id as string
| author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
|---|---|
| date | Thu, 23 Apr 2015 14:58:27 +0200 |
| parents | 960ba96efce1 |
| children | c1bb174a22f3 |
comparison
equal
deleted
inserted
replaced
| 80:c15f53afd7a5 | 81:f1f849d31272 |
|---|---|
| 1 <?php | 1 <?php |
| 2 /* basemodel.php | |
| 3 * This file is part of Extraction-interface. | |
| 4 * | |
| 5 * Extraction-interface is free software: you can redistribute it and/or modify | |
| 6 * it under the terms of the GNU General Public License as published by | |
| 7 * the Free Software Foundation, either version 3 of the License, or | |
| 8 * (at your option) any later version. | |
| 9 * | |
| 10 * Extraction-interface is distributed in the hope that it will be useful, | |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 13 * GNU General Public License for more details. | |
| 14 * | |
| 15 * You should have received a copy of the GNU General Public License | |
| 16 * along with Extraction-interface. If not, see <http://www.gnu.org/licenses/>. | |
| 17 */ | |
| 18 | |
| 2 /** | 19 /** |
| 3 * BaseModel is for the general methods/functions. | 20 * A model is notified by its associate controllers when there has been a change in its state, |
| 4 * For example, setting related to outside services, connecting to database, get information from database, etc. | 21 * and produces the output/data to corresponding views. |
| 22 * | |
| 23 * (http://en.wikipedia.org/wiki/Model–view–controller) | |
| 24 * | |
| 25 * There are general methods/functions. | |
| 26 * For example, setting related to outside services, connecting to database, get information from database, etc. | |
| 27 * For other methods that are more related to each application, are defined in the files under "models/" folder. | |
| 28 * | |
| 5 */ | 29 */ |
| 6 | 30 |
| 7 abstract class BaseModel { | 31 abstract class BaseModel { |
| 8 | 32 |
| 9 protected $get_text_from_fileId_url, $get_text_from_sectionId_url, $save_to_LGService_url, $save_new_to_LGService_url; | 33 protected $get_text_from_fileId_url, $get_text_from_sectionId_url, $save_to_LGService_url, $save_new_to_LGService_url; |
