Метод | Описание | |
---|---|---|
deleteSubjectAction ( $id ) : Response | ||
getSubjectAction ( integer $id ) : array | Get single Subject. | |
getSubjectsAction ( |
List all Subjects. | |
newSubjectAction ( ) : Symfony\Component\Form\FormTypeInterface | Presents the form to use to create a new Subject. | |
patchSubjectAction ( |
Update existing subject from the submitted data or create a new subject at a specific location. | |
postSubjectAction ( |
Create a Subject from the submitted data. | |
putSubjectAction ( |
Update existing Subject from the submitted data or create a new Subject at a specific location. |
Метод | Описание | |
---|---|---|
getOr404 ( mixed $id ) : |
Fetch a Subject or throw an 404 Exception. |
public deleteSubjectAction ( $id ) : Response | ||
$id | ||
Результат | Response |
public getSubjectAction ( integer $id ) : array | ||
$id | integer | the Subject id |
Результат | array |
public getSubjectsAction ( |
||
$request | the request object | |
$paramFetcher | FOS\RestBundle\Request\ParamFetcherInterface | param fetcher service |
Результат | array |
public newSubjectAction ( ) : Symfony\Component\Form\FormTypeInterface | ||
Результат | Symfony\Component\Form\FormTypeInterface |
public patchSubjectAction ( |
||
$request | the request object | |
$id | integer | the subject id |
Результат | Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View |
public postSubjectAction ( |
||
$request | the request object | |
Результат | Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View |
public putSubjectAction ( |
||
$request | the request object | |
$id | integer | the Subject id |
Результат | Symfony\Component\Form\FormTypeInterface | FOS\RestBundle\Controller\Annotations\View |