PHP Класс Newscoop\Image\LocalImage

Наследование: implements Newscoop\Image\ImageInterface
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$id integer

Защищенные свойства (Protected)

Свойство Тип Описание
$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 ( ) : User 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 ( User $user = null ) : self 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

Описание методов

__construct() публичный метод

public __construct ( string $image = '' )
$image string

getArticleImageId() публичный метод

Gets articleImage.
public getArticleImageId ( ) : mixed
Результат mixed

getBasename() публичный метод

Gets the value of basename.
public getBasename ( ) : string
Результат string

getCaption() публичный метод

Proxy to getDescription
public getCaption ( ) : string
Результат string

getCaptions() публичный метод

Get captions
public getCaptions ( ) : array
Результат array

getContentType() публичный метод

Gets the value of contentType.
public getContentType ( ) : string
Результат string

getCreated() публичный метод

Gets the value of created.
public getCreated ( ) : DateTime
Результат DateTime

getDate() публичный метод

Get date
public getDate ( ) : string
Результат string

getDescription() публичный метод

Get description
public getDescription ( ) : string
Результат string

getHeight() публичный метод

Get height
public getHeight ( ) : integer
Результат integer

getId() публичный метод

Get id
public getId ( ) : integer
Результат integer

getPath() публичный метод

Get path
public getPath ( ) : string
Результат string

getPhotographer() публичный метод

Get photographer
public getPhotographer ( ) : string
Результат string

getPhotographerUrl() публичный метод

Get photographer url
public getPhotographerUrl ( ) : string
Результат string

getPlace() публичный метод

Get place
public getPlace ( ) : string
Результат string

getSource() публичный метод

Get source
public getSource ( ) : string
Результат string

getStatus() публичный метод

Gets the value of status.
public getStatus ( ) : string
Результат string

getThumbnailPath() публичный метод

Get thumbnail path
public getThumbnailPath ( $clear = false ) : string
Результат string

getUpdated() публичный метод

Gets the value of updated.
public getUpdated ( ) : DateTime
Результат DateTime

getUser() публичный метод

Gets the value of user.
public getUser ( ) : User
Результат Newscoop\Entity\User

getWidth() публичный метод

Get width
public getWidth ( ) : integer
Результат integer

hasUpdatedStorage() публичный метод

Test is storage was updated
public hasUpdatedStorage ( ) : boolean
Результат boolean

hasWidth() публичный метод

Test if image has defined width
public hasWidth ( ) : boolean
Результат boolean

isLocal() публичный метод

Test if is local image
public isLocal ( ) : boolean
Результат boolean

setArticleImageId() публичный метод

Sets articleImage.
public setArticleImageId ( mixed $articleImageId ) : self
$articleImageId mixed the article image id
Результат self

setBasename() публичный метод

Sets the value of basename.
public setBasename ( string $basename ) : self
$basename string the basename
Результат self

setContentType() публичный метод

Sets the value of contentType.
public setContentType ( string $contentType ) : self
$contentType string the content type
Результат self

setCreated() публичный метод

Sets the value of created.
public setCreated ( DateTime $created ) : self
$created DateTime the created
Результат self

setDate() публичный метод

Set date
public setDate ( string $date ) : void
$date string
Результат void

setDescription() публичный метод

Set description
public setDescription ( string $description ) : void
$description string
Результат void

setHeight() публичный метод

Sets the value of height.
public setHeight ( integer $height ) : self
$height integer the height
Результат self

setPhotographer() публичный метод

Set photographer
public setPhotographer ( string $photographer ) : void
$photographer string
Результат void

setPhotographerUrl() публичный метод

Set photographer url
public setPhotographerUrl ( string $url ) : void
$url string
Результат void

setPlace() публичный метод

Set place
public setPlace ( string $place ) : void
$place string
Результат void

setSource() публичный метод

Sets the value of source.
public setSource ( string $source ) : self
$source string the source
Результат self

setStatus() публичный метод

Sets the value of status.
public setStatus ( string $status = null ) : self
$status string the status
Результат self

setThumbnailPath() публичный метод

Sets the value of thumbnailPath.
public setThumbnailPath ( string $thumbnailPath ) : self
$thumbnailPath string the thumbnail path
Результат self

setUpdated() публичный метод

Sets the value of updated.
public setUpdated ( DateTime $updated ) : self
$updated DateTime the updated
Результат self

setUrl() публичный метод

Sets the value of url.
public setUrl ( string $url ) : self
$url string the url
Результат self

setUser() публичный метод

Sets the value of user.
public setUser ( User $user = null ) : self
$user Newscoop\Entity\User the user
Результат self

setWidth() публичный метод

Sets the value of width.
public setWidth ( integer $width ) : self
$width integer the width
Результат self

updateStorage() публичный метод

Update storage
public updateStorage ( string $path, string $thumbnailPath ) : void
$path string
$thumbnailPath string
Результат void

upload() публичный метод

Upload image
public upload ( string $path, string $thumbnailPath ) : void
$path string
$thumbnailPath string
Результат void

Описание свойств

$articleImageId защищенное свойство

Virtual property set by rest api with connection to articleImage
protected $articleImageId

$basename защищенное свойство

protected string $basename
Результат string

$captions защищенное свойство

protected array $captions
Результат array

$contentType защищенное свойство

protected string $contentType
Результат string

$created защищенное свойство

protected DateTime $created
Результат DateTime

$date защищенное свойство

protected string $date
Результат string

$description защищенное свойство

protected text $description
Результат text

$height защищенное свойство

protected int $height
Результат integer

$id публичное свойство

public int $id
Результат integer

$isUpdatedStorage защищенное свойство

protected int $isUpdatedStorage
Результат integer

$items защищенное свойство

protected Doctrine\Common\Collections\Collection $items
Результат Doctrine\Common\Collections\Collection

$location защищенное свойство

protected string $location
Результат string

$photographer защищенное свойство

protected string $photographer
Результат string

$photographerUrl защищенное свойство

protected string $photographerUrl
Результат string

$place защищенное свойство

protected string $place
Результат string

$renditions защищенное свойство

protected Doctrine\Common\Collections\Collection $renditions
Результат Doctrine\Common\Collections\Collection

$source защищенное свойство

protected string $source
Результат string

$status защищенное свойство

protected string $status
Результат string

$thumbnailPath защищенное свойство

protected string $thumbnailPath
Результат string

$updated защищенное свойство

protected DateTime $updated
Результат DateTime

$url защищенное свойство

protected string $url
Результат string

$user защищенное свойство

protected Newscoop\Entity\User $user
Результат Newscoop\Entity\User

$width защищенное свойство

protected int $width
Результат integer