1 | <?php |
||
19 | class DoctrineDatabase extends Gateway |
||
20 | { |
||
21 | /** |
||
22 | * Database handler. |
||
23 | * |
||
24 | * @var \eZ\Publish\Core\Persistence\Database\DatabaseHandler |
||
25 | */ |
||
26 | protected $dbHandler; |
||
27 | |||
28 | /** |
||
29 | * SPI Content Type Handler. |
||
30 | * |
||
31 | * Need this for being able to pick fields that are searchable. |
||
32 | * |
||
33 | * @var \eZ\Publish\SPI\Persistence\Content\Type\Handler |
||
34 | */ |
||
35 | protected $typeHandler; |
||
36 | |||
37 | /** |
||
38 | * Construct from handler handler. |
||
39 | * |
||
40 | * @param \eZ\Publish\Core\Persistence\Database\DatabaseHandler $dbHandler |
||
41 | * @param \eZ\Publish\SPI\Persistence\Content\Type\Handler $typeHandler |
||
42 | */ |
||
43 | public function __construct( |
||
50 | |||
51 | /** |
||
52 | * Add a version of a Content to index. |
||
53 | * |
||
54 | * @param \eZ\Publish\SPI\Persistence\Content $content |
||
55 | */ |
||
56 | public function index(Content $content) |
||
60 | |||
61 | /** |
||
62 | * Remove whole content or a specific version from index. |
||
63 | * |
||
64 | * @param mixed $contentId |
||
65 | * @param mixed|null $versionId |
||
66 | */ |
||
67 | public function remove($contentId, $versionId = null) |
||
71 | } |
||
72 |