TYPO3  7.6
Public Member Functions | List of all members
RootNode Class Reference
Inheritance diagram for RootNode:
DirectoryNode RootNodeInterface AbstractNode NodeInterface NodeInterface

Public Member Functions

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

Additional Inherited Members

- Protected Member Functions inherited from DirectoryNode
 fixSelf ()
 
 createDirectory ()
 
 getSelfStatus ()
 
 canFileBeCreated ()
 
 isDirectory ()
 
- Protected Attributes inherited from DirectoryNode
 $targetPermission = '2775'
 

Detailed Description

Root node of structure

Definition at line 22 of file install/Classes/FolderStructure/RootNode.php.

Constructor & Destructor Documentation

__construct ( array  $structure,
NodeInterface  $parent = null 
)

Implement constructor

Parameters
array$structureGiven structure
NodeInterface$parentMust be NULL for RootNode
Exceptions
Exception\RootNodeException
Exception\InvalidArgumentException

Implements NodeInterface.

Definition at line 32 of file install/Classes/FolderStructure/RootNode.php.

References AbstractNode\$parent, AbstractNode\isWindowsOs(), and AbstractNode\setTargetPermission().

Member Function Documentation

getAbsolutePath ( )

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

Returns
string Absolute path

Implements NodeInterface.

Definition at line 85 of file install/Classes/FolderStructure/RootNode.php.

References AbstractNode\$name.

Referenced by RootNode\getStatus().

getStatus ( )

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

Returns
array<>

Implements NodeInterface.

Definition at line 66 of file install/Classes/FolderStructure/RootNode.php.

References AbstractNode\exists(), RootNode\getAbsolutePath(), and DirectoryNode\getSelfStatus().