Class shardimage\shardimagephp\services\ImageService
Inheritance | shardimage\shardimagephp\services\ImageService » shardimage\shardimagephp\services\Service » shardimage\shardimagephpapi\base\BaseObject |
---|
Shardimage image 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
Deletes an image.
public boolean delete ( $params, $optParams = [] ) | ||
$params | array | Required API parameters |
$optParams | array | Optional API parameters |
Deletes images by tag.
public shardimage\shardimagephp\models\job\Job|shardimage\shardimagephpapi\api\Response deleteByTag ( $params, $optParams = [] ) | ||
$params | array | Required API parameters |
$optParams | array | Optional API parameters |
Returns whether an image exists.
public boolean exists ( $params, $optParams = [] ) | ||
$params | array | Required API parameters |
$optParams | array | Optional API parameters |
Shardimage controller
public static void getController ( ) |
Shardimage module
public static void getModule ( ) |
Fetches all images.
public shardimage\shardimagephp\models\image\Index index ( $params = [], $optParams = [] ) | ||
$params | array | Required API parameters |
$optParams | shardimage\shardimagephp\models\image\IndexParams|array | Optional API parameters |
Renames the ID of an image.
public shardimage\shardimagephp\models\image\Image|shardimage\shardimagephpapi\api\Response rename ( $params, $optParams = [] ) | ||
$params | array | Required API parameters |
$optParams | array | Optional API parameters |
Fetches an image.
public shardimage\shardimagephp\models\image\Image|shardimage\shardimagephpapi\api\Response view ( $params, $optParams = [] ) | ||
$params | array | Required API parameters |
$optParams | \shardimage\shardimagephp\services\ImageViewParams|array | Optional API parameters |