COAR Notify
 
Loading...
Searching...
No Matches
coarnotify\patterns\announce_endorsement\AnnounceEndorsementItem Class Reference
Inheritance diagram for coarnotify\patterns\announce_endorsement\AnnounceEndorsementItem:
coarnotify\core\notify\NotifyItem coarnotify\core\notify\NotifyPatternPart coarnotify\core\notify\NotifyBase

Public Member Functions

 validate ()
 
- Public Member Functions inherited from coarnotify\core\notify\NotifyItem
 getMediaType ()
 
 setMediaType (string $value)
 
- Public Member Functions inherited from coarnotify\core\notify\NotifyPatternPart
 __construct ($stream=null, $validate_stream_on_construct=true, $validate_properties=true, $validators=null, $validation_context=null)
 
 setType ($types)
 
- Public Member Functions inherited from coarnotify\core\notify\NotifyBase
 getValidateProperties ()
 
 getValidateStreamOnConstruct ()
 
 getValidators ()
 
 getDoc ()
 
 getId ()
 
 setId ($value)
 
 getType ()
 
 getProperty ($prop_name)
 
 setProperty ($prop_name, $value)
 
 validateProperty ($prop_name, $value, $force_validate=false, $raise_error=true)
 
 toJSONLD ()
 

Additional Inherited Members

- Public Attributes inherited from coarnotify\core\notify\NotifyPatternPart
const DEFAULT_TYPE = null
 
const ALLOWED_TYPES = []
 
- Protected Member Functions inherited from coarnotify\core\notify\NotifyBase
 _registerPropertyValidationError (ValidationError $ve, $prop_name, $value)
 
 required (ValidationError $ve, $prop_name, $value)
 
 requiredAndValidate (ValidationError $ve, $prop_name, $value)
 
 optionalAndValidate (ValidationError $ve, $prop_name, $value)
 
- Static Protected Member Functions inherited from coarnotify\core\notify\NotifyBase
static deepCopy ($array)
 
- Protected Attributes inherited from coarnotify\core\notify\NotifyBase
 $validateStreamOnConstruct
 
 $validateProperties
 
 $validators
 
 $validationContext
 
 $stream
 

Detailed Description

Announce Endorsement Item, which extends the base NotifyItem to provide additional validation

Member Function Documentation

◆ validate()

coarnotify\patterns\announce_endorsement\AnnounceEndorsementItem::validate ( )

Extends the base validation with validation custom to Announce Endorsement notifications

  • Adds type validation, which the base NotifyItem does not apply
  • Requires the mediaType value
Returns
bool
Exceptions
ValidationError

coarnotify\exceptions\ValueError

Reimplemented from coarnotify\core\notify\NotifyItem.


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