-package-
[ class tree: -package- ] [ index: -package- ] [ all elements ]

Class: MIME_Type_Parameter

Source Location: /MIME_Type-1.0.0/Parameter.php

Class Overview


Class for working with MIME type parameters


Author(s):

Version:

  • @version@

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 28]
Class for working with MIME type parameters


[ Top ]


Class Variables

$comment =

[line 48]

Parameter comment

Type:   string


[ Top ]

$name =

[line 34]

Parameter name

Type:   string


[ Top ]

$value =

[line 41]

Parameter value

Type:   string


[ Top ]



Method Detail

MIME_Type_Parameter (Constructor)   [line 57]

void MIME_Type_Parameter( [string $param = false])

Constructor.

Parameters:

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

[ Top ]

get   [line 153]

string get( )

Get a string representation of this parameter

This function performs the oppsite of parse()

  • Return: String representation of parameter

[ Top ]

getAttribute   [line 88]

string getAttribute( string $param)

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

Parameters:

string   $param   —  MIME type parameter

[ Top ]

getComment   [line 122]

string getComment( string $param)

Get a parameter comment

Parameters:

string   $param   —  MIME type parameter

[ Top ]

getValue   [line 102]

string getValue( string $param)

Get a parameter value
  • Return: Value

Parameters:

string   $param   —  MIME type parameter

[ Top ]

hasComment   [line 137]

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 Mon, 11 Mar 2019 14:21:06 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.