Class shardimage\shardimagephp\services\UrlService
Inheritance | shardimage\shardimagephp\services\UrlService » shardimage\shardimagephp\services\Service » shardimage\shardimagephpapi\base\BaseObject |
---|
Shardimage URL generator 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
Creates the URL for an internal image.
public string create ( $params, $optParams = [] ) | ||
$params | array|string | Required API parameters |
$optParams | array | Optional API parameters
|
Creates the URL for a Cloudinary image.
public string createCloudinary ( $params, $optParams = [] ) | ||
$params | array | Required API parameters |
$optParams | array | Optional API parameters
|
Creates the URL for a Facebook profile picture.
public string createFacebook ( $params, $optParams = [] ) | ||
$params | array|string | Required API parameters |
$optParams | array | Optional API parameters
|
Creates the URL for a remote image.
public string createRemote ( $params, $optParams = [] ) | ||
$params | array|string | Required API parameters |
$optParams | array | Optional API parameters
|
Creates the URL for a Twitter profile picture.
public string createTwitter ( $params, $optParams = [] ) | ||
$params | array|string | Required API parameters |
$optParams | array | Optional API parameters
|
Creates the URL for a Wikimedia commons image.
public string createWikimedia ( $params, $optParams = [] ) | ||
$params | array|string | Required API parameters |
$optParams | array | Optional API parameters
|
Creates the URL for a YouTube video preview image.
public string createYoutube ( $params, $optParams = [] ) | ||
$params | array|string | Required API parameters |
$optParams | array | Optional API parameters
|
Shardimage controller
public static void getController ( ) |
Shardimage module
public static void getModule ( ) |