class CalendarEvent implements ObjectInterface (View source)

Traits

Properties

protected CalendarEventVersion $selectedVersion This points to the currently selected version in the object.
protected $calendar
protected $versions
protected $workflow_progress_objects
protected $eventID

Methods

getAttributeValueObject(AttributeKeyInterface|string $ak, bool $createIfNotExists = false)

No description

getAttribute($ak, $mode = false)

No description

Value
getAttributeValue($ak)

No description

Value
setAttribute(AttributeKeyInterface $ak, mixed $value)

Sets the attribute of a user info object to the specified value, and saves it in the database.

__construct(Calendar $calendar)

No description

getCalendar()

No description

setCalendar(Calendar $calendar)

No description

getCalendarID()

No description

int
getID()

No description

setSelectedVersion(CalendarEventVersion $selectedVersion)

No description

__call($name, $arguments)

No description

isPending()

Returns true if none of the versions are approved

Details

CategoryInterface getObjectAttributeCategory()

Return Value

CategoryInterface

See also

\Concrete\Core\Attribute\ObjectInterface::getObjectAttributeCategory()

AttributeValueInterface|null getAttributeValueObject(AttributeKeyInterface|string $ak, bool $createIfNotExists = false)

Parameters

AttributeKeyInterface|string $ak An attribute key instance (or its handle)
bool $createIfNotExists Shall the generic attribute value be created if it does not already exist?

Return Value

AttributeValueInterface|null

getAttribute($ak, $mode = false)

Parameters

$ak
$mode

Value getAttributeValue($ak)

Parameters

$ak

Return Value

Value

clearAttribute(AttributeKeyInterface $ak)

Parameters

AttributeKeyInterface $ak | string $ak

Value setAttribute(AttributeKeyInterface $ak, mixed $value)

Sets the attribute of a user info object to the specified value, and saves it in the database.

Parameters

AttributeKeyInterface $ak | string $ak
mixed $value

Return Value

Value

__construct(Calendar $calendar)

Parameters

Calendar $calendar

EventOccurrenceList getOccurrenceList()

Return Value

EventOccurrenceList

CalendarEventOccurrence[] getOccurrences()

Return Value

CalendarEventOccurrence[]

Calendar getCalendar()

Return Value

Calendar

setCalendar(Calendar $calendar)

Parameters

Calendar $calendar

getCalendarID()

int getID()

Return Value

int

CalendarEventVersion getVersions()

Return Value

CalendarEventVersion

CalendarEventVersion getSelectedVersion()

Return Value

CalendarEventVersion

setSelectedVersion(CalendarEventVersion $selectedVersion)

Parameters

CalendarEventVersion $selectedVersion

CalendarEventVersion getApprovedVersion()

Return Value

CalendarEventVersion

CalendarEventVersion getRecentVersion()

Return Value

CalendarEventVersion

__call($name, $arguments)

Parameters

$name
$arguments

isPending()

Returns true if none of the versions are approved