Свойство | Тип | Описание | |
---|---|---|---|
$articleNumber | integer | ||
$defaultImage | Newscoop\Image\ImageInterface | ||
$renditions | array |
Метод | Описание | |
---|---|---|
__construct ( integer $articleNumber, array $articleRenditions = [], Newscoop\Image\ImageInterface $defaultImage = null ) | ||
offsetExists ( Newscoop\Image\Rendition $rendition, boolean $strict = false ) : boolean | Test if can provide image for rendition | |
offsetGet ( Newscoop\Image\Rendition $rendition ) : Newscoop\Image\ArticleImageRendition | Get image for rendition | |
offsetSet ( $offset, $value ) | ||
offsetUnset ( $offset ) |
Метод | Описание | |
---|---|---|
setArticleRenditions ( array $renditions ) : void | Set article renditions |
public __construct ( integer $articleNumber, array $articleRenditions = [], Newscoop\Image\ImageInterface $defaultImage = null ) | ||
$articleNumber | integer | |
$articleRenditions | array | |
$defaultImage | Newscoop\Image\ImageInterface |
public offsetExists ( Newscoop\Image\Rendition $rendition, boolean $strict = false ) : boolean | ||
$rendition | Newscoop\Image\Rendition | |
$strict | boolean | Check only key existing |
Результат | boolean |
public offsetGet ( Newscoop\Image\Rendition $rendition ) : Newscoop\Image\ArticleImageRendition | ||
$rendition | Newscoop\Image\Rendition | |
Результат | Newscoop\Image\ArticleImageRendition |
protected Newscoop\Image\ImageInterface $defaultImage | ||
Результат | Newscoop\Image\ImageInterface |