PHP Class Tdt\Core\Repositories\DefinitionRepository

Inheritance: extends BaseDefinitionRepository, implements Tdt\Core\Repositories\Interfaces\DefinitionRepositoryInterface
Datei anzeigen Open project: tdt/core

Protected Properties

Property Type Description
$dcat_rules
$geodcat_rules

Public Methods

Method Description
__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 )

Private Methods

Method Description
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

Method Details

__construct() public method

public __construct ( Definition $model )
$model Definition

count() public method

public count ( )

countFacets() public method

public countFacets ( $filters )

countFiltered() public method

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

countPublished() public method

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

delete() public method

Delete a definition
public delete ( $identifier )

exists() public method

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

getAll() public method

public getAll ( $limit = PHP_INT_MAX, $offset )

getAllDefinitionInfo() public method

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

getAllFullDescriptions() public method

public getAllFullDescriptions ( $limit = PHP_INT_MAX, $offset )

getAllPublished() public method

public getAllPublished ( $limit = PHP_INT_MAX, $offset )

getByCollection() public method

public getByCollection ( $collection )

getByIdentifier() public method

public getByIdentifier ( $identifier )

getCreateParameters() public method

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

getDefinitionSource() public method

public getDefinitionSource ( $id, $name )

getDescriptionInfo() public method

public getDescriptionInfo ( $identifier )

getFiltered() public method

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

getFullDescription() public method

public getFullDescription ( $identifier )

getOldest() public method

public getOldest ( )

getValidator() public method

public getValidator ( array $input )
$input array

store() public method

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

update() public method

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

Property Details

$dcat_rules protected_oe property

protected $dcat_rules

$geodcat_rules protected_oe property

protected $geodcat_rules