Property | Type | Description | |
---|---|---|---|
$config | array | ||
$imageService | Newscoop\Image\ImageService | ||
$orm | Doctrine\ORM\EntityManager | ||
$renditions | array |
Method | Description | |
---|---|---|
__construct ( |
||
getArticleRenditionImage ( integer $articleNumber, string $renditionName, integer $width = null, integer $height = null ) : array | Get article image rendition | |
getArticleRenditions ( integer $articleNumber ) : array | Get article renditions | |
getOptions ( ) : array | Get options | |
getRendition ( string $name ) : Newscoop\Image\Rendition | Get rendition by given name | |
getRenditions ( ) : array | Get renditions | |
hasRenditions ( ) : boolean | Test if there are renditions defined | |
registerRenditions ( array $existing = [] ) : void | Register renditions | |
reloadRenditions ( ) : void | Force reload of rendition specs | |
setArticleRendition ( integer $articleNumber, |
Set article rendition | |
setRenditionsLabels ( array $labels ) : void | Set renditions labels | |
setRenditionsOrder ( array $order ) : void | Set renditions order | |
unsetArticleImageRenditions ( integer $articleNumber, integer $image ) : void | Unset article-image rendition | |
unsetArticleRendition ( integer $articleNumber, string $rendition ) : void | Unset article rendition |
Method | Description | |
---|---|---|
createSchemaIfMissing ( Exception $e ) : void | Create schema for article rendition | |
getArticleRendition ( integer $articleNumber, string $rendition ) : Newscoop\Image\ArticleRendition | Get article rendition | |
getPackageRenditionNames ( ) : array | Get renditions names used by packages | |
removeOrphanedArticleRenditions ( array $names ) : void | Remove orphaned article renditions | |
removeOrphanedRenditions ( array $names ) : void | Remove orphaned renditions |
public __construct ( |
||
$orm | ||
$imageService |
public getArticleRenditions ( integer $articleNumber ) : array | ||
$articleNumber | integer | |
return | array |
public getRendition ( string $name ) : Newscoop\Image\Rendition | ||
$name | string | |
return | Newscoop\Image\Rendition |
public hasRenditions ( ) : boolean | ||
return | boolean |
public registerRenditions ( array $existing = [] ) : void | ||
$existing | array | |
return | void |
public reloadRenditions ( ) : void | ||
return | void |
public setArticleRendition ( integer $articleNumber, |
||
$articleNumber | integer | |
$rendition | ||
$image | Newscoop\Image\ImageInterface | |
$imageSpecs | string | |
return | Newscoop\Image\ArticleRendition |
public setRenditionsLabels ( array $labels ) : void | ||
$labels | array | |
return | void |
public setRenditionsOrder ( array $order ) : void | ||
$order | array | |
return | void |
protected Newscoop\Image\ImageService $imageService | ||
return | Newscoop\Image\ImageService |