Trait luya\web\jsonld\EventTrait
Implemented by | luya\web\jsonld\Event |
---|---|
Available since version | 1.0.0 |
Source Code | https://github.com/luyadev/luya/blob/master/core/web/jsonld/EventTrait.php |
JsonLd - Event trait
See also http://schema.org/Event.
Public Methods
Method Details
public luya\web\jsonld\Organization|luya\web\jsonld\Person getAttendee ( ) |
public function getAttendee()
{
return $this->_attendee;
}
public luya\web\jsonld\Organization|luya\web\jsonld\Person getComposer ( ) |
public function getComposer()
{
return $this->_composer;
}
public luya\web\jsonld\Organization|luya\web\jsonld\Person getContributor ( ) |
public function getContributor()
{
return $this->_contributor;
}
public luya\web\jsonld\Person getDirector ( ) |
public function getDirector()
{
return $this->_director;
}
public \luya\web\jsonld\DateTime getDoorTime ( ) |
public function getDoorTime()
{
return $this->_doorTime;
}
public \luya\web\jsonld\Duration getDuration ( ) |
public function getDuration()
{
return $this->_duration;
}
public \luya\web\jsonld\Date|\luya\web\jsonld\DateTime getEndDate ( ) |
public function getEndDate()
{
return $this->_endDate;
}
public luya\web\jsonld\Organization|luya\web\jsonld\Person getFunder ( ) |
public function getFunder()
{
return $this->_funder;
}
public \luya\web\jsonld\Language|\luya\web\jsonld\Text getInLanguage ( ) |
public function getInLanguage()
{
return $this->_inLanguage;
}
public luya\web\jsonld\Place|luya\web\jsonld\PostalAddress|string getLocation ( ) |
public function getLocation()
{
return $this->_location;
}
public integer getMaximumAttendeeCapacity ( ) |
public function getMaximumAttendeeCapacity()
{
return $this->_maximumAttendeeCapacity;
}
public luya\web\jsonld\Organization|luya\web\jsonld\Person getOrganizer ( ) |
public function getOrganizer()
{
return $this->_organizer;
}
public luya\web\jsonld\Organization|luya\web\jsonld\Person getPerformer ( ) |
public function getPerformer()
{
return $this->_performer;
}
public string getPreviousStartDate ( ) |
public function getPreviousStartDate()
{
return $this->_previousStartDate;
}
public luya\web\jsonld\CreativeWork getRecordedIn ( ) |
public function getRecordedIn()
{
return $this->_recordedIn;
}
public integer getRemainingAttendeeCapacity ( ) |
public function getRemainingAttendeeCapacity()
{
return $this->_remainingAttendeeCapacity;
}
public luya\web\jsonld\Organization|luya\web\jsonld\Person getSponsor ( ) |
public function getSponsor()
{
return $this->_sponsor;
}
public \luya\web\jsonld\Date|\luya\web\jsonld\DateTime getStartDate ( ) |
public function getStartDate()
{
return $this->_startDate;
}
public luya\web\jsonld\Event getSubEvent ( ) |
public function getSubEvent()
{
return $this->_subEvent;
}
public luya\web\jsonld\Event getSuperEvent ( ) |
public function getSuperEvent()
{
return $this->_superEvent;
}
public luya\web\jsonld\Organization|luya\web\jsonld\Person getTranslator ( ) |
public function getTranslator()
{
return $this->_translator;
}
public string getTypicalAgeRange ( ) |
public function getTypicalAgeRange()
{
return $this->_typicalAgeRange;
}
public luya\web\jsonld\CreativeWork getWorkFeatured ( ) |
public function getWorkFeatured()
{
return $this->_workFeatured;
}
public luya\web\jsonld\CreativeWork getWorkPerformed ( ) |
public function getWorkPerformed()
{
return $this->_workPerformed;
}
public boolean isAccessibleForFree ( ) |
public function isAccessibleForFree()
{
return $this->_isAccessibleForFree;
}
The subject matter of the content.
Inverse property: subjectOf.
public static setAbout ( luya\web\jsonld\Thing $about ) | ||
$about | luya\web\jsonld\Thing |
public function setAbout(Thing $about)
{
$this->_about = $about;
return $this;
}
An actor, e.g. in tv, radio, movie, video games etc., or in an event.
Actors can be associated with individual items or with a series, episode, clip. Supersedes actors.
public static setActor ( luya\web\jsonld\Person $actor ) | ||
$actor | luya\web\jsonld\Person |
public function setActor(Person $actor)
{
$this->_actor = $actor;
return $this;
}
A person or organization attending the event. Supersedes attendees.
public static setAttendee ( $attendee ) | ||
$attendee | luya\web\jsonld\Organization|luya\web\jsonld\Person |
public function setAttendee($attendee)
{
ObjectHelper::isInstanceOf($attendee, [Organization::class, PersonInterface::class]);
$this->_attendee = $attendee;
return $this;
}
The person or organization who wrote a composition, or who is the composer of a work performed at some event.
public static setComposer ( $composer ) | ||
$composer | luya\web\jsonld\Organization|luya\web\jsonld\Person |
public function setComposer($composer)
{
ObjectHelper::isInstanceOf($author, [Organization::class, PersonInterface::class]);
$this->_composer = $composer;
return $this;
}
A secondary contributor to the CreativeWork or Event.
public static setContributor ( $contributor ) | ||
$contributor | luya\web\jsonld\Organization|luya\web\jsonld\Person |
public function setContributor($contributor)
{
ObjectHelper::isInstanceOf($contributor, [Organization::class, PersonInterface::class]);
$this->_contributor = $contributor;
return $this;
}
A director of e.g. tv, radio, movie, video gaming etc. content, or of an event.
Directors can be associated with individual items or with a series, episode, clip. Supersedes directors.
public static setDirector ( luya\web\jsonld\Person $director ) | ||
$director | luya\web\jsonld\Person |
public function setDirector(Person $director)
{
$this->_director = $director;
return $this;
}
The time admission will commence.
public static setDoorTime ( luya\web\jsonld\DateTimeValue $doorTime ) | ||
$doorTime | \luya\web\jsonld\DateTime |
public function setDoorTime(DateTimeValue $doorTime)
{
$this->_doorTime = $doorTime->getValue();
return $this;
}
The duration of the item (movie, audio recording, event, etc.) in ISO 8601 date format.
public static setDuration ( luya\web\jsonld\DurationValue $duration ) | ||
$duration | \luya\web\jsonld\Duration |
public function setDuration(DurationValue $duration)
{
$this->_duration = $duration->getValue();
return $this;
}
The end date and time of the item (in ISO 8601 date format).
public static setEndDate ( luya\web\jsonld\DateTimeValue $endDate ) | ||
$endDate | \luya\web\jsonld\Date|\luya\web\jsonld\DateTime |
public function setEndDate(DateTimeValue $endDate)
{
$this->_endDate = $endDate->getValue();
return $this;
}
A person or organization that supports (sponsors) something through some kind of financial contribution.
public static setFunder ( $funder ) | ||
$funder | luya\web\jsonld\Organization|luya\web\jsonld\Person |
public function setFunder($funder)
{
ObjectHelper::isInstanceOf($funder, [Organization::class, PersonInterface::class]);
$this->_funder = $funder;
return $this;
}
The language of the content or performance or used in an action.
Please use one of the language codes from the IETF BCP 47 standard. See also availableLanguage. Supersedes language.
public static setInLanguage ( luya\web\jsonld\LanguageValue $inLanguage ) | ||
$inLanguage | \luya\web\jsonld\Language|\luya\web\jsonld\Text |
public function setInLanguage(LanguageValue $inLanguage)
{
$this->_inLanguage = $inLanguage->getValue();
return $this;
}
A flag to signal that the item, event, or place is accessible for free. Supersedes free.
public static setIsAccessibleForFree ( $isAccessibleForFree ) | ||
$isAccessibleForFree | boolean |
public function setIsAccessibleForFree($isAccessibleForFree)
{
$this->_isAccessibleForFree = $isAccessibleForFree;
return $this;
}
The location of for example where the event is happening, an organization is located, or where an action takes place.
public static setLocation ( $location ) | ||
$location | luya\web\jsonld\Place|luya\web\jsonld\PostalAddress|string |
public function setLocation($location)
{
$this->_location = $location;
return $this;
}
The total number of individuals that may attend an event or venue.
public void setMaximumAttendeeCapacity ( $maximumAttendeeCapacity ) | ||
$maximumAttendeeCapacity | integer |
public function setMaximumAttendeeCapacity($maximumAttendeeCapacity)
{
$this->_maximumAttendeeCapacity = $maximumAttendeeCapacity;
}
An organizer of an Event.
public static setOrganizer ( $organizer ) | ||
$organizer | luya\web\jsonld\Organization|luya\web\jsonld\Person |
public function setOrganizer($organizer)
{
ObjectHelper::isInstanceOf($organizer, [Organization::class, PersonInterface::class]);
$this->_organizer = $organizer;
return $this;
}
A performer at the event—for example, a presenter, musician, musical group or actor.
Supersedes performers.
public static setPerformer ( $performer ) | ||
$performer | luya\web\jsonld\Organization|luya\web\jsonld\Person |
public function setPerformer($performer)
{
ObjectHelper::isInstanceOf($performer, [Organization::class, PersonInterface::class]);
$this->_performer = $performer;
return $this;
}
Used in conjunction with eventStatus for rescheduled or cancelled events.
This property contains the previously scheduled start date. For rescheduled events, the startDate property should be used for the newly scheduled start date. In the (rare) case of an event that has been postponed and rescheduled multiple times, this field may be repeated.
public static setPreviousStartDate ( luya\web\jsonld\DateValue $previousStartDate ) | ||
$previousStartDate | luya\web\jsonld\DateValue |
public function setPreviousStartDate(DateValue $previousStartDate)
{
$this->_previousStartDate = $previousStartDate->getValue();
return $this;
}
The CreativeWork that captured all or part of this Event.
Inverse property: recordedAt
public static setRecordedIn ( luya\web\jsonld\CreativeWork $recordedIn ) | ||
$recordedIn | luya\web\jsonld\CreativeWork |
public function setRecordedIn(CreativeWork $recordedIn)
{
$this->_recordedIn = $recordedIn;
return $this;
}
The number of attendee places for an event that remain unallocated.
public static setRemainingAttendeeCapacity ( $remainingAttendeeCapacity ) | ||
$remainingAttendeeCapacity | integer |
public function setRemainingAttendeeCapacity($remainingAttendeeCapacity)
{
$this->_remainingAttendeeCapacity = $remainingAttendeeCapacity;
return $this;
}
A person or organization that supports a thing through a pledge, promise, or financial contribution.
e.g. a sponsor of a Medical Study or a corporate sponsor of an event.
public static setSponsor ( $sponsor ) | ||
$sponsor | luya\web\jsonld\Organization|luya\web\jsonld\Person |
public function setSponsor($sponsor)
{
ObjectHelper::isInstanceOf($sponsor, [Organization::class, PersonInterface::class]);
$this->_sponsor = $sponsor;
return $this;
}
The start date and time of the item (in ISO 8601 date format).
public static setStartDate ( luya\web\jsonld\DateTimeValue $startDate ) | ||
$startDate | luya\web\jsonld\DateTimeValue |
public function setStartDate(DateTimeValue $startDate)
{
$this->_startDate = $startDate->getValue();
return $this;
}
An Event that is part of this event.
For example, a conference event includes many presentations, each of which is a subEvent of the conference. Supersedes subEvents. Inverse property: superEvent.
public void setSubEvent ( luya\web\jsonld\Event $subEvent ) | ||
$subEvent | luya\web\jsonld\Event |
public function setSubEvent(Event $subEvent)
{
$this->_subEvent = $subEvent;
}
An event that this event is a part of.
For example, a collection of individual music performances might each have a music festival as their superEvent. Inverse property: subEvent.
public static setSuperEvent ( luya\web\jsonld\Event $superEvent ) | ||
$superEvent | luya\web\jsonld\Event |
public function setSuperEvent(Event $superEvent)
{
$this->_superEvent = $superEvent;
return $this;
}
Organization or person who adapts a creative work to different languages, regional differences and technical requirements of a target market, or that translates during some event.
public static setTranslator ( $translator ) | ||
$translator | luya\web\jsonld\Organization|luya\web\jsonld\Person |
public function setTranslator($translator)
{
ObjectHelper::isInstanceOf($translator, [Organization::class, PersonInterface::class]);
$this->_translator = $translator;
return $this;
}
The typical expected age range, e.g. '7-9', '11-'.
public static setTypicalAgeRange ( $typicalAgeRange ) | ||
$typicalAgeRange | string |
public function setTypicalAgeRange($typicalAgeRange)
{
$this->_typicalAgeRange = $typicalAgeRange;
return $this;
}
A work featured in some event, e.g. exhibited in an ExhibitionEvent.
Specific subproperties are available for workPerformed (e.g. a play), or a workPresented (a Movie at a ScreeningEvent).
public static setWorkFeatured ( luya\web\jsonld\CreativeWork $workFeatured ) | ||
$workFeatured | luya\web\jsonld\CreativeWork |
public function setWorkFeatured(CreativeWork $workFeatured)
{
$this->_workFeatured = $workFeatured;
return $this;
}
A work performed in some event, for example a play performed in a TheaterEvent.
public static setWorkPerformed ( luya\web\jsonld\CreativeWork $workPerformed ) | ||
$workPerformed | luya\web\jsonld\CreativeWork |
public function setWorkPerformed(CreativeWork $workPerformed)
{
$this->_workPerformed = $workPerformed;
return $this;
}