Stud.IP  5.4
StudipNews Class Reference
Inheritance diagram for StudipNews:
SchemaProvider

Public Member Functions

 getId ($news)
 
 getAttributes ($news, ContextInterface $context)
 
 getRelationships ($news, ContextInterface $context)
 
- Public Member Functions inherited from SchemaProvider
 __construct (FactoryInterface $factory, SchemaContainerInterface $schemaContainer, ?\User $user)
 
 getType ()
 
 isAddSelfLinkInRelationshipByDefault (string $relationshipName)
 
 isAddRelatedLinkInRelationshipByDefault (string $relationshipName)
 
 createLinkToResource ($resource)
 
 shouldInclude (ContextInterface $context, string $key)
 
 getAllowedAncludePaths (ContextInterface $context)
 

Static Public Member Functions

static getRangeClasses ()
 
static getRangeTypes ()
 

Data Fields

const TYPE = 'news'
 
const REL_AUTHOR = 'author'
 
const REL_COMMENTS = 'comments'
 
const REL_RANGES = 'ranges'
 
- Data Fields inherited from SchemaProvider
const TYPE = ''
 

Additional Inherited Members

- Protected Attributes inherited from SchemaProvider
 $schemaContainer
 
 $currentUser
 

Member Function Documentation

◆ getAttributes()

getAttributes (   $news,
ContextInterface  $context 
)

◆ getId()

getId (   $news)

◆ getRangeClasses()

static getRangeClasses ( )
static

◆ getRangeTypes()

static getRangeTypes ( )
static

◆ getRelationships()

getRelationships (   $news,
ContextInterface  $context 
)

(PHPMD.UnusedFormalParameter)

Field Documentation

◆ REL_AUTHOR

const REL_AUTHOR = 'author'

◆ REL_COMMENTS

const REL_COMMENTS = 'comments'

◆ REL_RANGES

const REL_RANGES = 'ranges'

◆ TYPE

const TYPE = 'news'

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