PHP Interface Tdt\Core\Repositories\Interfaces\DefinitionRepositoryInterface

Afficher le fichier Open project: tdt/core

Méthodes publiques

Méthode Description
count ( ) : integer Retrieve the amount of definitions
countPublished ( ) : integer Retrieve the amount of published definitions
delete ( string $identifier ) : boolean | null Delete a Definition object
exists ( string $identifier ) : boolean Check if a definition exists with a given identifier
getAll ( integer $limit, integer $offset ) : array Retrieve all definitions
getAllDefinitionInfo ( integer $limit, integer $offset, array $keywords = [] ) : array Retrieve all the public information of all published Defintion's
getAllFullDescriptions ( integer $limit, integer $offset ) : array Retrieve all the information of all Defintion's
getAllPublished ( integer $limit, integer $offset ) : array Retrieve all published definitions
getByCollection ( $collection ) : array Retrieve a collection of definitions based on the collection prefix of the identifier
getByIdentifier ( string $identifier ) : array Retrieve a definition by its identifier
getCreateParameters ( ) : array Retrieve the create parameters for a Definition e.g. array( 'create_parameter' => array( 'required' => true, 'description' => '.
getDefinitionSource ( integer $definition_id, string $name ) : array Get the source of the definition (e.g. CsvDefinition, ShpDefinition,.
getFullDescription ( string $identifier ) : array Retrieve the full description of a definition
getOldest ( ) : array Retrieve the oldest definition
store ( array $input ) : array Store a Definition object
update ( string $identifier, array $input ) : array Update a Definition object

Method Details

count() public méthode

Retrieve the amount of definitions
public count ( ) : integer
Résultat integer

countPublished() public méthode

Retrieve the amount of published definitions
public countPublished ( ) : integer
Résultat integer

delete() public méthode

Delete a Definition object
public delete ( string $identifier ) : boolean | null
$identifier string
Résultat boolean | null

exists() public méthode

Check if a definition exists with a given identifier
public exists ( string $identifier ) : boolean
$identifier string
Résultat boolean

getAll() public méthode

Retrieve all definitions
public getAll ( integer $limit, integer $offset ) : array
$limit integer
$offset integer
Résultat array of Definition's

getAllDefinitionInfo() public méthode

Retrieve all the public information of all published Defintion's
public getAllDefinitionInfo ( integer $limit, integer $offset, array $keywords = [] ) : array
$limit integer
$offset integer
$keywords array
Résultat array of Definition's

getAllFullDescriptions() public méthode

Retrieve all the information of all Defintion's
public getAllFullDescriptions ( integer $limit, integer $offset ) : array
$limit integer
$offset integer
Résultat array of Definition's

getAllPublished() public méthode

Retrieve all published definitions
public getAllPublished ( integer $limit, integer $offset ) : array
$limit integer
$offset integer
Résultat array of Definition's

getByCollection() public méthode

Retrieve a collection of definitions based on the collection prefix of the identifier
public getByCollection ( $collection ) : array
Résultat array of Definition's

getByIdentifier() public méthode

Retrieve a definition by its identifier
public getByIdentifier ( string $identifier ) : array
$identifier string
Résultat array Definition

getCreateParameters() public méthode

..', 'type' => 'string', 'name' => 'pretty name' ), ...)
public getCreateParameters ( ) : array
Résultat array

getDefinitionSource() public méthode

..)
public getDefinitionSource ( integer $definition_id, string $name ) : array
$definition_id integer (id of the definition)
$name string (e.g. CsvDefinition, ShpDefinition,...)
Résultat array Source

getFullDescription() public méthode

Retrieve the full description of a definition
public getFullDescription ( string $identifier ) : array
$identifier string
Résultat array Definition

getOldest() public méthode

Retrieve the oldest definition
public getOldest ( ) : array
Résultat array Definition

store() public méthode

Store a Definition object
public store ( array $input ) : array
$input array
Résultat array Definition

update() public méthode

Update a Definition object
public update ( string $identifier, array $input ) : array
$identifier string
$input array
Résultat array Definition