TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Install\FolderStructure\NodeInterface Interface Reference
Inheritance diagram for TYPO3\CMS\Install\FolderStructure\NodeInterface:
TYPO3\CMS\Install\FolderStructure\DirectoryNode TYPO3\CMS\Install\FolderStructure\FileNode TYPO3\CMS\Install\FolderStructure\LinkNode TYPO3\CMS\Install\FolderStructure\RootNodeInterface TYPO3\CMS\Install\FolderStructure\RootNode TYPO3\CMS\Install\FolderStructure\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 NodeInterface.php.

Constructor & Destructor Documentation

◆ __construct()

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

Constructor gets structure and parent object defaulting to NULL

Parameters
array$structureStructure
NodeInterface$parentParent

Implemented in TYPO3\CMS\Install\FolderStructure\FileNode, TYPO3\CMS\Install\FolderStructure\DirectoryNode, TYPO3\CMS\Install\FolderStructure\LinkNode, and TYPO3\CMS\Install\FolderStructure\RootNode.

Member Function Documentation

◆ fix()

TYPO3\CMS\Install\FolderStructure\NodeInterface::fix ( )

Fix structure

If there is nothing to fix, returns an empty array

Returns
array<>

Implemented in TYPO3\CMS\Install\FolderStructure\LinkNode, and TYPO3\CMS\Install\FolderStructure\FileNode.

Referenced by TYPO3\CMS\Install\FolderStructure\DirectoryNode\isWritable().

◆ getAbsolutePath()

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

Get absolute path of node

Returns
string Absolute path

Implemented in TYPO3\CMS\Install\FolderStructure\RootNode.

◆ getName()

TYPO3\CMS\Install\FolderStructure\NodeInterface::getName ( )

Get node name

Returns
string Node name

◆ getStatus()

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

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

Returns
array<>

Implemented in TYPO3\CMS\Install\FolderStructure\FileNode, TYPO3\CMS\Install\FolderStructure\DirectoryNode, TYPO3\CMS\Install\FolderStructure\LinkNode, and TYPO3\CMS\Install\FolderStructure\RootNode.

◆ isWritable()

TYPO3\CMS\Install\FolderStructure\NodeInterface::isWritable ( )

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

Returns
bool TRUE if node is writable

Implemented in TYPO3\CMS\Install\FolderStructure\DirectoryNode.