TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Install\FolderStructure\RootNode Class Reference
Inheritance diagram for TYPO3\CMS\Install\FolderStructure\RootNode:
TYPO3\CMS\Install\FolderStructure\DirectoryNode TYPO3\CMS\Install\FolderStructure\RootNodeInterface TYPO3\CMS\Install\FolderStructure\AbstractNode TYPO3\CMS\Install\FolderStructure\NodeInterface TYPO3\CMS\Install\FolderStructure\NodeInterface

Public Member Functions

 __construct (array $structure, NodeInterface $parent=null)
 
 getStatus ()
 
 getAbsolutePath ()
 
- Public Member Functions inherited from TYPO3\CMS\Install\FolderStructure\DirectoryNode
 __construct (array $structure, NodeInterface $parent=null)
 
 getStatus ()
 
 isWritable ()
 
- Public Member Functions inherited from TYPO3\CMS\Install\FolderStructure\AbstractNode
 getName ()
 
 getAbsolutePath ()
 
 isWritable ()
 
- Public Member Functions inherited from TYPO3\CMS\Install\FolderStructure\NodeInterface
 getName ()
 
 fix ()
 

Additional Inherited Members

- Protected Member Functions inherited from TYPO3\CMS\Install\FolderStructure\DirectoryNode
 fixSelf ()
 
 createDirectory ()
 
 getSelfStatus ()
 
 canFileBeCreated ()
 
 isDirectory ()
 
- Protected Member Functions inherited from TYPO3\CMS\Install\FolderStructure\AbstractNode
 getTargetPermission ()
 
 setTargetPermission ($permission)
 
 getChildren ()
 
 getParent ()
 
 exists ()
 
 fixPermission ()
 
 isPermissionCorrect ()
 
 getCurrentPermission ()
 
 isWindowsOs ()
 
 getRelativePathBelowSiteRoot ($path=null)
 
- Protected Attributes inherited from TYPO3\CMS\Install\FolderStructure\DirectoryNode
 $targetPermission = '2775'
 
- Protected Attributes inherited from TYPO3\CMS\Install\FolderStructure\AbstractNode
 $name = ''
 
 $targetPermission = null
 
 $parent = null
 
 $children = []
 

Detailed Description

Root node of structure

Definition at line 22 of file RootNode.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Install\FolderStructure\RootNode::__construct ( array  $structure,
NodeInterface  $parent = null 
)

Member Function Documentation

◆ getAbsolutePath()

TYPO3\CMS\Install\FolderStructure\RootNode::getAbsolutePath ( )

Root node does not call parent, but returns own name only

Returns
string Absolute path

Implements TYPO3\CMS\Install\FolderStructure\NodeInterface.

Definition at line 85 of file RootNode.php.

References TYPO3\CMS\Install\FolderStructure\AbstractNode\$name.

Referenced by TYPO3\CMS\Install\FolderStructure\RootNode\getStatus().

◆ getStatus()

TYPO3\CMS\Install\FolderStructure\RootNode::getStatus ( )

Get own status and status of child objects - Root node gives error status if not exists

Returns
array<>

Implements TYPO3\CMS\Install\FolderStructure\NodeInterface.

Definition at line 66 of file RootNode.php.

References TYPO3\CMS\Install\FolderStructure\AbstractNode\exists(), TYPO3\CMS\Install\FolderStructure\RootNode\getAbsolutePath(), and TYPO3\CMS\Install\FolderStructure\DirectoryNode\getSelfStatus().