Method | Description | |
---|---|---|
__construct ( |
Create a new repository instance. | |
byType ( $type ) : |
Get a model by setting type. If a model does not exist, create a new model. | |
updateByType ( array $data ) : boolean | Update an existing model has a same type. |
public __construct ( |
||
$setting | ||
return | void |
public byType ( $type ) : |
||
return |
public updateByType ( array $data ) : boolean | ||
$data | array | Data to update a model |
return | boolean |