Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($fieldName, $filename, $contentType=null, $postname=null) | |
getContentType () | |
getCurlString () | |
getCurlValue () | |
getFieldName () | |
getFilename () | |
getPostname () | |
setContentType ($type) | |
setFieldName ($name) | |
setFilename ($filename) | |
setPostname ($postname) | |
Protected Member Functions | |
guessContentType () | |
Protected Attributes | |
$contentType | |
$fieldName | |
$filename | |
$postname | |
POST file upload
Definition at line 12 of file PostFile.php.
Guzzle\Http\Message\PostFile::__construct | ( | $fieldName, | |
$filename, | |||
$contentType = null , |
|||
$postname = null |
|||
) |
string | $fieldName | Name of the field |
string | $filename | Local path to the file |
string | $postname | Remote post file name |
string | $contentType | Content-Type of the upload |
Definition at line 25 of file PostFile.php.
References Guzzle\Http\Message\PostFile\$contentType, Guzzle\Http\Message\PostFile\$fieldName, Guzzle\Http\Message\PostFile\$filename, Guzzle\Http\Message\PostFile\$postname, Guzzle\Http\Message\PostFile\guessContentType(), and Guzzle\Http\Message\PostFile\setFilename().
Guzzle\Http\Message\PostFile::getContentType | ( | ) |
Get the Content-Type of the file
Implements Guzzle\Http\Message\PostFileInterface.
Definition at line 85 of file PostFile.php.
References Guzzle\Http\Message\PostFile\$contentType.
Guzzle\Http\Message\PostFile::getCurlString | ( | ) |
Definition at line 111 of file PostFile.php.
References Guzzle\Http\Message\PostFile\getCurlValue(), and Guzzle\Common\Version\warn().
Guzzle\Http\Message\PostFile::getCurlValue | ( | ) |
Get a cURL ready string or CurlFile object for the upload
Implements Guzzle\Http\Message\PostFileInterface.
Definition at line 90 of file PostFile.php.
References Guzzle\Http\Message\PostFile\$contentType, and Guzzle\Http\Message\PostFile\$postname.
Referenced by Guzzle\Http\Message\PostFile\getCurlString().
Guzzle\Http\Message\PostFile::getFieldName | ( | ) |
Get the name of the field
Implements Guzzle\Http\Message\PostFileInterface.
Definition at line 40 of file PostFile.php.
References Guzzle\Http\Message\PostFile\$fieldName.
Guzzle\Http\Message\PostFile::getFilename | ( | ) |
Get the full path to the file
Implements Guzzle\Http\Message\PostFileInterface.
Definition at line 68 of file PostFile.php.
References Guzzle\Http\Message\PostFile\$filename.
Guzzle\Http\Message\PostFile::getPostname | ( | ) |
Get the post name of the file
Implements Guzzle\Http\Message\PostFileInterface.
Definition at line 73 of file PostFile.php.
References Guzzle\Http\Message\PostFile\$postname.
|
protected |
Determine the Content-Type of the file
Definition at line 120 of file PostFile.php.
References Guzzle\Http\Mimetypes\getInstance().
Referenced by Guzzle\Http\Message\PostFile\__construct().
Guzzle\Http\Message\PostFile::setContentType | ( | $type | ) |
Set the Content-Type of the file
string | $type | Content type |
Implements Guzzle\Http\Message\PostFileInterface.
Definition at line 78 of file PostFile.php.
Guzzle\Http\Message\PostFile::setFieldName | ( | $name | ) |
Set the name of the field
string | $name | Field name |
Implements Guzzle\Http\Message\PostFileInterface.
Definition at line 33 of file PostFile.php.
Guzzle\Http\Message\PostFile::setFilename | ( | $path | ) |
Set the path to the file
string | $path | Full path to the file |
InvalidArgumentException | if the file cannot be read |
Implements Guzzle\Http\Message\PostFileInterface.
Definition at line 45 of file PostFile.php.
References Guzzle\Http\Message\PostFile\$filename.
Referenced by Guzzle\Http\Message\PostFile\__construct().
Guzzle\Http\Message\PostFile::setPostname | ( | $name | ) |
Set the post name of the file
string | $name | The new name of the file |
Implements Guzzle\Http\Message\PostFileInterface.
Definition at line 61 of file PostFile.php.
References Guzzle\Http\Message\PostFile\$postname.
|
protected |
Definition at line 15 of file PostFile.php.
Referenced by Guzzle\Http\Message\PostFile\__construct(), Guzzle\Http\Message\PostFile\getContentType(), and Guzzle\Http\Message\PostFile\getCurlValue().
|
protected |
Definition at line 14 of file PostFile.php.
Referenced by Guzzle\Http\Message\PostFile\__construct(), and Guzzle\Http\Message\PostFile\getFieldName().
|
protected |
Definition at line 16 of file PostFile.php.
Referenced by Guzzle\Http\Message\PostFile\__construct(), Guzzle\Http\Message\PostFile\getFilename(), and Guzzle\Http\Message\PostFile\setFilename().
|
protected |
Definition at line 17 of file PostFile.php.
Referenced by Guzzle\Http\Message\PostFile\__construct(), Guzzle\Http\Message\PostFile\getCurlValue(), Guzzle\Http\Message\PostFile\getPostname(), and Guzzle\Http\Message\PostFile\setPostname().