PHP Class Aimeos\ShopBundle\Controller\JsonadmController

Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
ファイルを表示 Open project: aimeos/aimeos-symfony2

Public Methods

Method Description
deleteAction ( Request $request, $resource, string $site = 'default' ) : Response Deletes the resource object or a list of resource objects
getAction ( Request $request, $resource, string $site = 'default' ) : Response Returns the requested resource object or list of resource objects
optionsAction ( Request $request, $resource = '', string $site = 'default' ) : Response Returns the available HTTP verbs and the resource URLs
patchAction ( Request $request, $resource, string $site = 'default' ) : Response Updates a resource object or a list of resource objects
postAction ( Request $request, $resource, string $site = 'default' ) : Response Creates a new resource object or a list of resource objects
putAction ( Request $request, $resource, string $site = 'default' ) : Response Creates or updates a single resource object

Protected Methods

Method Description
createClient ( string $site, $resource, string $lang ) : Aimeos\MShop\Context\Item\Iface Returns the resource controller
createResponse ( string $content, integer $status, array $header ) : Response Creates a new response object

Method Details

createClient() protected method

Returns the resource controller
protected createClient ( string $site, $resource, string $lang ) : Aimeos\MShop\Context\Item\Iface
$site string Unique site code
$lang string Language code
return Aimeos\MShop\Context\Item\Iface Context item

createResponse() protected method

Creates a new response object
protected createResponse ( string $content, integer $status, array $header ) : Response
$content string Body of the HTTP response
$status integer HTTP status
$header array List of HTTP headers
return Symfony\Component\HttpFoundation\Response HTTP response object

deleteAction() public method

Deletes the resource object or a list of resource objects
public deleteAction ( Request $request, $resource, string $site = 'default' ) : Response
$request Symfony\Component\HttpFoundation\Request Request object
$site string Unique site code
return Symfony\Component\HttpFoundation\Response Response object containing the generated output

getAction() public method

Returns the requested resource object or list of resource objects
public getAction ( Request $request, $resource, string $site = 'default' ) : Response
$request Symfony\Component\HttpFoundation\Request Request object
$site string Unique site code
return Symfony\Component\HttpFoundation\Response Response object containing the generated output

optionsAction() public method

Returns the available HTTP verbs and the resource URLs
public optionsAction ( Request $request, $resource = '', string $site = 'default' ) : Response
$request Symfony\Component\HttpFoundation\Request Request object
$site string Unique site code
return Symfony\Component\HttpFoundation\Response Response object containing the generated output

patchAction() public method

Updates a resource object or a list of resource objects
public patchAction ( Request $request, $resource, string $site = 'default' ) : Response
$request Symfony\Component\HttpFoundation\Request Request object
$site string Unique site code
return Symfony\Component\HttpFoundation\Response Response object containing the generated output

postAction() public method

Creates a new resource object or a list of resource objects
public postAction ( Request $request, $resource, string $site = 'default' ) : Response
$request Symfony\Component\HttpFoundation\Request Request object
$site string Unique site code
return Symfony\Component\HttpFoundation\Response Response object containing the generated output

putAction() public method

Creates or updates a single resource object
public putAction ( Request $request, $resource, string $site = 'default' ) : Response
$request Symfony\Component\HttpFoundation\Request Request object
$site string Unique site code
return Symfony\Component\HttpFoundation\Response Response object containing the generated output