PHP Class Newscoop\Image\ArticleRendition

Datei anzeigen Open project: sourcefabric/newscoop Class Usage Examples

Protected Properties

Property Type Description
$articleNumber integer
$image Newscoop\Image\Image
$imageSpecs string
$rendition Newscoop\Image\Rendition

Public Methods

Method Description
__construct ( integer $articleNumber, Rendition $rendition, Newscoop\Image\ImageInterface $image, string $imageSpecs = null )
getImage ( ) : Newscoop\Image\ArticleImage Get image id
getImageSpecs ( ) : string Get specs
getName ( ) : string Get rendition name
getRendition ( ) : Newscoop\Image\Rendition Get rendition
isDefault ( ) : boolean Test if is default picture

Method Details

__construct() public method

public __construct ( integer $articleNumber, Rendition $rendition, Newscoop\Image\ImageInterface $image, string $imageSpecs = null )
$articleNumber integer
$rendition Rendition
$image Newscoop\Image\ImageInterface
$imageSpecs string

getImage() public method

Get image id
public getImage ( ) : Newscoop\Image\ArticleImage
return Newscoop\Image\ArticleImage

getImageSpecs() public method

Get specs
public getImageSpecs ( ) : string
return string

getName() public method

Get rendition name
public getName ( ) : string
return string

getRendition() public method

Get rendition
public getRendition ( ) : Newscoop\Image\Rendition
return Newscoop\Image\Rendition

isDefault() public method

Test if is default picture
public isDefault ( ) : boolean
return boolean

Property Details

$articleNumber protected_oe property

protected int $articleNumber
return integer

$image protected_oe property

protected Newscoop\Image\Image $image
return Newscoop\Image\Image

$imageSpecs protected_oe property

protected string $imageSpecs
return string

$rendition protected_oe property

protected Newscoop\Image\Rendition $rendition
return Newscoop\Image\Rendition