Property | Type | Description | |
---|---|---|---|
$_client |
Method | Description | |
---|---|---|
__construct ( $attributes = [], ClientInterface $client = null ) | ||
exists ( ) : Bool | Always will return true, since it is too expensive to fetch a remote file | |
getContents ( ) : String | Get the contents of the remote asset. | |
getFilenameUrlWithProtocol ( ) : String | Returns the filename URL with a valid protocol | |
getLastTimeModified ( ) : craft\DateTime | Return a very old DateTime, since it is too expensive to fetch a remote file's headers | |
setAttribute ( String $name, Mixed $value ) | Attribute mutators |
Method | Description | |
---|---|---|
_getInstanceOfClient ( ) | Either create a fresh instance of Guzzle\Http\Client, or pass the instance we were given during instantiation. | |
_sendClientRequest ( ) | Prepare & return response from sending a client request |
public __construct ( $attributes = [], ClientInterface $client = null ) | ||
$client | ClientInterface |
protected _getInstanceOfClient ( ) |
protected _sendClientRequest ( ) |
public exists ( ) : Bool | ||
return | Bool |
public getContents ( ) : String | ||
return | String |
public getFilenameUrlWithProtocol ( ) : String | ||
return | String |
public getLastTimeModified ( ) : craft\DateTime | ||
return | craft\DateTime |
public setAttribute ( String $name, Mixed $value ) | ||
$name | String | |
$value | Mixed |