PHP 클래스 Services\Service

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

공개 메소드들

메소드 설명
create ( Resource $resource ) : scalar Create a new resource and return its ID.
delete ( scalar $id ) Delete a resource by ID.
getLastModified ( scalar $id ) : integer Get the last modified date for a resource without fetching it.
load ( array $params = [] ) : Service
read ( scalar $id ) : resource Fetch a single resource by ID.
search ( array $params ) : resource[] Search for resources according to the parameters passed.
update ( scalar $id, Resource $resource ) Update a resource by ID.

메소드 상세

create() 추상적인 공개 메소드

Create a new resource and return its ID.
abstract public create ( Resource $resource ) : scalar
$resource Resource
리턴 scalar

delete() 추상적인 공개 메소드

Delete a resource by ID.
abstract public delete ( scalar $id )
$id scalar

getLastModified() 추상적인 공개 메소드

Get the last modified date for a resource without fetching it.
abstract public getLastModified ( scalar $id ) : integer
$id scalar
리턴 integer

load() 공개 정적인 메소드

public static load ( array $params = [] ) : Service
$params array
리턴 Service

read() 추상적인 공개 메소드

Fetch a single resource by ID.
abstract public read ( scalar $id ) : resource
$id scalar
리턴 resource

update() 추상적인 공개 메소드

Update a resource by ID.
abstract public update ( scalar $id, Resource $resource )
$id scalar
$resource Resource