Public Member Functions | |
getName () | |
setName (string $value) | |
![]() | |
__construct ($stream=null, $validate_stream_on_construct=true, $validate_properties=true, $validators=null, $validation_context=null) | |
setType ($types) | |
![]() | |
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 = ActivityStreamsTypes::SERVICE |
const | ALLOWED_TYPES |
![]() | |
const | DEFAULT_TYPE = null |
const | ALLOWED_TYPES = [] |
Additional Inherited Members | |
![]() | |
_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 | deepCopy ($array) |
![]() | |
$validateStreamOnConstruct | |
$validateProperties | |
$validators | |
$validationContext | |
$stream | |
Deafult class to represents an actor in the COAR Notify pattern. Actors are used to represent the actor
property in the notification patterns
Specific patterns may need to extend this class to provide their specific behaviours and validation
coarnotify\core\notify\NotifyActor::getName | ( | ) |
Get the name property of the actor
coarnotify\core\notify\NotifyActor::setName | ( | string | $value | ) |
Set the name property of the actor
string | $value | The name of the actor |
const coarnotify\core\notify\NotifyActor::ALLOWED_TYPES |
const coarnotify\core\notify\NotifyActor::DEFAULT_TYPE = ActivityStreamsTypes::SERVICE |
Default type is Service
, but can also be set as any one of the other allowed types