38 throw new \TYPO3\CMS\Install\FolderStructure\Exception\InvalidArgumentException(
39 'Link node must have parent',
46 if (strstr($structure[
'name'],
'/') !== FALSE) {
47 throw new \TYPO3\CMS\Install\FolderStructure\Exception\InvalidArgumentException(
48 'File name must not contain forward slash',
52 $this->name = $structure[
'name'];
54 if (isset($structure[
'target']) && strlen($structure[
'target']) > 0) {
55 $this->target = $structure[
'target'];
72 'This node is not handled for Windows OS and should be checked manually.' 74 return array($status);
80 $status->setMessage(
'Links cannot be fixed by this system');
81 return array($status);
91 ' but is of type ' . $type .
'. This cannot be fixed automatically. Please investigate.' 96 ' but is of unknown type, probably because an upper level directory does not exist. Please investigate.' 99 return array($status);
108 return array($status);
112 $message =
'Is a link';
114 $message .=
' and correctly points to target ' . $this->
getTarget();
117 $status->setMessage($message);
118 return array($status);
149 throw new \TYPO3\CMS\Install\FolderStructure\Exception\InvalidArgumentException(
150 'Link does not exist',
165 throw new \TYPO3\CMS\Install\FolderStructure\Exception\InvalidArgumentException(
166 'Link does not exist',
171 throw new \TYPO3\CMS\Install\FolderStructure\Exception\InvalidArgumentException(
172 'Node is not a link',
179 if (empty($expectedTarget)) {
183 if ($expectedTarget === rtrim($actualTarget,
'/')) {
if($list_of_literals) if(!empty($literals)) if(!empty($literals)) $result
Analyse literals to prepend the N char to them if their contents aren't numeric.
__construct(array $structure, NodeInterface $parent=NULL)
getRelativePathBelowSiteRoot($path=NULL)