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/Gdflex.php';
17 1 : require_once 'Model/Search/GdfLike.php';
18 :
19 : /**
20 : * Search the Godefroy Lexicon
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_Gdflex extends Model_Search_GdfLike
30 : {
31 : /**
32 : * Name of the Godefroy dictionary
33 : * @var string
34 : */
35 : public $dictionary = 'gdflex';
36 :
37 : /**
38 : * Requires the errata files
39 : * @var boolean
40 : */
41 : public $needErrataImages = true;
42 :
43 : /**
44 : * Requires the search in the ghost words
45 : * @var boolean
46 : */
47 : public $needGhostwords = true;
48 :
49 : /**
50 : * Requires the search in the Tobler
51 : * @var boolean
52 : */
53 : public $needTobler = true;
54 :
55 : /**
56 : * Requires the search in the Tcaf
57 : * @var boolean
58 : */
59 : public $needTcaf = true;
60 :
61 : /**
62 : * Construtor
63 : *
64 : * @param string $directory the dictionaries directory
65 : * @return void
66 : */
67 : public function __construct($directory)
68 : {
69 1 : $this->directory = $directory;
70 1 : $this->query = new Model_Query_Gdflex($directory);
71 1 : }
72 : }
|