PHP Class Neos\Neos\Domain\Model\Dto\AssetUsageInNodeProperties

Inheritance: extends Neos\Media\Domain\Model\Dto\UsageReference
Show file Open project: neos/neos-development-collection

Protected Properties

Property Type Description
$accessible boolean
$documentNode Neos\ContentRepository\Domain\Model\NodeInterface
$node Neos\ContentRepository\Domain\Model\NodeInterface
$site Neos\Neos\Domain\Model\Site

Public Methods

Method Description
__construct ( Neos\Media\Domain\Model\AssetInterface $asset, Site $site, Neos\ContentRepository\Domain\Model\NodeInterface $documentNode = null, Neos\ContentRepository\Domain\Model\NodeInterface $node, boolean $accessible )
getDocumentNode ( ) : Neos\ContentRepository\Domain\Model\NodeInterface Returns the parent document node of the node where the asset is used.
getNode ( ) : Neos\ContentRepository\Domain\Model\NodeInterface Returns the node where the asset is in use.
getSite ( ) : Site Returns the Site object of the site where the asset is in use.
isAccessible ( ) : boolean Returns true if the node is accessible by the current user.

Method Details

__construct() public method

public __construct ( Neos\Media\Domain\Model\AssetInterface $asset, Site $site, Neos\ContentRepository\Domain\Model\NodeInterface $documentNode = null, Neos\ContentRepository\Domain\Model\NodeInterface $node, boolean $accessible )
$asset Neos\Media\Domain\Model\AssetInterface
$site Neos\Neos\Domain\Model\Site
$documentNode Neos\ContentRepository\Domain\Model\NodeInterface
$node Neos\ContentRepository\Domain\Model\NodeInterface
$accessible boolean

getDocumentNode() public method

Returns the parent document node of the node where the asset is used.
public getDocumentNode ( ) : Neos\ContentRepository\Domain\Model\NodeInterface
return Neos\ContentRepository\Domain\Model\NodeInterface

getNode() public method

Returns the node where the asset is in use.
public getNode ( ) : Neos\ContentRepository\Domain\Model\NodeInterface
return Neos\ContentRepository\Domain\Model\NodeInterface

getSite() public method

Returns the Site object of the site where the asset is in use.
public getSite ( ) : Site
return Neos\Neos\Domain\Model\Site

isAccessible() public method

Returns true if the node is accessible by the current user.
public isAccessible ( ) : boolean
return boolean

Property Details

$accessible protected property

protected bool $accessible
return boolean

$documentNode protected property

protected NodeInterface,Neos\ContentRepository\Domain\Model $documentNode
return Neos\ContentRepository\Domain\Model\NodeInterface

$node protected property

protected NodeInterface,Neos\ContentRepository\Domain\Model $node
return Neos\ContentRepository\Domain\Model\NodeInterface

$site protected property

protected Site,Neos\Neos\Domain\Model $site
return Neos\Neos\Domain\Model\Site