|
1
|
|
|
<?php |
|
2
|
|
|
namespace ApacheSolrForTypo3\Solr; |
|
3
|
|
|
|
|
4
|
|
|
/*************************************************************** |
|
5
|
|
|
* Copyright notice |
|
6
|
|
|
* |
|
7
|
|
|
* (c) 2011-2015 Ingo Renner <[email protected]> |
|
8
|
|
|
* All rights reserved |
|
9
|
|
|
* |
|
10
|
|
|
* This script is part of the TYPO3 project. The TYPO3 project is |
|
11
|
|
|
* free software; you can redistribute it and/or modify |
|
12
|
|
|
* it under the terms of the GNU General Public License as published by |
|
13
|
|
|
* the Free Software Foundation; either version 3 of the License, or |
|
14
|
|
|
* (at your option) any later version. |
|
15
|
|
|
* |
|
16
|
|
|
* The GNU General Public License can be found at |
|
17
|
|
|
* http://www.gnu.org/copyleft/gpl.html. |
|
18
|
|
|
* |
|
19
|
|
|
* This script is distributed in the hope that it will be useful, |
|
20
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
21
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
22
|
|
|
* GNU General Public License for more details. |
|
23
|
|
|
* |
|
24
|
|
|
* This copyright notice MUST APPEAR in all copies of the script! |
|
25
|
|
|
***************************************************************/ |
|
26
|
|
|
|
|
27
|
|
|
use ApacheSolrForTypo3\Solr\Domain\Site\Site as NewSite; |
|
28
|
|
|
use ApacheSolrForTypo3\Solr\System\Configuration\TypoScriptConfiguration; |
|
29
|
|
|
use ApacheSolrForTypo3\Solr\System\Records\Pages\PagesRepository; |
|
30
|
|
|
|
|
31
|
|
|
/** |
|
32
|
|
|
* A site is a branch in a TYPO3 installation. Each site's root page is marked |
|
33
|
|
|
* by the "Use as Root Page" flag. |
|
34
|
|
|
* |
|
35
|
|
|
* @deprecated The class was moved to ApacheSolrForTypo3\Solr\Domain\Site\Site the old class will be removed in EXT:solr 10 |
|
36
|
|
|
* @author Ingo Renner <[email protected]> |
|
37
|
|
|
*/ |
|
38
|
|
|
class Site extends NewSite |
|
39
|
|
|
{ |
|
40
|
|
|
/** |
|
41
|
|
|
* Constructor. |
|
42
|
|
|
* |
|
43
|
|
|
* @param TypoScriptConfiguration $configuration |
|
44
|
|
|
* @param array $page Site root page ID (uid). The page must be marked as site root ("Use as Root Page" flag). |
|
45
|
|
|
* @param string $domain The domain record used by this Site |
|
46
|
|
|
* @param string $siteHash The site hash used by this site |
|
47
|
|
|
* @param PagesRepository $pagesRepository |
|
48
|
|
|
* @param int $defaultLanguageId |
|
49
|
|
|
* @deprecated Deprecated since 9.0.0 please use ApacheSolrForTypo3\Solr\Domain\Site\Site now. Will be removed in EXT:solr 10 |
|
50
|
|
|
*/ |
|
51
|
|
|
public function __construct(TypoScriptConfiguration $configuration, array $page, $domain, $siteHash, PagesRepository $pagesRepository = null, $defaultLanguageId = 0) |
|
52
|
|
|
{ |
|
53
|
|
|
trigger_error('The class Site was moved to ApacheSolrForTypo3\Solr\Domain\Site\Site please make sure that you this class now. Will be removed in EXT:solr 10', E_USER_DEPRECATED); |
|
54
|
|
|
parent::__construct($configuration, $page, $domain, $siteHash, $pagesRepository, $defaultLanguageId); |
|
55
|
|
|
} |
|
56
|
|
|
|
|
57
|
|
|
/** |
|
58
|
|
|
* @param string $method |
|
59
|
|
|
* @param array $args |
|
60
|
|
|
* @return mixed |
|
61
|
|
|
*/ |
|
62
|
|
|
public function __call($method, $args) { |
|
63
|
|
|
if(is_callable(array($this,$method))) { |
|
64
|
|
|
trigger_error('The class Site was moved to ApacheSolrForTypo3\Solr\Domain\Site\Site please make sure that you this class now. Will be removed in EXT:solr 10', E_USER_DEPRECATED); |
|
65
|
|
|
return call_user_func_array(array($this,$method), $args); |
|
66
|
|
|
} else { |
|
67
|
|
|
trigger_error("Call to undefined method '{$method}'"); |
|
68
|
|
|
} |
|
69
|
|
|
} |
|
70
|
|
|
} |
|
71
|
|
|
|