eZPublishCommunityProject  2013.4
eZ\Publish\Core\REST\Server\Values\RestContent Class Reference

REST Content, as received by /content/objects/<ID> More...

+ Inheritance diagram for eZ\Publish\Core\REST\Server\Values\RestContent:
+ Collaboration diagram for eZ\Publish\Core\REST\Server\Values\RestContent:

Public Member Functions

 __construct (ContentInfo $contentInfo, Location $mainLocation=null, Content $currentVersion=null, ContentType $contentType=null, array $relations=null, $path=null)
 Construct. More...
 

Public Attributes

 $contentInfo
 
 $contentType
 
 $currentVersion
 
 $mainLocation
 
 $path
 
 $relations
 

Detailed Description

REST Content, as received by /content/objects/<ID>

Might have a "Version" (aka Content in the Public API) embedded

Constructor & Destructor Documentation

eZ\Publish\Core\REST\Server\Values\RestContent::__construct ( ContentInfo  $contentInfo,
Location  $mainLocation = null,
Content  $currentVersion = null,
ContentType  $contentType = null,
array  $relations = null,
  $path = null 
)

Construct.

Parameters
\eZ\Publish\API\Repository\Values\Content\ContentInfo$contentInfo
\eZ\Publish\API\Repository\Values\Content\Location | null$mainLocation
\eZ\Publish\API\Repository\Values\Content\Content | null$currentVersion
\eZ\Publish\API\Repository\Values\ContentType\ContentType | null$contentTypeCan only be null if $currentVersion is
\eZ\Publish\API\Repository\Values\Content\Relation[]|null$relations Can only be null if $currentVersion is
string$path

Member Data Documentation

eZ\Publish\Core\REST\Server\Values\RestContent::$contentInfo
eZ\Publish\Core\REST\Server\Values\RestContent::$contentType
eZ\Publish\Core\REST\Server\Values\RestContent::$currentVersion
eZ\Publish\Core\REST\Server\Values\RestContent::$mainLocation
eZ\Publish\Core\REST\Server\Values\RestContent::$path
eZ\Publish\Core\REST\Server\Values\RestContent::$relations

The documentation for this class was generated from the following file: