PHP 클래스 Newscoop\Image\LocalImage

상속: implements Newscoop\Image\ImageInterface
파일 보기 프로젝트 열기: sourcefabric/newscoop 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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 ( ) : 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