IPropertyServiceProvider
A property provider is used with a ModelFactory to add additional properties to a model in addition to the model's base configuration.
This is like a standard IPropertyConfig instance, but it adds the ability to have a save function attached. This is used with the various relationship providers.
This interface makes it possible to attach more interactive property configurations to a ServicableModel instance.
This is NOT necessary to use unless you need custom save functions attached to the model for whatever properties are defined by this.
Table of Contents
getPropertyConfig() | Get the property config for the main property set | IPropertyConfig |
---|---|---|
getSaveFunction() | Retrieve the save function used for saving stuff from the provider. | IRunnable |
Methods
getPropertyConfig()
Get the property config for the main property set
public
getPropertyConfig(
)
: IPropertyConfig
Return values
IPropertyConfig —config
getSaveFunction()
Retrieve the save function used for saving stuff from the provider.
public
getSaveFunction(
$parent :
IModel
)
: IRunnable
Parameters
- $parent : IModel