Overview

Namespaces

  • Coast
    • App
      • Access
      • Executable
    • Controller
    • Csrf
    • Dir
    • Feed
    • File
    • Filter
      • Rule
    • Http
    • Image
    • Model
      • Exception
    • Resolver
    • Router
    • Sitemap
    • Transformer
      • Rule
    • Validator
      • Rule
    • View

Classes

  • Acl
  • App
  • Coast
  • Collection
  • Config
  • Controller
  • Csp
  • Csrf
  • Dir
  • Feed
  • File
  • Filter
  • Http
  • Image
  • Lazy
  • Model
  • Path
  • Request
  • Resolver
  • Response
  • Router
  • Session
  • Sitemap
  • Transformer
  • Url
  • Validator
  • View
  • Xml

Exceptions

  • Exception
  • Overview
  • Namespace
  • Class
  • Deprecated
  • Todo

Class Request

Namespace: Coast
Located at Request.php
Methods summary
public
# fromGlobals( )
protected
# _clean( array $params )
protected
# _restructure( array $params )
public
# param( $name, $value = null )
public
# params( array $params = null )
public
# server( $name, $value = null )
public
# servers( array $servers = null )
public
# protocol( $protocol = null )
public
# method( $method = null )
public
# isHead( )
public
# isGet( )
public
# isPost( )
public
# isPut( )
public
# isDelete( )
public
# isAjax( )
public
# header( $name, $value = null )
public
# headers( array $headers = null )
public
# scheme( $scheme = null )
public
# isSecure( )
public
# host( $host = null )
public
# port( $port = null )
public
# base( $base = null )
public
# path( $path = null )
public
# pathParam( $name, $value = null )
public
# pathParams( array $pathParams = null )
public
# queryParam( $name, $value = null )
public
# queryParams( array $queryParams = null )
public
# bodyParam( $name, $value = null )
public
# bodyParams( array $bodyParams = null )
public
# body( $body = null )
public
# json( $assoc = false, $depth = 512, $options = 0 )
public
# xml( $class = '\Coast\Xml', $options = 0, $namespace = '', $prefix = false )
public
# type( )
public
# isJson( )
public
# isXml( )
public
# cookie( $name, $value = null )
public
# cookies( array $cookies = null )
public
# url( )
public Coast\Request
# __set( string $name, mixed $value )

Set a parameter.

Set a parameter.

Parameters

$name
$value

Returns

Coast\Request
public mixed
# __get( string $name )

Get a parameter.

Get a parameter.

Parameters

$name

Returns

mixed
public boolean
# __isset( string $name )

Check if a parameter exists.

Check if a parameter exists.

Parameters

$name

Returns

boolean
public boolean
# __unset( string $name )

Unset a parameter.

Unset a parameter.

Parameters

$name

Returns

boolean
Constants summary
string PROTOCOL_10
# 'HTTP/1.0'
string PROTOCOL_11
# 'HTTP/1.1'
string METHOD_HEAD
# 'HEAD'
string METHOD_GET
# 'GET'
string METHOD_POST
# 'POST'
string METHOD_PUT
# 'PUT'
string METHOD_DELETE
# 'DELETE'
string SCHEME_HTTP
# 'http'
string SCHEME_HTTPS
# 'https'
integer PORT_HTTP
# 80
integer PORT_HTTPS
# 443
Properties summary
protected array $_params
# []
protected array $_servers
# []
protected $_protocol
#
protected $_method
#
protected array $_headers
# []
protected $_scheme
#
protected $_host
#
protected $_port
#
protected $_base
#
protected $_path
#
protected array $_pathParams
# []
protected array $_queryParams
# []
protected array $_bodyParams
# []
protected array $_body
# []
protected array $_cookies
# []
Coast API Documentation API documentation generated by ApiGen