PHP Class Tdt\Core\Repositories\DefinitionRepository

Inheritance: extends BaseDefinitionRepository, implements Tdt\Core\Repositories\Interfaces\DefinitionRepositoryInterface
Afficher le fichier Open project: tdt/core

Protected Properties

Свойство Type Description
$dcat_rules
$geodcat_rules

Méthodes publiques

Méthode 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

Méthode 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 méthode

public __construct ( Definition $model )
$model Definition

count() public méthode

public count ( )

countFacets() public méthode

public countFacets ( $filters )

countFiltered() public méthode

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

countPublished() public méthode

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

delete() public méthode

Delete a definition
public delete ( $identifier )

exists() public méthode

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

getAll() public méthode

public getAll ( $limit = PHP_INT_MAX, $offset )

getAllDefinitionInfo() public méthode

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

getAllFullDescriptions() public méthode

public getAllFullDescriptions ( $limit = PHP_INT_MAX, $offset )

getAllPublished() public méthode

public getAllPublished ( $limit = PHP_INT_MAX, $offset )

getByCollection() public méthode

public getByCollection ( $collection )

getByIdentifier() public méthode

public getByIdentifier ( $identifier )

getCreateParameters() public méthode

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

getDefinitionSource() public méthode

public getDefinitionSource ( $id, $name )

getDescriptionInfo() public méthode

public getDescriptionInfo ( $identifier )

getFiltered() public méthode

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

getFullDescription() public méthode

public getFullDescription ( $identifier )

getOldest() public méthode

public getOldest ( )

getValidator() public méthode

public getValidator ( array $input )
$input array

store() public méthode

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

update() public méthode

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