TYPO3  7.6
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
LinkNode Class Reference
Inheritance diagram for LinkNode:
AbstractNode NodeInterface

Public Member Functions

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

Protected Member Functions

 getTarget ()
 
 isLink ()
 
 isTargetCorrect ()
 
 getCurrentTarget ()
 
- Protected Member Functions inherited from AbstractNode
 getTargetPermission ()
 
 setTargetPermission ($permission)
 
 getChildren ()
 
 getParent ()
 
 exists ()
 
 fixPermission ()
 
 isPermissionCorrect ()
 
 getCurrentPermission ()
 
 isWindowsOs ()
 
 getRelativePathBelowSiteRoot ($path=null)
 

Protected Attributes

 $target = ''
 
- Protected Attributes inherited from AbstractNode
 $name = ''
 
 $targetPermission = null
 
 $parent = null
 
 $children = array()
 

Detailed Description

A link

Definition at line 22 of file LinkNode.php.

Constructor & Destructor Documentation

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

Implement constructor

Parameters
array$structureStructure array
NodeInterface$parentParent object
Exceptions
Exception\InvalidArgumentException

Implements NodeInterface.

Definition at line 36 of file LinkNode.php.

References AbstractNode\$parent.

Member Function Documentation

fix ( )

Fix structure

If there is nothing to fix, returns an empty array

Returns
array<>

Implements NodeInterface.

Definition at line 130 of file LinkNode.php.

getCurrentTarget ( )
protected

Return current target of link

Returns
string target

Definition at line 201 of file LinkNode.php.

References AbstractNode\getAbsolutePath().

Referenced by LinkNode\getStatus(), and LinkNode\isTargetCorrect().

getStatus ( )

Get own status Returns information status if running on Windows Returns OK status if is link and possible target is correct Else returns error (not fixable)

Returns
array<>

Implements NodeInterface.

Definition at line 68 of file LinkNode.php.

References AbstractNode\exists(), AbstractNode\getAbsolutePath(), LinkNode\getCurrentTarget(), AbstractNode\getRelativePathBelowSiteRoot(), LinkNode\getTarget(), LinkNode\isLink(), LinkNode\isTargetCorrect(), and AbstractNode\isWindowsOs().

getTarget ( )
protected

Get link target

Returns
string Link target

Definition at line 140 of file LinkNode.php.

References LinkNode\$target.

Referenced by LinkNode\getStatus(), and LinkNode\isTargetCorrect().

isLink ( )
protected

Find out if node is a link

Exceptions
Exception\InvalidArgumentException
Returns
bool TRUE if node is a link

Definition at line 151 of file LinkNode.php.

References AbstractNode\exists(), and AbstractNode\getAbsolutePath().

Referenced by LinkNode\getStatus(), and LinkNode\isTargetCorrect().

isTargetCorrect ( )
protected

Checks if the real link target is identical to given target

Exceptions
Exception\InvalidArgumentException
Returns
bool TRUE if target is correct

Definition at line 168 of file LinkNode.php.

References AbstractNode\exists(), LinkNode\getCurrentTarget(), LinkNode\getTarget(), and LinkNode\isLink().

Referenced by LinkNode\getStatus().

Member Data Documentation

$target = ''
protected

Definition at line 27 of file LinkNode.php.

Referenced by LinkNode\getTarget().