2 namespace TYPO3\CMS\Install\FolderStructure;
17 use TYPO3\CMS\Install\Status;
39 throw new Exception\InvalidArgumentException(
40 'Link node must have parent',
47 if (strstr($structure[
'name'],
'/') !==
false) {
48 throw new Exception\InvalidArgumentException(
49 'File name must not contain forward slash',
53 $this->name = $structure[
'name'];
55 if (isset($structure[
'target']) && $structure[
'target'] !==
'') {
56 $this->target = $structure[
'target'];
74 'This node is not handled for Windows OS and should be checked manually.'
76 return array($status);
82 $status->setMessage(
'Links cannot be fixed by this system');
83 return array($status);
93 ' but is of type ' . $type .
'. This cannot be fixed automatically. Please investigate.'
98 ' but is of unknown type, probably because an upper level directory does not exist. Please investigate.'
101 return array($status);
110 return array($status);
114 $message =
'Is a link';
116 $message .=
' and correctly points to target ' . $this->
getTarget();
119 $status->setMessage($message);
120 return array($status);
154 throw new Exception\InvalidArgumentException(
155 'Link does not exist',
171 throw new Exception\InvalidArgumentException(
172 'Link does not exist',
177 throw new Exception\InvalidArgumentException(
178 'Node is not a link',
185 if (empty($expectedTarget)) {
189 if ($expectedTarget === rtrim($actualTarget,
'/')) {