COAR Notify
 
Loading...
Searching...
No Matches
coarnotify\core\notify\NotifyPatternPart Class Reference
Inheritance diagram for coarnotify\core\notify\NotifyPatternPart:
coarnotify\core\notify\NotifyBase coarnotify\core\notify\NotifyActor coarnotify\core\notify\NotifyItem coarnotify\core\notify\NotifyObject coarnotify\core\notify\NotifyService coarnotify\patterns\announce_endorsement\AnnounceEndorsementItem coarnotify\patterns\announce_review\AnnounceReviewItem coarnotify\patterns\announce_service_result\AnnounceServiceResultItem coarnotify\patterns\request_endorsement\RequestEndorsementItem coarnotify\patterns\request_review\RequestReviewItem coarnotify\patterns\announce_endorsement\AnnounceEndorsementContext coarnotify\patterns\announce_relationship\AnnounceRelationshipObject coarnotify\patterns\announce_review\AnnounceReviewContext coarnotify\patterns\announce_review\AnnounceReviewObject coarnotify\patterns\announce_service_result\AnnounceServiceResultContext coarnotify\patterns\announce_service_result\AnnounceServiceResultObject coarnotify\patterns\request_endorsement\RequestEndorsementObject coarnotify\patterns\request_review\RequestReviewObject

Public Member Functions

 __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)
 
 validate ()
 
 validateProperty ($prop_name, $value, $force_validate=false, $raise_error=true)
 
 toJSONLD ()
 

Public Attributes

const DEFAULT_TYPE = null
 
const ALLOWED_TYPES = []
 

Additional Inherited Members

- 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

Base class for all pattern parts, such as objects, contexts, actors, etc

If there is a default type specified, and a type is not given at construction, then the default type will be added

Constructor & Destructor Documentation

◆ __construct()

coarnotify\core\notify\NotifyPatternPart::__construct ( $stream = null,
$validate_stream_on_construct = true,
$validate_properties = true,
$validators = null,
$validation_context = null )

Constructor for the NotifyPatternPart

If there is a default type specified, and a type is not given at construction, then the default type will be added

Parameters
$stream
$validate_stream_on_construct
$validate_properties
$validators
$validation_context

Reimplemented from coarnotify\core\notify\NotifyBase.

Member Function Documentation

◆ setType()

coarnotify\core\notify\NotifyPatternPart::setType ( $types)

Reimplemented from coarnotify\core\notify\NotifyBase.


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