TYPO3 CMS
TYPO3_6-2
Main Page
Related Pages
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
CrawlerFilesHook.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\IndexedSearch\Hook
;
3
24
class
CrawlerFilesHook
{
25
34
public
function
crawler_execute
($params, &$pObj) {
35
if
(!is_array($params[
'conf'
])) {
36
return
;
37
}
38
// Initialize the indexer class:
39
$indexerObj =
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance
(
'TYPO3\\CMS\\IndexedSearch\\Indexer'
);
40
$indexerObj->conf = $params[
'conf'
];
41
$indexerObj->init();
42
// Index document:
43
if
($params[
'alturl'
]) {
44
$fI = pathinfo($params[
'document'
]);
45
$ext = strtolower($fI[
'extension'
]);
46
$indexerObj->indexRegularDocument($params[
'alturl'
], TRUE, $params[
'document'
], $ext);
47
}
else
{
48
$indexerObj->indexRegularDocument($params[
'document'
], TRUE);
49
}
50
// Return OK:
51
return
array(
'content'
=> array());
52
}
53
}
TYPO3\CMS\IndexedSearch\Hook\CrawlerFilesHook
Definition:
CrawlerFilesHook.php:24
TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance
static makeInstance($className)
Definition:
GeneralUtility.php:4424
TYPO3\CMS\IndexedSearch\Hook\CrawlerFilesHook\crawler_execute
crawler_execute($params, &$pObj)
Definition:
CrawlerFilesHook.php:34
TYPO3\CMS\IndexedSearch\Hook
Definition:
CrawlerFilesHook.php:2
typo3
sysext
indexed_search
Classes
Hook
CrawlerFilesHook.php
Generated on Wed Aug 7 2019 09:52:29 for TYPO3 CMS by
1.8.13