PHP Class Sulu\Bundle\ContentBundle\Teaser\Teaser

Show file Open project: sulu/sulu

Public Methods

Method Description
__construct ( integer | string $id, string $type, string $locale, string $title, string $description, string $moreText, string $url, integer $mediaId, array $attributes = [] )
getAttributes ( ) : array Returns attributes.
getDescription ( ) : string Returns description.
getId ( ) : integer | string Returns id.
getLocale ( ) : string Returns locale.
getMediaId ( ) : integer Returns media-id.
getMoreText ( ) : string Returns more-text.
getTitle ( ) : string Returns title.
getType ( ) : string Returns type.
getUrl ( ) : string Returns url.
merge ( array $item ) : Teaser Merges given data with this teaser.

Private Methods

Method Description
getValue ( string $name, array $item, mixed $default ) : mixed Returns array-value by name or default value.

Method Details

__construct() public method

public __construct ( integer | string $id, string $type, string $locale, string $title, string $description, string $moreText, string $url, integer $mediaId, array $attributes = [] )
$id integer | string
$type string
$locale string
$title string
$description string
$moreText string
$url string
$mediaId integer
$attributes array

getAttributes() public method

Returns attributes.
public getAttributes ( ) : array
return array

getDescription() public method

Returns description.
public getDescription ( ) : string
return string

getId() public method

Returns id.
public getId ( ) : integer | string
return integer | string

getLocale() public method

Returns locale.
public getLocale ( ) : string
return string

getMediaId() public method

Returns media-id.
public getMediaId ( ) : integer
return integer

getMoreText() public method

Returns more-text.
public getMoreText ( ) : string
return string

getTitle() public method

Returns title.
public getTitle ( ) : string
return string

getType() public method

Returns type.
public getType ( ) : string
return string

getUrl() public method

Returns url.
public getUrl ( ) : string
return string

merge() public method

Merges given data with this teaser.
public merge ( array $item ) : Teaser
$item array
return Teaser