PHP Класс Tdt\Core\Repositories\DefinitionRepository

Наследование: extends BaseDefinitionRepository, implements Tdt\Core\Repositories\Interfaces\DefinitionRepositoryInterface
Показать файл Открыть проект

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

Свойство Тип Описание
$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