TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
NodeInterface Interface Reference
Inheritance diagram for NodeInterface:
DirectoryNode FileNode LinkNode RootNodeInterface RootNode RootNode

Public Member Functions

 __construct (array $structure, NodeInterface $parent=null)
 
 getName ()
 
 getAbsolutePath ()
 
 getStatus ()
 
 isWritable ()
 
 fix ()
 

Detailed Description

Interface for structure nodes root, link, file, ...

Definition at line 20 of file install/Classes/FolderStructure/NodeInterface.php.

Constructor & Destructor Documentation

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

Constructor gets structure and parent object defaulting to NULL

Parameters
array$structureStructure
NodeInterface$parentParent

Implemented in FileNode, DirectoryNode, LinkNode, and RootNode.

Member Function Documentation

fix ( )

Fix structure

If there is nothing to fix, returns an empty array

Returns
array<>

Implemented in LinkNode, and FileNode.

getAbsolutePath ( )

Get absolute path of node

Returns
string Absolute path

Implemented in RootNode.

getName ( )

Get node name

Returns
string Node name
getStatus ( )

Get the status of the object tree, recursive for directory and root node

Returns
array<>

Implemented in FileNode, DirectoryNode, LinkNode, and RootNode.

isWritable ( )

Check if node is writable - can be created and permission can be fixed

Returns
bool TRUE if node is writable

Implemented in DirectoryNode.