Class shardimage\shardimagephp\services\UploadService
Inheritance | shardimage\shardimagephp\services\UploadService » shardimage\shardimagephp\services\Service » shardimage\shardimagephpapi\base\BaseObject |
---|
Shardimage upload service.
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$client | shardimage\shardimagephp\auth\Client | Shardimage API Client | shardimage\shardimagephp\services\Service |
$lastError | mixed | Last error in the service | shardimage\shardimagephp\services\Service |
$version | string | Shardimage module version | shardimage\shardimagephp\services\Service |
Public Methods
Protected Methods
Method | Description | Defined By |
---|---|---|
ensureClass() | Creates an object from the given parameters. | shardimage\shardimagephpapi\base\BaseObject |
init() | Custom initialization. | shardimage\shardimagephpapi\base\BaseObject |
sendRequest() | Sends the request to the Shardimage API and returns with the Response object or the ID for the request if deferred. | shardimage\shardimagephp\services\Service |
Method Details
Makes a copy of an image.
public shardimage\shardimagephp\models\image\Image|shardimage\shardimagephpapi\api\Response copy ( $params, $optParams = [] ) | ||
$params | array | Required API parameters |
$optParams | array | Optional API parameters |
public static void getController ( ) |
public static void getModule ( ) |
Modifies an image by changing storage format and/or transformations.
public shardimage\shardimagephp\models\image\Image|shardimage\shardimagephpapi\api\Response modify ( $params, $optParams = [] ) | ||
$params | array|string | Required API parameters |
$optParams | array | Optional API parameters |
Uploads an image from a local source.
public shardimage\shardimagephp\models\image\Image|shardimage\shardimagephpapi\api\Response upload ( $params, $optParams = [] ) | ||
$params | array|string|resource | Required API parameters |
$optParams | array | Optional API parameters |
Uploads an image from a remote source.
public shardimage\shardimagephp\models\image\Image|shardimage\shardimagephpapi\api\Response uploadRemote ( $params, $optParams = [] ) | ||
$params | array|string | Required API parameters |
$optParams | array | Optional API parameters |