PHP 클래스 Tdt\Core\Repositories\DefinitionRepository

상속: extends BaseDefinitionRepository, implements Tdt\Core\Repositories\Interfaces\DefinitionRepositoryInterface
파일 보기 프로젝트 열기: tdt/core

보호된 프로퍼티들

프로퍼티 타입 설명
$dcat_rules
$geodcat_rules

공개 메소드들

메소드 설명
__construct ( Definition $model )
count ( )
countFacets ( $filters )
countFiltered ( $filters, $limit, $offset )
countPublished ( ) Return the count of all non-draft definitions
delete ( $identifier ) Delete a definition
exists ( $identifier ) Return true|false based on whether the identifier is a resource or not
getAll ( $limit = PHP_INT_MAX, $offset )
getAllDefinitionInfo ( $limit, $offset, $keywords = [] )
getAllFullDescriptions ( $limit = PHP_INT_MAX, $offset )
getAllPublished ( $limit = PHP_INT_MAX, $offset )
getByCollection ( $collection )
getByIdentifier ( $identifier )
getCreateParameters ( ) Return the properties (= column fields) for this model.
getDefinitionSource ( $id, $name )
getDescriptionInfo ( $identifier )
getFiltered ( $filters, $limit, $offset )
getFullDescription ( $identifier )
getOldest ( )
getValidator ( array $input )
store ( array $input ) Create a new definition with corresponding source type
update ( $identifier, array $input )

비공개 메소드들

메소드 설명
createAttribution ( $attribution ) : Attribution Create and return an attribution
createLocation ( array $input ) : Location Create and return a location
getEloquentDefinition ( string $identifier ) : Eloquent Get the eloquent object of a definition
getSourceRepository ( string $type ) : mixed Provide a source type repository
updateFacets ( Eloquent $definition ) : void Update the facets for a definition
validateType ( array $input ) Check if the given source type exists

메소드 상세

__construct() 공개 메소드

public __construct ( Definition $model )
$model Definition

count() 공개 메소드

public count ( )

countFacets() 공개 메소드

public countFacets ( $filters )

countFiltered() 공개 메소드

public countFiltered ( $filters, $limit, $offset )

countPublished() 공개 메소드

Return the count of all non-draft definitions
public countPublished ( )

delete() 공개 메소드

Delete a definition
public delete ( $identifier )

exists() 공개 메소드

Return true|false based on whether the identifier is a resource or not
public exists ( $identifier )

getAll() 공개 메소드

public getAll ( $limit = PHP_INT_MAX, $offset )

getAllDefinitionInfo() 공개 메소드

public getAllDefinitionInfo ( $limit, $offset, $keywords = [] )

getAllFullDescriptions() 공개 메소드

public getAllFullDescriptions ( $limit = PHP_INT_MAX, $offset )

getAllPublished() 공개 메소드

public getAllPublished ( $limit = PHP_INT_MAX, $offset )

getByCollection() 공개 메소드

public getByCollection ( $collection )

getByIdentifier() 공개 메소드

public getByIdentifier ( $identifier )

getCreateParameters() 공개 메소드

Return the properties (= column fields) for this model.
public getCreateParameters ( )

getDefinitionSource() 공개 메소드

public getDefinitionSource ( $id, $name )

getDescriptionInfo() 공개 메소드

public getDescriptionInfo ( $identifier )

getFiltered() 공개 메소드

public getFiltered ( $filters, $limit, $offset )

getFullDescription() 공개 메소드

public getFullDescription ( $identifier )

getOldest() 공개 메소드

public getOldest ( )

getValidator() 공개 메소드

public getValidator ( array $input )
$input array

store() 공개 메소드

Create a new definition with corresponding source type
public store ( array $input )
$input array

update() 공개 메소드

public update ( $identifier, array $input )
$input array

프로퍼티 상세

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

protected $dcat_rules

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

protected $geodcat_rules