PHP Interface Imbo\Http\Response\Formatter\FormatterInterface

Author: Christer Edvartsen ([email protected])
Show file Open project: imbo/imbo

Public Methods

Method Description
format ( Imbo\Model\ModelInterface $model ) : string Format a model
formatAccessRules ( AccessRules $model ) : string Format an access rules model
formatArrayModel ( ArrayModel $model ) : string Format an array model
formatError ( Error $model ) : string Format an error model
formatGroup ( Group $model ) : string Format a group model
formatGroups ( Groups $model ) : string Format a groups model
formatImages ( Images $model ) : string Format an images model
formatListModel ( ListModel $model ) : string Format a list model
formatMetadataModel ( Imbo\Model\Metadata $model ) : string Format a metadata model
formatStats ( Stats $model ) : string Format a stats model
formatStatus ( Status $model ) : string Format a status model
formatUser ( User $model ) : string Format a user model
getContentType ( ) : string Get the content type for the current formatter

Method Details

format() public method

Format a model
public format ( Imbo\Model\ModelInterface $model ) : string
$model Imbo\Model\ModelInterface The model to format
return string

formatAccessRules() public method

Format an access rules model
public formatAccessRules ( AccessRules $model ) : string
$model Imbo\Model\AccessRules The model to format
return string Formatted data

formatArrayModel() public method

Format an array model
public formatArrayModel ( ArrayModel $model ) : string
$model Imbo\Model\ArrayModel The model to format
return string Formatted data

formatError() public method

Format an error model
public formatError ( Error $model ) : string
$model Imbo\Model\Error The model to format
return string Formatted data

formatGroup() public method

Format a group model
public formatGroup ( Group $model ) : string
$model Imbo\Model\Group The model to format
return string Formatted data

formatGroups() public method

Format a groups model
public formatGroups ( Groups $model ) : string
$model Imbo\Model\Groups The model to format
return string Formatted data

formatImages() public method

Format an images model
public formatImages ( Images $model ) : string
$model Imbo\Model\Images The model to format
return string Formatted data

formatListModel() public method

Format a list model
public formatListModel ( ListModel $model ) : string
$model Imbo\Model\ListModel The model to format
return string Formatted data

formatMetadataModel() public method

Format a metadata model
public formatMetadataModel ( Imbo\Model\Metadata $model ) : string
$model Imbo\Model\Metadata The model to format
return string Formatted data

formatStats() public method

Format a stats model
public formatStats ( Stats $model ) : string
$model Imbo\Model\Stats The model to format
return string Formatted data

formatStatus() public method

Format a status model
public formatStatus ( Status $model ) : string
$model Imbo\Model\Status The model to format
return string Formatted data

formatUser() public method

Format a user model
public formatUser ( User $model ) : string
$model Imbo\Model\User The model to format
return string Formatted data

getContentType() public method

Return the content type for the current formatter, excluding the character set, for instance 'application/json'.
public getContentType ( ) : string
return string