コード例 #1
0
ファイル: morphhbTest.php プロジェクト: alerque/bibledit
 public function testSearchHebrew()
 {
     $database_morphhb = Database_Morphhb::getInstance();
     $data = $database_morphhb->searchHebrew("יָדְע֥וּ");
     $standard = array(array('book' => "19", 'chapter' => "95", 'verse' => "10"), array('book' => "30", 'chapter' => "3", 'verse' => "10"));
     $this->assertEquals($standard, $data);
 }
コード例 #2
0
ファイル: morphhb.php プロジェクト: alerque/bibledit
 public static function getInstance()
 {
     if (empty(self::$instance)) {
         self::$instance = new Database_Morphhb();
     }
     return self::$instance;
 }
コード例 #3
0
ファイル: import.php プロジェクト: alerque/bibledit
<?php

/*
Copyright (©) 2003-2014 Teus Benschop.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
require_once "../bootstrap/bootstrap.php";
// Security: The script runs from the cli SAPI only.
Filter_Cli::assert();
ignore_user_abort(true);
set_time_limit(0);
@unlink("../databases/morphhb.sqlite");
$database_morphhb = Database_Morphhb::getInstance();
$database_morphhb->create();