Stud.IP  6.0
AbstractEntriesCreate Class Reference
Inheritance diagram for AbstractEntriesCreate:
JsonApiController ForumCategoryEntriesCreate ForumEntryEntriesCreate

Protected Member Functions

 validateResourceDocument ($json, $data)
 
 createEntryFromJSON ($user, $parentId, $json)
 
 getParentObject ($parentId)
 
 createEntry ($title, $content, $parent, $user)
 
- 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

- Public Member Functions inherited from JsonApiController
 __construct (protected \Slim\App $app, protected ContainerInterface $container, protected FactoryInterface $factory, protected EncoderInterface $encoder, protected SchemaContainerInterface $schemaContainer, protected QueryParserInterface $queryParser, protected ResponseFactoryInterface $responseFactory, HeaderParametersParserInterface $headerParametersParser)
 
 getUser (Request $request)
 
- Protected Attributes inherited from JsonApiController
 $allowUnrecognizedParams = false
 
 $allowedIncludePaths = []
 
 $allowedFieldSetTypes = null
 
 $allowedSortFields = []
 
 $allowedPagingParameters = []
 
 $allowedFilteringParameters = []
 

Member Function Documentation

◆ createEntry()

createEntry (   $title,
  $content,
  $parent,
  $user 
)
protected

◆ createEntryFromJSON()

createEntryFromJSON (   $user,
  $parentId,
  $json 
)
protected

◆ getParentObject()

getParentObject (   $parentId)
protected

◆ validateResourceDocument()

validateResourceDocument (   $json,
  $data 
)
protected

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