|
1
|
|
|
<?php |
|
2
|
|
|
/*************************************************************** |
|
3
|
|
|
* Copyright notice |
|
4
|
|
|
* |
|
5
|
|
|
* (c) 2009 AOE media ([email protected]) |
|
6
|
|
|
* All rights reserved |
|
7
|
|
|
* |
|
8
|
|
|
* This script is part of the TYPO3 project. The TYPO3 project is |
|
9
|
|
|
* free software; you can redistribute it and/or modify |
|
10
|
|
|
* it under the terms of the GNU General Public License as published by |
|
11
|
|
|
* the Free Software Foundation; either version 2 of the License, or |
|
12
|
|
|
* (at your option) any later version. |
|
13
|
|
|
* |
|
14
|
|
|
* The GNU General Public License can be found at |
|
15
|
|
|
* http://www.gnu.org/copyleft/gpl.html. |
|
16
|
|
|
* |
|
17
|
|
|
* This script is distributed in the hope that it will be useful, |
|
18
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
19
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
20
|
|
|
* GNU General Public License for more details. |
|
21
|
|
|
* |
|
22
|
|
|
* This copyright notice MUST APPEAR in all copies of the script! |
|
23
|
|
|
***************************************************************/ |
|
24
|
|
|
|
|
25
|
|
|
class tx_crawler_domain_reason extends tx_crawler_domain_lib_abstract_dbobject |
|
26
|
|
|
{ |
|
27
|
|
|
protected static $tableName = 'tx_crawler_reason'; |
|
28
|
|
|
|
|
29
|
|
|
/** |
|
30
|
|
|
* THE CONSTANTS REPRESENT THE KIND OF THE REASON |
|
31
|
|
|
* |
|
32
|
|
|
* Convention for own states: <extensionkey>_<reason> |
|
33
|
|
|
*/ |
|
34
|
|
|
const REASON_DEFAULT = 'crawler_default_reason'; |
|
35
|
|
|
const REASON_GUI_SUBMIT = 'crawler_gui_submit_reason'; |
|
36
|
|
|
const REASON_CLI_SUBMIT = 'crawler_cli_submit_reason'; |
|
37
|
|
|
|
|
38
|
|
|
/** |
|
39
|
|
|
* Set uid |
|
|
|
|
|
|
40
|
|
|
* |
|
41
|
|
|
* @param int uid |
|
42
|
|
|
* @return void |
|
43
|
|
|
*/ |
|
44
|
|
|
public function setUid($uid) |
|
45
|
|
|
{ |
|
46
|
|
|
$this->row['uid'] = $uid; |
|
47
|
|
|
} |
|
48
|
|
|
|
|
49
|
|
|
/** |
|
50
|
|
|
* Method to set a timestamp for the creation time of this record |
|
51
|
|
|
* |
|
52
|
|
|
* @param int $time |
|
53
|
|
|
*/ |
|
54
|
|
|
public function setCreationDate($time) |
|
55
|
|
|
{ |
|
56
|
|
|
$this->row['crdate'] = $time; |
|
57
|
|
|
} |
|
58
|
|
|
|
|
59
|
|
|
/** |
|
60
|
|
|
* This method can be used to set a user id of the user who has created this reason entry |
|
61
|
|
|
* |
|
62
|
|
|
* @param int $user_id |
|
63
|
|
|
*/ |
|
64
|
|
|
public function setBackendUserId($user_id) |
|
65
|
|
|
{ |
|
66
|
|
|
$this->row['cruser_id'] = $user_id; |
|
67
|
|
|
} |
|
68
|
|
|
|
|
69
|
|
|
/** |
|
70
|
|
|
* Method to set the type of the reason for this reason instance (see constances) |
|
71
|
|
|
* |
|
72
|
|
|
* @param string $string |
|
73
|
|
|
*/ |
|
74
|
|
|
public function setReason($string) |
|
75
|
|
|
{ |
|
76
|
|
|
$this->row['reason'] = $string; |
|
77
|
|
|
} |
|
78
|
|
|
|
|
79
|
|
|
/** |
|
80
|
|
|
* This method returns the attached reason text. |
|
81
|
|
|
* @return string |
|
82
|
|
|
*/ |
|
83
|
|
|
public function getReason() |
|
84
|
|
|
{ |
|
85
|
|
|
return $this->row['reason']; |
|
86
|
|
|
} |
|
87
|
|
|
|
|
88
|
|
|
/** |
|
89
|
|
|
* This method can be used to assign a detail text to the crawler reason |
|
90
|
|
|
* |
|
91
|
|
|
* @param string $detail_text |
|
92
|
|
|
*/ |
|
93
|
|
|
public function setDetailText($detail_text) |
|
94
|
|
|
{ |
|
95
|
|
|
$this->row['detail_text'] = $detail_text; |
|
96
|
|
|
} |
|
97
|
|
|
|
|
98
|
|
|
/** |
|
99
|
|
|
* Returns the attachet detail text. |
|
100
|
|
|
* |
|
101
|
|
|
* @param void |
|
102
|
|
|
* @return string |
|
103
|
|
|
*/ |
|
104
|
|
|
public function getDetailText() |
|
105
|
|
|
{ |
|
106
|
|
|
return $this->row['detail_text']; |
|
107
|
|
|
} |
|
108
|
|
|
|
|
109
|
|
|
/** |
|
110
|
|
|
* This method is used to set the uid of the queue entry |
|
111
|
|
|
* where the reason is relevant for. |
|
112
|
|
|
* |
|
113
|
|
|
* @param int $entry_uid |
|
114
|
|
|
*/ |
|
115
|
|
|
public function setQueueEntryUid($entry_uid) |
|
116
|
|
|
{ |
|
117
|
|
|
$this->row['queue_entry_uid'] = $entry_uid; |
|
118
|
|
|
} |
|
119
|
|
|
} |
|
120
|
|
|
|
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths