ContentType
class ContentType
Properties
static | $content_types |
Methods
static
ContentType
createFromContent(
string $content)
Create a new ContentType object extracting the type from a content string
static
string
guessContentType(
string $content)
No description
__construct(
string $content_type)
Constructor : defines the current URL and gets the routes
string
__toString()
No description
setContentType(
string $content_type)
No description
string
getContentType()
No description
setContentTypeObject(
ContentTypeInterface $content_type_object)
No description
object|null
getContentTypeObject()
No description
prepareContentType(
string $content_type)
No description
void
prepareResponse(
Response $response)
Prepare the content of the response before to send it to client
mixed
parseContent(
string $content)
Parse an input content
string
prepareContent(
mixed $content)
Prepare a content for output
Details
at line 61
static
ContentType
createFromContent(
string $content)
Create a new ContentType object extracting the type from a content string
at line 70
static
string
guessContentType(
string $content)
at line 81
__construct(
string $content_type)
Constructor : defines the current URL and gets the routes
at line 89
string
__toString()
at line 103
ContentType
setContentType(
string $content_type)
at line 120
string
getContentType()
at line 129
ContentType
setContentTypeObject(
ContentTypeInterface $content_type_object)
at line 139
object|null
getContentTypeObject()
at line 152
ContentType
prepareContentType(
string $content_type)
at line 168
void
prepareResponse(
Response $response)
Prepare the content of the response before to send it to client
at line 185
mixed
parseContent(
string $content)
Parse an input content
at line 201
string
prepareContent(
mixed $content)
Prepare a content for output