Stud.IP  4.0
 All Data Structures Namespaces Files Functions Variables Groups
CommentCreate Class Reference
Inheritance diagram for CommentCreate:
JsonApiController

Public Member Functions

 __invoke (Request $request, Response $response, $args)
 
- Public Member Functions inherited from JsonApiController
 __construct (\Slim\App $app, ContainerInterface $container, FactoryInterface $factory, EncoderInterface $encoder, SchemaContainerInterface $schemaContainer, QueryParserInterface $queryParser, HeaderParametersParserInterface $headerParametersParser)
 
 getUser (Request $request)
 

Protected Member Functions

 validateResourceDocument ($json, $data)
 
 createCommentFromJSON ($user,\StudipNews $news, array $json)
 
 createComment ($user,\StudipNews $news, $content)
 
- Protected Member Functions inherited from JsonApiController
 getCodeResponse (int $statusCode, array $headers=[])
 
 getMetaResponse ($meta, $statusCode=ResponsesInterface::HTTP_OK, array $headers=[])
 
 getContentResponse ($data, $statusCode=ResponsesInterface::HTTP_OK, $links=[], $meta=[], array $headers=[])
 
 getIdentifiersResponse ($data, $links=[], $meta=[], array $headers=[])
 
 getPaginatedIdentifiersResponse ($data, $total, $links=[], $meta=[], array $headers=[])
 
 getCreatedResponse ($resource, $links=[], $meta=[], array $headers=[])
 
 getPaginatedContentResponse ($data, $total, $statusCode=ResponsesInterface::HTTP_OK, $links=[], $meta=[], array $headers=[])
 
 getQueryParameters ()
 
 getOffsetAndLimit ($offsetDefault=0, $limitDefault=30)
 
 getSchema ($resource)
 
 getResponses (array $links=[], array $meta=[])
 

Additional Inherited Members

- Protected Attributes inherited from JsonApiController
 $app
 
 $container
 
 $factory
 
 $encoder
 
 $schemaContainer
 
 $queryParser
 
 $allowUnrecognizedParams = false
 
 $allowedIncludePaths = []
 
 $allowedFieldSetTypes = null
 
 $allowedSortFields = []
 
 $allowedPagingParameters = []
 
 $allowedFilteringParameters = []
 

Member Function Documentation

__invoke ( Request  $request,
Response  $response,
  $args 
)
createComment (   $user,
\StudipNews  $news,
  $content 
)
protected
createCommentFromJSON (   $user,
\StudipNews  $news,
array  $json 
)
protected
validateResourceDocument (   $json,
  $data 
)
protected

The documentation for this class was generated from the following file: