SproutCMS

This is the code documentation for the SproutCMS project

function accepts()

Returns boolean of whether client accepts content type.

Usage

boolean Request::accepts ( [ string $type [, boolean $explicit_check ]] );

Arguments

  1. string $type = NULL
    content type
  2. boolean $explicit_check = FALSE
    set to TRUE to disable wildcard checking

Return value

  • boolean