mirror of
https://github.com/Rogiel/predb
synced 2025-12-06 07:32:47 +00:00
Adds the initial files
This commit adds the initial pre-database files to the repository
This commit is contained in:
27
Examples/Example_AlternativeAdapter.php
Normal file
27
Examples/Example_AlternativeAdapter.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
/*
|
||||
* This file is part of predb <gitgub.com/Rogiel/predb>.
|
||||
*
|
||||
* predb 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.
|
||||
*
|
||||
* predb 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 predb. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
// This example does a simple search for an pre release
|
||||
|
||||
require_once '../PreDatabase_Library.php';
|
||||
require_once '../Adapter/Pre_ScnSrc_Adapter.php';
|
||||
|
||||
$db = new Pre_DB(new Pre_ScnSrc_Adapter());
|
||||
print_r($db->search("Microsoft Windows"));
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user