PHP Class Sulu\Component\Content\SmartContent\ContentDataItem

Inheritance: extends Sulu\Component\SmartContent\ArrayAccessItem, implements Sulu\Component\SmartContent\ItemInterface
Show file Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( array $data, object $resource )
getImage ( )
getPublished ( ) : DateTime Returns the date at which the content was published.
getPublishedState ( ) : boolean Returns true iff the latest version of the content is published.
getTitle ( )
getUrl ( ) : string Returns the url of the content item.

Method Details

__construct() public method

public __construct ( array $data, object $resource )
$data array
$resource object

getImage() public method

public getImage ( )

getPublished() public method

Returns the date at which the content was published.
public getPublished ( ) : DateTime
return DateTime

getPublishedState() public method

Returns true iff the latest version of the content is published.
public getPublishedState ( ) : boolean
return boolean

getTitle() public method

public getTitle ( )

getUrl() public method

Returns the url of the content item.
public getUrl ( ) : string
return string