PHP Interface Tdt\Core\Repositories\Interfaces\InspireDefinitionRepositoryInterface

Show file Open project: tdt/core

Public Methods

Method Description
delete ( integer $xml_id ) : boolean | null Delete a InspireDefinition
getAll ( ) : array Return all InspireDefinition objects
getAllParameters ( ) : array Return an array of all the create parameters, also the parameters that are necessary for further internal relationships
getById ( integer $xml_id ) : array Fetch a InspireDefinition by id
getCreateParameters ( ) : array Return an array of create parameters with info attached e.g. array( 'create_parameter' => array( 'required' => true, 'description' => '.
getValidator ( array $input ) Return a validator based on an hash array
store ( array $input ) : array Store a InspireDefinition
update ( integer $xml_id, array $input ) : array Update a InspireDefinition

Method Details

delete() public method

Delete a InspireDefinition
public delete ( integer $xml_id ) : boolean | null
$xml_id integer
return boolean | null

getAll() public method

Return all InspireDefinition objects
public getAll ( ) : array
return array

getAllParameters() public method

Return an array of all the create parameters, also the parameters that are necessary for further internal relationships
public getAllParameters ( ) : array
return array

getById() public method

Fetch a InspireDefinition by id
public getById ( integer $xml_id ) : array
$xml_id integer
return array InspireDefinition

getCreateParameters() public method

..', 'type' => 'string', 'name' => 'pretty name' ), ...)
public getCreateParameters ( ) : array
return array

getValidator() public method

Return a validator based on an hash array
public getValidator ( array $input )
$input array return Illuminate\Validation\Validator

store() public method

Store a InspireDefinition
public store ( array $input ) : array
$input array
return array InspireDefinition

update() public method

Update a InspireDefinition
public update ( integer $xml_id, array $input ) : array
$xml_id integer
$input array
return array InspireDefinition