PHP Class Jarves\Controller\ObjectCrudController

Inheritance: extends Jarves\Admin\ObjectCrud
Exibir arquivo Open project: jarves/jarves

Public Methods

Method Description
addItemAction ( Request $request, FOS\RestBundle\Request\ParamFetcher $paramFetcher ) : mixed
addMultipleItemAction ( Request $request ) : mixed
getCountAction ( array $filter = null, string $q = null ) : integer
getInfoAction ( ) : array
getItemAction ( Request $request, string $fields = null, boolean $withAcl = null ) : array
getItemPositionAction ( Request $request ) : array
getItemsAction ( FOS\RestBundle\Request\ParamFetcher $paramFetcher ) : mixed
getObject ( )
getVersionAction ( $pk, $id ) }
getVersionsAction ( $pk )
patchItemAction ( Request $request ) : mixed
removeItemAction ( Request $request ) : boolean
removeMultipleAction ( Request $request ) : boolean
updateItemAction ( Request $request ) : mixed

Protected Methods

Method Description
detectObjectKeyFromRoute ( ) : string When ObjectCrudController is without custom sub class used, then we need to get the object information from the route, defined in Jarves\Router\RestApiLoader
extractPrimaryKey ( Request $request ) : array

Method Details

addItemAction() public method

public addItemAction ( Request $request, FOS\RestBundle\Request\ParamFetcher $paramFetcher ) : mixed
$request Symfony\Component\HttpFoundation\Request
$paramFetcher FOS\RestBundle\Request\ParamFetcher
return mixed

addMultipleItemAction() public method

public addMultipleItemAction ( Request $request ) : mixed
$request Symfony\Component\HttpFoundation\Request
return mixed

detectObjectKeyFromRoute() protected method

When ObjectCrudController is without custom sub class used, then we need to get the object information from the route, defined in Jarves\Router\RestApiLoader
protected detectObjectKeyFromRoute ( ) : string
return string

extractPrimaryKey() protected method

protected extractPrimaryKey ( Request $request ) : array
$request Symfony\Component\HttpFoundation\Request
return array

getCountAction() public method

public getCountAction ( array $filter = null, string $q = null ) : integer
$filter array
$q string
return integer

getInfoAction() public method

public getInfoAction ( ) : array
return array

getItemAction() public method

public getItemAction ( Request $request, string $fields = null, boolean $withAcl = null ) : array
$request Symfony\Component\HttpFoundation\Request
$fields string
$withAcl boolean
return array

getItemPositionAction() public method

public getItemPositionAction ( Request $request ) : array
$request Symfony\Component\HttpFoundation\Request
return array

getItemsAction() public method

public getItemsAction ( FOS\RestBundle\Request\ParamFetcher $paramFetcher ) : mixed
$paramFetcher FOS\RestBundle\Request\ParamFetcher
return mixed

getObject() public method

public getObject ( )

getVersionAction() public method

}
public getVersionAction ( $pk, $id )

getVersionsAction() public method

public getVersionsAction ( $pk )

patchItemAction() public method

public patchItemAction ( Request $request ) : mixed
$request Symfony\Component\HttpFoundation\Request
return mixed

removeItemAction() public method

public removeItemAction ( Request $request ) : boolean
$request Symfony\Component\HttpFoundation\Request
return boolean

removeMultipleAction() public method

public removeMultipleAction ( Request $request ) : boolean
$request Symfony\Component\HttpFoundation\Request
return boolean

updateItemAction() public method

public updateItemAction ( Request $request ) : mixed
$request Symfony\Component\HttpFoundation\Request
return mixed