Mercurial > hg > extraction-interface
diff models/home.php @ 77:97c1e5102a22 extractapp
New: export table for a file from LGService
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Thu, 16 Apr 2015 14:53:22 +0200 |
parents | 840cdb52f476 |
children | f1f849d31272 |
line wrap: on
line diff
--- a/models/home.php Mon Apr 13 15:43:59 2015 +0200 +++ b/models/home.php Thu Apr 16 14:53:22 2015 +0200 @@ -1,16 +1,13 @@ <?php class HomeModel { - public function Index() { - return array("Index Value 1", "Value 2", "Value 3"); - } - public function Test() { - - - return; - } public function MergeBooksInfoToBooks() { + /** + * This function is used to update book table in database. + * It merged some fields in books_info table into books table, but it has not been used now. + */ + /* uncomment to do the merge // merge books table with books_info table $query = "SELECT books_info.volume, books_info.author, books_info.edition, books_info.books_id FROM books INNER JOIN books_info ON books.id=books_info.books_id";