1 : <?php
2 :
3 : /**
4 : * Dictionaries of Old French and Latin
5 : *
6 : * PHP 5
7 : *
8 : * @category DicFro
9 : * @package Model
10 : * @subpackage Search
11 : * @author Michel Corne <mcorne@yahoo.com>
12 : * @copyright 2008-2010 Michel Corne
13 : * @license http://opensource.org/licenses/gpl-3.0.html GNU General Public License, version 3 (GPLv3)
14 : * @link http://www.micmap.org/dicfro
15 : */
16 :
17 1 : require_once 'Model/Query/Gdflex.php';
18 0 : require_once 'Model/Search/GdfLike.php';
19 :
20 : /**
21 : * Search the Godefroy Lexicon
22 : *
23 : * @category DicFro
24 : * @package Model
25 : * @subpackage Search
26 : * @author Michel Corne <mcorne@yahoo.com>
27 : * @copyright 2008-2010 Michel Corne
28 : * @license http://opensource.org/licenses/gpl-3.0.html GNU General Public License, version 3 (GPLv3)
29 : */
30 :
31 : class Model_Search_Gdflex extends Model_Search_GdfLike
32 : {
33 : /**
34 : * Name of the Godefroy dictionary
35 : * @var string
36 : */
37 : public $dictionary = 'gdflex';
38 :
39 : /**
40 : * Requires the errata files
41 : * @var boolean
42 : */
43 : public $needErrataImages = true;
44 :
45 : /**
46 : * Requires the search in the ghost words
47 : * @var boolean
48 : */
49 : public $needGhostwords = true;
50 :
51 : /**
52 : * Requires the search in the Tobler
53 : * @var boolean
54 : */
55 : public $needTobler = true;
56 :
57 : /**
58 : * Requires the search in the Tcaf
59 : * @var boolean
60 : */
61 : public $needTcaf = true;
62 :
63 : /**
64 : * Construtor
65 : *
66 : * @param string $directory the dictionaries directory
67 : * @return void
68 : */
69 : public function __construct($directory)
70 : {
71 1 : $this->directory = $directory;
72 1 : $this->query = new Model_Query_Gdflex($directory);
73 1 : }
74 : }
|