Свойство | Тип | Описание | |
---|---|---|---|
$id | integer |
Свойство | Тип | Описание | |
---|---|---|---|
$articleImageId | Virtual property set by rest api with connection to articleImage | ||
$basename | string | ||
$captions | array | ||
$contentType | string | ||
$created | DateTime | ||
$date | string | ||
$description | text | ||
$height | integer | ||
$isUpdatedStorage | integer | ||
$items | Doctrine\Common\Collections\Collection | ||
$location | string | ||
$photographer | string | ||
$photographerUrl | string | ||
$place | string | ||
$renditions | Doctrine\Common\Collections\Collection | ||
$source | string | ||
$status | string | ||
$thumbnailPath | string | ||
$updated | DateTime | ||
$url | string | ||
$user | Newscoop\Entity\User | ||
$width | integer |
Метод | Описание | |
---|---|---|
__construct ( string $image = '' ) | ||
getArticleImageId ( ) : mixed | Gets articleImage. | |
getBasename ( ) : string | Gets the value of basename. | |
getCaption ( ) : string | Get caption | |
getCaptions ( ) : array | Get captions | |
getContentType ( ) : string | Gets the value of contentType. | |
getCreated ( ) : DateTime | Gets the value of created. | |
getDate ( ) : string | Get date | |
getDescription ( ) : string | Get description | |
getHeight ( ) : integer | Get height | |
getId ( ) : integer | Get id | |
getPath ( ) : string | Get path | |
getPhotographer ( ) : string | Get photographer | |
getPhotographerUrl ( ) : string | Get photographer url | |
getPlace ( ) : string | Get place | |
getSource ( ) : string | Get source | |
getStatus ( ) : string | Gets the value of status. | |
getThumbnailPath ( $clear = false ) : string | Get thumbnail path | |
getUpdated ( ) : DateTime | Gets the value of updated. | |
getUser ( ) : |
Gets the value of user. | |
getWidth ( ) : integer | Get width | |
hasUpdatedStorage ( ) : boolean | Test is storage was updated | |
hasWidth ( ) : boolean | Test if image has defined width | |
isLocal ( ) : boolean | Test if is local image | |
setArticleImageId ( mixed $articleImageId ) : self | Sets articleImage. | |
setBasename ( string $basename ) : self | Sets the value of basename. | |
setContentType ( string $contentType ) : self | Sets the value of contentType. | |
setCreated ( DateTime $created ) : self | Sets the value of created. | |
setDate ( string $date ) : void | Set date | |
setDescription ( string $description ) : void | Set description | |
setHeight ( integer $height ) : self | Sets the value of height. | |
setPhotographer ( string $photographer ) : void | Set photographer | |
setPhotographerUrl ( string $url ) : void | Set photographer url | |
setPlace ( string $place ) : void | Set place | |
setSource ( string $source ) : self | Sets the value of source. | |
setStatus ( string $status = null ) : self | Sets the value of status. | |
setThumbnailPath ( string $thumbnailPath ) : self | Sets the value of thumbnailPath. | |
setUpdated ( DateTime $updated ) : self | Sets the value of updated. | |
setUrl ( string $url ) : self | Sets the value of url. | |
setUser ( |
Sets the value of user. | |
setWidth ( integer $width ) : self | Sets the value of width. | |
updateStorage ( string $path, string $thumbnailPath ) : void | Update storage | |
upload ( string $path, string $thumbnailPath ) : void | Upload image |
Метод | Описание | |
---|---|---|
getInfo ( ) : array | Get image info | |
saveEntity ( ) : void | Store updated info if persisted | |
setBroken ( ) : void | Set image as broken |
public getArticleImageId ( ) : mixed | ||
Результат | mixed |
public getBasename ( ) : string | ||
Результат | string |
public getCaption ( ) : string | ||
Результат | string |
public getContentType ( ) : string | ||
Результат | string |
public getCreated ( ) : DateTime | ||
Результат | DateTime |
public getDescription ( ) : string | ||
Результат | string |
public getPhotographer ( ) : string | ||
Результат | string |
public getPhotographerUrl ( ) : string | ||
Результат | string |
public getThumbnailPath ( $clear = false ) : string | ||
Результат | string |
public getUpdated ( ) : DateTime | ||
Результат | DateTime |
public getUser ( ) : |
||
Результат |
public hasUpdatedStorage ( ) : boolean | ||
Результат | boolean |
public setArticleImageId ( mixed $articleImageId ) : self | ||
$articleImageId | mixed | the article image id |
Результат | self |
public setBasename ( string $basename ) : self | ||
$basename | string | the basename |
Результат | self |
public setContentType ( string $contentType ) : self | ||
$contentType | string | the content type |
Результат | self |
public setCreated ( DateTime $created ) : self | ||
$created | DateTime | the created |
Результат | self |
public setDescription ( string $description ) : void | ||
$description | string | |
Результат | void |
public setPhotographer ( string $photographer ) : void | ||
$photographer | string | |
Результат | void |
public setPhotographerUrl ( string $url ) : void | ||
$url | string | |
Результат | void |
public setThumbnailPath ( string $thumbnailPath ) : self | ||
$thumbnailPath | string | the thumbnail path |
Результат | self |
public setUpdated ( DateTime $updated ) : self | ||
$updated | DateTime | the updated |
Результат | self |
public setUser ( |
||
$user | the user | |
Результат | self |
protected $articleImageId |
protected Doctrine\Common\Collections\Collection $items | ||
Результат | Doctrine\Common\Collections\Collection |
protected Doctrine\Common\Collections\Collection $renditions | ||
Результат | Doctrine\Common\Collections\Collection |