phpDocumentor

ContentType
in package
implements ContentTypeInterface

Class ContentType

This class represents the content type

Tags
category

System

Interfaces, Classes and Traits

ContentTypeInterface
Interface ContentTypeInterface

Table of Contents

CONTENT  = 'content'
"Content" content type
FILE  = 'file'
File content type
LINK  = 'link'
Link content type
$type  : string
Content type
createForContent()  : ContentType
Create instance for "content" content type
createForFile()  : ContentType
Create instance for file content type
createForLink()  : ContentType
Create instance for link content type
type()  : string
Return the content type
__construct()  : mixed
ContentType constructor

Constants

Properties

Methods

type()

Return the content type

public type() : string
Return values
string

__construct()

ContentType constructor

protected __construct(string $type) : mixed
Parameters
$type : string

Content type

Return values
mixed

Search results