MIME_Type |
![]() |
[ class tree: MIME_Type ] [ index: MIME_Type ] [ all elements ] |
![]() |
Packages: MIME_Type Classes: Files: |
[ Top ] Method Detail__construct (Constructor) [line 118]
Constructor. If $type is set, if will be parsed and the appropriate class vars set. If not, you get an empty class. This is useful, but not quite as useful as parsing a type.
Parameters:
[ Top ]
addParameter [line 448]
Add a parameter to this type
Parameters:
[ Top ]
get [line 343]
Create a textual MIME type from object values This function performs the opposite function of parse().
[ Top ]
getMedia [line 311]
Get a MIME type's media Note: 'media' refers to the portion before the first slash
Parameters:
[ Top ]
getParameters [line 218]
Get a MIME type's parameters
Parameters:
[ Top ]
getSubType [line 325]
Get a MIME type's subtype
Parameters:
[ Top ]
hasParameters [line 202]
Does this type have any parameters?
Parameters:
[ Top ]
isExperimental [line 365]
Is this type experimental? Note: Experimental types are denoted by a leading 'x-' in the media or subtype, e.g. text/x-vcard or x-world/x-vrml.
Parameters:
[ Top ]
isVendor [line 385]
Is this a vendor MIME type? Note: Vendor types are denoted with a leading 'vnd. in the subtype.
Parameters:
[ Top ]
isWildcard [line 401]
Is this a wildcard type?
Parameters:
[ Top ]
parse [line 174]
Parse a mime-type and set the class variables.
Parameters:
[ Top ]
removeParameter [line 466]
Remove a parameter from this type
Parameters:
[ Top ]
stripComments [line 254]
Removes comments from a media type, subtype or parameter.
Parameters:
[ Top ]
stripParameters [line 236]
Strip parameters from a MIME type string.
Parameters:
[ Top ]
wildcardMatch [line 421]
Perform a wildcard match on a MIME type Example: MIME_Type::wildcardMatch('image/*', 'image/png')
Parameters:
[ Top ]
_autoDetect [line 487]
Autodetect a file's MIME-type
Parameters:
[ Top ]
_fileAutoDetect [line 574]
Autodetect a file's MIME-type with 'file' and System_Command
Parameters:
[ Top ]
_handleDetection [line 544]
Handles a detected MIME type and modifies it if necessary.
Parameters:
[ Top ]
__call [line 133]
Make "autoDetect" method available.
Parameters:
[ Top ]
__callStatic [line 154]
Make "autoDetect" method available statically.
Parameters:
[ Top ]
Documentation generated on Mon, 11 Mar 2019 16:03:55 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004. |