PHP Class Aimeos\ShopBundle\Controller\JqadmController

Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
Show file Open project: aimeos/aimeos-symfony2

Public Methods

Method Description
copyAction ( Request $request, string $resource, string $site = 'default' ) : Response Returns the HTML code for a copy of a resource object
createAction ( Request $request, string $resource, string $site = 'default' ) : Response Returns the HTML code for a new resource object
deleteAction ( Request $request, string $resource, string $site = 'default' ) : Response Deletes the resource object or a list of resource objects
fileAction ( $type ) : Response Returns the JS file content
getAction ( Request $request, string $resource, string $site = 'default' ) : Response Returns the HTML code for the requested resource object
saveAction ( Request $request, string $resource, string $site = 'default' ) : Response Saves a new resource object
searchAction ( Request $request, string $resource, string $site = 'default' ) : Response Returns the HTML code for a list of resource objects

Protected Methods

Method Description
createClient ( Request $request, string $site, string $resource ) : Aimeos\Admin\JQAdm\Iface Returns the resource controller
getHtml ( string $content ) : Response Returns the generated HTML code

Method Details

copyAction() public method

Returns the HTML code for a copy of a resource object
public copyAction ( Request $request, string $resource, string $site = 'default' ) : Response
$request Symfony\Component\HttpFoundation\Request Symfony request object
$resource string Resource location, e.g. "product"
$site string Unique site code
return Symfony\Component\HttpFoundation\Response Generated output

createAction() public method

Returns the HTML code for a new resource object
public createAction ( Request $request, string $resource, string $site = 'default' ) : Response
$request Symfony\Component\HttpFoundation\Request Symfony request object
$resource string Resource location, e.g. "product"
$site string Unique site code
return Symfony\Component\HttpFoundation\Response Generated output

createClient() protected method

Returns the resource controller
protected createClient ( Request $request, string $site, string $resource ) : Aimeos\Admin\JQAdm\Iface
$request Symfony\Component\HttpFoundation\Request Symfony request object
$site string Unique site code
$resource string Resource location, e.g. "product"
return Aimeos\Admin\JQAdm\Iface Context item

deleteAction() public method

Deletes the resource object or a list of resource objects
public deleteAction ( Request $request, string $resource, string $site = 'default' ) : Response
$request Symfony\Component\HttpFoundation\Request Symfony request object
$resource string Resource location, e.g. "product"
$site string Unique site code
return Symfony\Component\HttpFoundation\Response Generated output

fileAction() public method

Returns the JS file content
public fileAction ( $type ) : Response
$type File type, i.e. "css" or "js"
return Symfony\Component\HttpFoundation\Response Response object

getAction() public method

Returns the HTML code for the requested resource object
public getAction ( Request $request, string $resource, string $site = 'default' ) : Response
$request Symfony\Component\HttpFoundation\Request Symfony request object
$resource string Resource location, e.g. "product"
$site string Unique site code
return Symfony\Component\HttpFoundation\Response Generated output

getHtml() protected method

Returns the generated HTML code
protected getHtml ( string $content ) : Response
$content string Content from admin client
return Symfony\Component\HttpFoundation\Response View for rendering the output

saveAction() public method

Saves a new resource object
public saveAction ( Request $request, string $resource, string $site = 'default' ) : Response
$request Symfony\Component\HttpFoundation\Request Symfony request object
$resource string Resource location, e.g. "product"
$site string Unique site code
return Symfony\Component\HttpFoundation\Response Generated output

searchAction() public method

Returns the HTML code for a list of resource objects
public searchAction ( Request $request, string $resource, string $site = 'default' ) : Response
$request Symfony\Component\HttpFoundation\Request Symfony request object
$resource string Resource location, e.g. "product"
$site string Unique site code
return Symfony\Component\HttpFoundation\Response Generated output