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

Class: MIME_Type_Parameter

Source Location: /MIME_Type-1.3.3/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

Type:   string


[ Top ]

$name =

[line 32]

Parameter name

Type:   string


[ Top ]

$value =

[line 39]

Parameter value

Type:   string


[ Top ]



Method Detail

MIME_Type_Parameter (Constructor)   [line 56]

void MIME_Type_Parameter( [string $param = false])

Constructor.

Parameters:

string   $param     MIME parameter to parse, if set.

[ Top ]

get   [line 161]

string get( )

Get a string representation of this parameter

This function performs the oppsite of parse()

  • Return: String representation of parameter

[ Top ]

getAttribute   [line 89]

string getAttribute( string $param)

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

Parameters:

string   $param     MIME type parameter

[ Top ]

getComment   [line 126]

string getComment( string $param)

Get a parameter comment

Parameters:

string   $param     MIME type parameter

[ Top ]

getValue   [line 104]

string getValue( string $param)

Get a parameter value
  • Return: Value

Parameters:

string   $param     MIME type parameter

[ Top ]

hasComment   [line 145]

boolean hasComment( string $param)

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

Parameters:

string   $param     MIME type parameter

[ Top ]

parse   [line 71]

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 Thu, 03 Oct 2013 09:00:02 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.