TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
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 Member Functions inherited from AbstractNode
 getTargetPermission ()
 
 setTargetPermission ($permission)
 
 getChildren ()
 
 getParent ()
 
 exists ()
 
 fixPermission ()
 
 isPermissionCorrect ()
 
 getCurrentPermission ()
 
 isWindowsOs ()
 
 getRelativePathBelowSiteRoot ($path=null)
 
- Protected Attributes inherited from DirectoryNode
 $targetPermission = '2775'
 
- Protected Attributes inherited from 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 ( array  $structure,
NodeInterface  $parent = null 
)

Implement constructor

Parameters
array$structureGiven structure
NodeInterface$parentMust be NULL for RootNode
Exceptions
ExceptionRootNodeException
ExceptionInvalidArgumentException

Implements NodeInterface.

Definition at line 32 of file 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 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 RootNode.php.

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