1 : <?php
2 :
3 : /**
4 : * Dictionaries of Old French and Latin
5 : *
6 : * PHP 5
7 : *
8 : * @category Application
9 : * @package DicFro
10 : * @author Michel Corne <mcorne@yahoo.com>
11 : * @copyright 2008-2010 Michel Corne
12 : * @license http://opensource.org/licenses/gpl-3.0.html GNU General Public License, version 3 (GPLv3)
13 : * @link http://www.micmap.org/dicfro
14 : */
15 :
16 1 : require_once 'Model/Query/Gaffiot.php';
17 1 : require_once 'Model/Search/GdfLike.php';
18 :
19 : /**
20 : * Search the Gaffiot dictionary
21 : *
22 : * @category Application
23 : * @package DicFro
24 : * @author Michel Corne <mcorne@yahoo.com>
25 : * @copyright 2008-2010 Michel Corne
26 : * @license http://opensource.org/licenses/gpl-3.0.html GNU General Public License, version 3 (GPLv3)
27 : */
28 :
29 1 : class Model_Search_Gaffiot extends Model_Search_GdfLike
30 : {
31 :
32 : /**
33 : * Name of the Gaffiot dictionary
34 : * @var string
35 : */
36 : public $dictionary = 'gaffiot';
37 :
38 : /**
39 : * Requires the search in the Whitaker
40 : * @var boolean
41 : */
42 : public $needWhitaker = true;
43 :
44 : /**
45 : * Construtor
46 : *
47 : * @param string $directory the dictionaries directory
48 : * @return void
49 : */
50 : public function __construct($directory)
51 : {
52 1 : $this->directory = $directory;
53 1 : $this->query = new Model_Query_Gaffiot($directory);
54 1 : }
55 : }
|