MIME_Type
[ class tree: MIME_Type ] [ index: MIME_Type ] [ all elements ]

Class: MIME_Type_Parameter

Source Location: /MIME_Type-1.4.1/MIME/Type/Parameter.php

Class Overview


Class for working with MIME type parameters


Author(s):

Version:

  • Release: @version@

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 25]
Class for working with MIME type parameters


[ Top ]


Class Variables

$comment =

[line 46]

Parameter comment
  • Access: public

Type:   string


[ Top ]

$name =

[line 32]

Parameter name
  • Access: public

Type:   string


[ Top ]

$value =

[line 39]

Parameter value
  • Access: public

Type:   string


[ Top ]



Method Detail

__construct (Constructor)   [line 54]

MIME_Type_Parameter __construct( [string $param = false])

Constructor.
  • Access: public

Parameters:

string   $param   —  MIME parameter to parse, if set.

[ Top ]

get   [line 156]

string get( )

Get a string representation of this parameter

This function performs the oppsite of parse()

  • Return: String representation of parameter
  • Access: public

[ Top ]

getAttribute   [line 86]

string getAttribute( string $param)

Get a parameter attribute (e.g. name)
  • Return: Attribute name
  • Access: public

Parameters:

string   $param   —  MIME type parameter

[ Top ]

getComment   [line 121]

string getComment( string $param)

Get a parameter comment

Parameters:

string   $param   —  MIME type parameter

[ Top ]

getValue   [line 100]

string getValue( string $param)

Get a parameter value
  • Return: Value
  • Access: public

Parameters:

string   $param   —  MIME type parameter

[ Top ]

hasComment   [line 140]

boolean hasComment( string $param)

Does this parameter have a comment?
  • Return: true if $param has a comment, false otherwise
  • Access: public

Parameters:

string   $param   —  MIME type parameter

[ Top ]

parse   [line 69]

void parse( string $param)

Parse a MIME type parameter and set object fields

Parameters:

string   $param   —  MIME type parameter to parse

[ Top ]


Documentation generated on Mon, 11 Mar 2019 16:03:55 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.