PHP Class yupe\components\ContentType

Show file Open project: yupe/yupe Class Usage Examples

Public Methods

Method Description
getHeader ( integer $contentTypeId ) : string Фукция возвращающая строку типа контента
getTypes ( ) : mixed Функция возвращающая все типы контента:
setHeader ( integer $contentTypeId ) : nothing Фукция устанавливающая тип контента

Method Details

getHeader() public static method

Фукция возвращающая строку типа контента
public static getHeader ( integer $contentTypeId ) : string
$contentTypeId integer - id типа контента
return string строка типа контента

getTypes() public static method

Функция возвращающая все типы контента:
public static getTypes ( ) : mixed
return mixed все типы контента

setHeader() public static method

Фукция устанавливающая тип контента
public static setHeader ( integer $contentTypeId ) : nothing
$contentTypeId integer - id типа контента
return nothing