PHP 클래스 Newscoop\Package\Item

파일 보기 프로젝트 열기: sourcefabric/newscoop 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$image Newscoop\Image\LocalImage

보호된 프로퍼티들

프로퍼티 타입 설명
$caption text
$coords string
$id integer
$link string Item link used by Newscoop API.
$offset integer
$package Newscoop\Package\Package
$type string Item type used by Newscoop API.
$videoUrl string

공개 메소드들

메소드 설명
__construct ( Package $package, mixed $item )
getCaption ( ) : string Get caption.
getId ( ) : integer Get id.
getImage ( ) : LocalImage Get image.
getImageSpecs ( ) : string Get image specs.
getItem ( ) : self Get clone of itself - for serializer.
getLink ( ) : string Get link for Item resource.
getOffset ( ) Get offset.
getPackage ( ) : integer Get package.
getPackageId ( ) : integer Get package id.
getPackageItems ( ) : array Get package items.
getRendition ( ) : Newscoop\Image\Rendition Get rendition.
getType ( ) : string Get Item type.
getVideoUrl ( ) : string Get video url.
isImage ( ) : boolean Test if item is image.
isVideo ( ) : boolean Test if item is video.
setCaption ( string $caption ) Set caption.
setCoords ( string $coords ) Set crop coordinates.
setLink ( string $link ) Set link for Item resource.
setOffset ( integer $offset ) Set offset.
setType ( string $type ) Set Item type.
setVideoUrl ( string $url ) Set video url.

메소드 상세

__construct() 공개 메소드

public __construct ( Package $package, mixed $item )
$package Package
$item mixed

getCaption() 공개 메소드

Get caption.
public getCaption ( ) : string
리턴 string

getId() 공개 메소드

Get id.
public getId ( ) : integer
리턴 integer

getImage() 공개 메소드

Get image.
public getImage ( ) : LocalImage
리턴 Newscoop\Image\LocalImage

getImageSpecs() 공개 메소드

Get image specs.
public getImageSpecs ( ) : string
리턴 string

getItem() 공개 메소드

Get clone of itself - for serializer.
public getItem ( ) : self
리턴 self

getOffset() 공개 메소드

Get offset.
public getOffset ( )

getPackage() 공개 메소드

Get package.
public getPackage ( ) : integer
리턴 integer

getPackageId() 공개 메소드

Get package id.
public getPackageId ( ) : integer
리턴 integer

getPackageItems() 공개 메소드

Get package items.
public getPackageItems ( ) : array
리턴 array

getRendition() 공개 메소드

Get rendition.
public getRendition ( ) : Newscoop\Image\Rendition
리턴 Newscoop\Image\Rendition

getType() 공개 메소드

Get Item type.
public getType ( ) : string
리턴 string "video" or "image"

getVideoUrl() 공개 메소드

Get video url.
public getVideoUrl ( ) : string
리턴 string

isImage() 공개 메소드

Test if item is image.
public isImage ( ) : boolean
리턴 boolean

isVideo() 공개 메소드

Test if item is video.
public isVideo ( ) : boolean
리턴 boolean

setCaption() 공개 메소드

Set caption.
public setCaption ( string $caption )
$caption string

setCoords() 공개 메소드

Set crop coordinates.
public setCoords ( string $coords )
$coords string

setOffset() 공개 메소드

Set offset.
public setOffset ( integer $offset )
$offset integer

setType() 공개 메소드

Set Item type.
public setType ( string $type )
$type string "video" or "image"

setVideoUrl() 공개 메소드

Set video url.
public setVideoUrl ( string $url )
$url string

프로퍼티 상세

$caption 보호되어 있는 프로퍼티

protected text $caption
리턴 text

$coords 보호되어 있는 프로퍼티

protected string $coords
리턴 string

$id 보호되어 있는 프로퍼티

protected int $id
리턴 integer

$image 공개적으로 프로퍼티

public LocalImage,Newscoop\Image $image
리턴 Newscoop\Image\LocalImage

$offset 보호되어 있는 프로퍼티

protected int $offset
리턴 integer

$package 보호되어 있는 프로퍼티

protected Newscoop\Package\Package $package
리턴 Newscoop\Package\Package

$type 보호되어 있는 프로퍼티

Item type used by Newscoop API.
protected string $type
리턴 string

$videoUrl 보호되어 있는 프로퍼티

protected string $videoUrl
리턴 string