Class SimpleAttachment

Description

Single post parameter.

Located in /encoding.php (line 89)


	
			
Method Summary
 SimpleAttachment __construct (string $key, string $content, hash $filename)
 string asMime ()
 string asRequest ()
 string deduceMimeType ()
 string getKey ()
 string getValue ()
 boolean isKey (string $key)
 void isOnlyAscii (string $ascii)
Methods
Constructor __construct (line 100)

Stashes the data for rendering later.

SimpleAttachment __construct (string $key, string $content, hash $filename)
  • string $key: Key to add value to.
  • string $content: Raw data.
  • hash $filename: Original filename.
asMime (line 120)

The MIME part as a string.

  • return: MIME part encoding.
  • access: public
string asMime ()
asRequest (line 111)

The pair as a single string.

  • return: Encoded pair.
  • access: public
string asRequest ()
deduceMimeType (line 135)

Attempts to figure out the MIME type from the file extension and the content.

  • return: MIME type.
  • access: protected
string deduceMimeType ()
getKey (line 171)

Is this the value we are looking for?

  • return: Identifier.
  • access: public
string getKey ()
getValue (line 180)

Is this the value we are looking for?

  • return: Content.
  • access: public
string getValue ()
isKey (line 162)

Is this the value we are looking for?

  • return: True if matched.
  • access: public
boolean isKey (string $key)
  • string $key: Identifier.
isOnlyAscii (line 147)

Tests each character is in the range 0-127.

  • access: protected
void isOnlyAscii (string $ascii)
  • string $ascii: String to test.

Documentation generated on Sun, 31 Oct 2010 16:31:19 -0500 by phpDocumentor 1.4.3