PHP Class Neos\ContentRepository\Domain\Model\ContentObjectProxy

This class is never used directly in userland but is instantiated automatically through setContentObject() in AbstractNodeData.
Mostrar archivo Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Property Type Description
$contentObject object
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$targetId string Technical identifier of the target object
$targetType string Type of the target model

Public Methods

Method Description
__construct ( object $contentObject ) Constructs this content type
getObject ( ) : object Returns the real object this proxy stands for

Protected Methods

Method Description
initializeObject ( ) : void Fetches the identifier from the set content object. If that is not using automatically introduced UUIDs by Flow it tries to call persistAll() and fetch the identifier again. If it still fails, an exception is thrown.

Method Details

__construct() public method

Constructs this content type
public __construct ( object $contentObject )
$contentObject object The content object that should be represented by this proxy

getObject() public method

Returns the real object this proxy stands for
public getObject ( ) : object
return object The "content object" as it was originally passed to the constructor

initializeObject() protected method

Fetches the identifier from the set content object. If that is not using automatically introduced UUIDs by Flow it tries to call persistAll() and fetch the identifier again. If it still fails, an exception is thrown.
protected initializeObject ( ) : void
return void

Property Details

$contentObject protected_oe property

protected object $contentObject
return object

$persistenceManager protected_oe property

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
return Neos\Flow\Persistence\PersistenceManagerInterface

$targetId protected_oe property

Technical identifier of the target object
protected string $targetId
return string

$targetType protected_oe property

Type of the target model
protected string $targetType
return string