public function testSearchGreek() { $database_sblgnt = Database_Sblgnt::getInstance(); $data = $database_sblgnt->searchGreek("βαπτισμῶν"); $standard = array(array('book' => "58", 'chapter' => "6", 'verse' => "2")); $this->assertEquals($standard, $data); }
public static function getInstance() { if (empty(self::$instance)) { self::$instance = new Database_Sblgnt(); } return self::$instance; }
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"; page_access_level(Filter_Roles::CONSULTANT_LEVEL); $database_config_user = Database_Config_User::getInstance(); $database_config_bible = Database_Config_Bible::getInstance(); $database_search = Database_Search::getInstance(); $database_books = Database_Books::getInstance(); $database_morphhb = Database_Morphhb::getInstance(); $database_sblgnt = Database_Sblgnt::getInstance(); $ipc_focus = Ipc_Focus::getInstance(); @($bible = $_GET['b']); if (!isset($bible)) { $bible = $database_config_user->getBible(); } @($load = $_GET['load']); if (isset($load)) { $book = $ipc_focus->getBook(); $chapter = $ipc_focus->getChapter(); $verse = $ipc_focus->getVerse(); $type = $database_books->getType($book); // Get Hebrew or Greek words. $searchtext = ""; if ($type == "ot") { $details = $database_morphhb->getVerse($book, $chapter, $verse);