EC-CUBE4 APIドキュメント

PluginApiService

Table of Contents

$apiUrl Url for Api string
$eccubeConfig EccubeConfig
$requestStack RequestStack
$baseInfoRepository BaseInfoRepository
$pluginRepository PluginRepository
__construct() PluginApiService constructor. mixed
getApiUrl() mixed
setApiUrl() mixed
getCategory() Get master data: category array
getPlugins() Get plugins list array
getPurchased() Get purchased plugins list array
getRecommended() Get recommended plugins list mixed
buildPlugins() mixed
isUpdate() Is update bool
getPlugin() Get a plugin array
pluginInstalled() mixed
pluginEnabled() mixed
pluginDisabled() mixed
pluginUninstalled() mixed
updatePluginStatus() mixed
requestApi() API request processing array
buildInfo() Get plugin information array
supportedVersion() Check support version mixed

Properties

Methods

setApiUrl()

public setApiUrl( $apiUrl : mixed ) : mixed
Parameters
$apiUrl : mixed
Return values
mixed

getCategory()

Get master data: category

public getCategory( ) : array
Return values
array

buildPlugins()

private buildPlugins( &$plugins : mixed ) : mixed
Parameters
$plugins : mixed
Return values
mixed

isUpdate()

Is update

private isUpdate( $pluginVersion : string , $remoteVersion : string ) : bool
Parameters
$pluginVersion : string
$remoteVersion : string
Return values
bool

getPlugin()

Get a plugin

public getPlugin( $id : int|string ) : array
Parameters
$id : int|string

Id or plugin code

Tags
throws
PluginApiException
Return values
array

updatePluginStatus()

private updatePluginStatus( $url : mixed , $Plugin : Plugin ) : mixed
Parameters
$url : mixed
$Plugin : Plugin
Return values
mixed

requestApi()

API request processing

public requestApi( $url : string [, $data : array = [] ] [, $post : mixed = false ] ) : array
Parameters
$url : string
$data : array = []
$post : mixed = false
Tags
throws
PluginApiException
Return values
array

buildInfo()

Get plugin information

public buildInfo( &$plugin : array ) : array
Parameters
$plugin : array
Return values
array

supportedVersion()

Check support version

public supportedVersion( &$plugin : ) : mixed
Parameters
$plugin :
Return values
mixed

Search results