Method | Description | |
---|---|---|
formatName ( string $name ) : string | Format a SilverStripe ClassName of DBField to be used by the client API | |
getcontentType ( ) : string | Return Content-type header definition to be used in the API response | |
serialize ( DataObject | DataList | Array $data ) : string | Convert raw data (DataObject, DataList or Array) to JSON ready to be consumed by the client API |
public formatName ( string $name ) : string | ||
$name | string | ClassName of DBField name |
return | string | Formatted name |
public getcontentType ( ) : string | ||
return | string | Content-type |