Activity
in package
implements
OrganResourceInterface, CreatorResourceInterface
uses
IdentifiableTrait
Activity model.
Tags
Attributes
- #[Entity]
Table of Contents
Interfaces
Constants
- STATUS_APPROVED = 2
- STATUS_DISAPPROVED = 3
- STATUS_TO_APPROVE = 1
- Status codes for the activity.
- STATUS_UPDATE = 4
Properties
- $approver : Member|null
- Who (dis)approved this activity?
- $beginTime : DateTime
- The date and time the activity starts.
- $categories : Collection<string|int, ActivityCategory>
- All additional Categories belonging to this activity.
- $company : Company|null
- Which company organises this activity.
- $costs : ActivityLocalisedText
- How much does it cost.
- $creator : Member
- Who created this activity.
- $description : ActivityLocalisedText
- Activity description.
- $endTime : DateTime
- The date and time the activity ends.
- $id : int|null
- The default value must be `null` to prevent issues with auto generating the value. The column is strictly not nullable.
- $isMyFuture : bool
- Is this a My Future related activity.
- $location : ActivityLocalisedText
- The location the activity is held at.
- $name : ActivityLocalisedText
- Name for the activity.
- $organ : Organ|null
- Which organ organises this activity.
- $requireGEFLITST : bool
- Whether this activity needs a GEFLITST photographer.
- $requireZettle : bool
- Whether this activity needs a Zettle.
- $signupLists : Collection<string|int, SignupList>
- All additional SignupLists belonging to this activity.
- $status : int
- What is the approval status .
- $updateProposal : Collection<string|int, ActivityUpdateProposal>
- The update proposal associated with this activity.
Methods
- __construct() : mixed
- addCategories() : void
- addCategory() : void
- addSignupList() : void
- addSignupLists() : void
- Adds SignupLists to this activity.
- getApprover() : Member|null
- getBeginTime() : DateTime
- getCategories() : Collection<string|int, ActivityCategory>
- getCompany() : Company|null
- getCosts() : ActivityLocalisedText
- getCreator() : Member
- getDescription() : ActivityLocalisedText
- getEndTime() : DateTime
- getId() : int|null
- Get the identifier of the object.
- getIsMyFuture() : bool
- getLocation() : ActivityLocalisedText
- getName() : ActivityLocalisedText
- getOrgan() : Organ|null
- getRequireGEFLITST() : bool
- getRequireZettle() : bool
- getResourceCreator() : Member
- Get the creator of this resource.
- getResourceId() : string
- Returns the string identifier of the Resource.
- getResourceOrgan() : Organ|null
- Get the organ of this resource.
- getSignupLists() : Collection<string|int, SignupList>
- Returns a Collection of SignupLists associated with this activity.
- getStatus() : int
- getUpdateProposal() : Collection<string|int, ActivityUpdateProposal>
- removeCategories() : void
- removeCategory() : void
- removeSignupList() : void
- removeSignupLists() : void
- Removes SignupLists from this activity.
- setApprover() : void
- setBeginTime() : void
- setCompany() : void
- setCosts() : void
- setCreator() : void
- setDescription() : void
- setEndTime() : void
- setId() : void
- Setting the identifier manually will, in most instances, result in undefined behaviour. Use with caution!
- setIsMyFuture() : void
- setLocation() : void
- setName() : void
- setOrgan() : void
- setRequireGEFLITST() : void
- setRequireZettle() : void
- setStatus() : void
- toArray() : ActivityArrayType
- Returns an associative array representation of this object.
- toGdprArray() : ActivityGdprArrayType
Constants
STATUS_APPROVED
public
mixed
STATUS_APPROVED
= 2
STATUS_DISAPPROVED
public
mixed
STATUS_DISAPPROVED
= 3
STATUS_TO_APPROVE
Status codes for the activity.
public
mixed
STATUS_TO_APPROVE
= 1
STATUS_UPDATE
public
mixed
STATUS_UPDATE
= 4
Properties
$approver
Who (dis)approved this activity?
protected
Member|null
$approver
= null
Attributes
- #[JoinColumn]
- $referencedColumnName: 'lidnr'
- #[ManyToOne]
- $targetEntity: \Decision\Model\Member::class
$beginTime
The date and time the activity starts.
protected
DateTime
$beginTime
Attributes
- #[Column]
- $type: 'datetime'
$categories
All additional Categories belonging to this activity.
protected
Collection<string|int, ActivityCategory>
$categories
Attributes
- #[JoinTable]
- $name: 'ActivityCategoryAssignment'
- #[ManyToMany]
- $targetEntity: \Activity\Model\ActivityCategory::class
- $inversedBy: 'activities'
- $cascade: ['persist']
$company
Which company organises this activity.
protected
Company|null
$company
= null
Attributes
- #[JoinColumn]
- $referencedColumnName: 'id'
- $nullable: true
- #[ManyToOne]
- $targetEntity: \Company\Model\Company::class
$costs
How much does it cost.
protected
ActivityLocalisedText
$costs
Attributes
- #[JoinColumn]
- $name: 'costs_id'
- $referencedColumnName: 'id'
- $nullable: false
- #[OneToOne]
- $targetEntity: \Activity\Model\ActivityLocalisedText::class
- $cascade: ['persist', 'remove']
- $orphanRemoval: true
$creator
Who created this activity.
protected
Member
$creator
Attributes
- #[JoinColumn]
- $referencedColumnName: 'lidnr'
- $nullable: false
- #[ManyToOne]
- $targetEntity: \Decision\Model\Member::class
$description
Activity description.
protected
ActivityLocalisedText
$description
Attributes
- #[JoinColumn]
- $name: 'description_id'
- $referencedColumnName: 'id'
- $nullable: false
- #[OneToOne]
- $targetEntity: \Activity\Model\ActivityLocalisedText::class
- $cascade: ['persist', 'remove']
- $orphanRemoval: true
$endTime
The date and time the activity ends.
protected
DateTime
$endTime
Attributes
- #[Column]
- $type: 'datetime'
$id
The default value must be `null` to prevent issues with auto generating the value. The column is strictly not nullable.
protected
int|null
$id
= null
Attributes
- #[Column]
- $type: 'integer'
- #[GeneratedValue]
- $strategy: 'IDENTITY'
- #[Id]
$isMyFuture
Is this a My Future related activity.
protected
bool
$isMyFuture
Attributes
- #[Column]
- $type: 'boolean'
$location
The location the activity is held at.
protected
ActivityLocalisedText
$location
Attributes
- #[JoinColumn]
- $name: 'location_id'
- $referencedColumnName: 'id'
- $nullable: false
- #[OneToOne]
- $targetEntity: \Activity\Model\ActivityLocalisedText::class
- $cascade: ['persist', 'remove']
- $orphanRemoval: true
$name
Name for the activity.
protected
ActivityLocalisedText
$name
Attributes
- #[JoinColumn]
- $name: 'name_id'
- $referencedColumnName: 'id'
- $nullable: false
- #[OneToOne]
- $targetEntity: \Activity\Model\ActivityLocalisedText::class
- $cascade: ['persist', 'remove']
- $orphanRemoval: true
$organ
Which organ organises this activity.
protected
Organ|null
$organ
= null
Attributes
- #[JoinColumn]
- $referencedColumnName: 'id'
- $nullable: true
- #[ManyToOne]
- $targetEntity: \Decision\Model\Organ::class
$requireGEFLITST
Whether this activity needs a GEFLITST photographer.
protected
bool
$requireGEFLITST
= false
Attributes
- #[Column]
- $type: 'boolean'
$requireZettle
Whether this activity needs a Zettle.
protected
bool
$requireZettle
= false
Attributes
- #[Column]
- $type: 'boolean'
$signupLists
All additional SignupLists belonging to this activity.
protected
Collection<string|int, SignupList>
$signupLists
Attributes
- #[OneToMany]
- $targetEntity: \Activity\Model\SignupList::class
- $mappedBy: 'activity'
- $cascade: ['remove']
- $orphanRemoval: true
$status
What is the approval status .
protected
int
$status
Attributes
- #[Column]
- $type: 'integer'
$updateProposal
The update proposal associated with this activity.
protected
Collection<string|int, ActivityUpdateProposal>
$updateProposal
Attributes
- #[OneToMany]
- $targetEntity: \Activity\Model\ActivityUpdateProposal::class
- $mappedBy: 'old'
Methods
__construct()
public
__construct() : mixed
addCategories()
public
addCategories(array<string|int, ActivityCategory> $categories) : void
Parameters
- $categories : array<string|int, ActivityCategory>
addCategory()
public
addCategory(ActivityCategory $category) : void
Parameters
- $category : ActivityCategory
addSignupList()
public
addSignupList(SignupList $signupList) : void
Parameters
- $signupList : SignupList
addSignupLists()
Adds SignupLists to this activity.
public
addSignupLists(array<string|int, SignupList> $signupLists) : void
Parameters
- $signupLists : array<string|int, SignupList>
getApprover()
public
getApprover() : Member|null
Return values
Member|nullgetBeginTime()
public
getBeginTime() : DateTime
Return values
DateTimegetCategories()
public
getCategories() : Collection<string|int, ActivityCategory>
Return values
Collection<string|int, ActivityCategory>getCompany()
public
getCompany() : Company|null
Return values
Company|nullgetCosts()
public
getCosts() : ActivityLocalisedText
Return values
ActivityLocalisedTextgetCreator()
public
getCreator() : Member
Return values
MembergetDescription()
public
getDescription() : ActivityLocalisedText
Return values
ActivityLocalisedTextgetEndTime()
public
getEndTime() : DateTime
Return values
DateTimegetId()
Get the identifier of the object.
public
getId() : int|null
Tags
Return values
int|nullgetIsMyFuture()
public
getIsMyFuture() : bool
Return values
boolgetLocation()
public
getLocation() : ActivityLocalisedText
Return values
ActivityLocalisedTextgetName()
public
getName() : ActivityLocalisedText
Return values
ActivityLocalisedTextgetOrgan()
public
getOrgan() : Organ|null
Return values
Organ|nullgetRequireGEFLITST()
public
getRequireGEFLITST() : bool
Return values
boolgetRequireZettle()
public
getRequireZettle() : bool
Return values
boolgetResourceCreator()
Get the creator of this resource.
public
getResourceCreator() : Member
Return values
MembergetResourceId()
Returns the string identifier of the Resource.
public
getResourceId() : string
Return values
stringgetResourceOrgan()
Get the organ of this resource.
public
getResourceOrgan() : Organ|null
Return values
Organ|nullgetSignupLists()
Returns a Collection of SignupLists associated with this activity.
public
getSignupLists() : Collection<string|int, SignupList>
Return values
Collection<string|int, SignupList>getStatus()
public
getStatus() : int
Return values
intgetUpdateProposal()
public
getUpdateProposal() : Collection<string|int, ActivityUpdateProposal>
Return values
Collection<string|int, ActivityUpdateProposal>removeCategories()
public
removeCategories(array<string|int, ActivityCategory> $categories) : void
Parameters
- $categories : array<string|int, ActivityCategory>
removeCategory()
public
removeCategory(ActivityCategory $category) : void
Parameters
- $category : ActivityCategory
removeSignupList()
public
removeSignupList(SignupList $signupList) : void
Parameters
- $signupList : SignupList
removeSignupLists()
Removes SignupLists from this activity.
public
removeSignupLists(array<string|int, SignupList> $signupLists) : void
Parameters
- $signupLists : array<string|int, SignupList>
setApprover()
public
setApprover(Member|null $approver) : void
Parameters
- $approver : Member|null
setBeginTime()
public
setBeginTime(DateTime $beginTime) : void
Parameters
- $beginTime : DateTime
setCompany()
public
setCompany(Company|null $company) : void
Parameters
- $company : Company|null
setCosts()
public
setCosts(ActivityLocalisedText $costs) : void
Parameters
- $costs : ActivityLocalisedText
setCreator()
public
setCreator(Member $creator) : void
Parameters
- $creator : Member
setDescription()
public
setDescription(ActivityLocalisedText $description) : void
Parameters
- $description : ActivityLocalisedText
setEndTime()
public
setEndTime(DateTime $endTime) : void
Parameters
- $endTime : DateTime
setId()
Setting the identifier manually will, in most instances, result in undefined behaviour. Use with caution!
public
setId(int|null $id) : void
Parameters
- $id : int|null
setIsMyFuture()
public
setIsMyFuture(bool $isMyFuture) : void
Parameters
- $isMyFuture : bool
setLocation()
public
setLocation(ActivityLocalisedText $location) : void
Parameters
- $location : ActivityLocalisedText
setName()
public
setName(ActivityLocalisedText $name) : void
Parameters
- $name : ActivityLocalisedText
setOrgan()
public
setOrgan(Organ|null $organ) : void
Parameters
- $organ : Organ|null
setRequireGEFLITST()
public
setRequireGEFLITST(bool $requireGEFLITST) : void
Parameters
- $requireGEFLITST : bool
setRequireZettle()
public
setRequireZettle(bool $requireZettle) : void
Parameters
- $requireZettle : bool
setStatus()
public
setStatus(int $status) : void
Parameters
- $status : int
toArray()
Returns an associative array representation of this object.
public
toArray() : ActivityArrayType
Return values
ActivityArrayTypetoGdprArray()
public
toGdprArray() : ActivityGdprArrayType