Documentation

Activity
in package
implements OrganResourceInterface, CreatorResourceInterface uses IdentifiableTrait

Activity model.

Tags
psalm-import-type

ActivityCategoryArrayType from ActivityCategory as ImportedActivityCategoryArrayType

psalm-import-type

SignupListArrayType from SignupList as ImportedSignupListArrayType

psalm-import-type

LocalisedTextGdprArrayType from LocalisedTextModel as ImportedLocalisedTextGdprArrayType

psalm-import-type

ActivityCategoryGdprArrayType from ActivityCategory as ImportedActivityCategoryGdprArrayType

psalm-import-type

SignupListGdprArrayType from SignupList as ImportedSignupListGdprArrayType

psalm-type

ActivityArrayType = array{ id: int, name: ?string, nameEn: ?string, beginTime: datetime, endTime: datetime, location: ?string, locationEn: ?string, costs: ?string, costsEn: ?string, description: ?string, descriptionEn: ?string, organ: ?OrganModel, company: ?CompanyModel, isMyFuture: bool, requireGEFLITST: bool, categories: ImportedActivityCategoryArrayType[], signupLists: ImportedSignupListArrayType[], }

psalm-type

ActivityGdprArrayType = array{ id: int, name: ImportedLocalisedTextGdprArrayType, beginTime: string, endTime: string, location: ImportedLocalisedTextGdprArrayType, costs: ImportedLocalisedTextGdprArrayType, description: ImportedLocalisedTextGdprArrayType, organ: ?int, company: ?int, isMyFuture: bool, requireGEFLITST: bool, categories: ImportedActivityCategoryGdprArrayType[], signupLists: ImportedSignupListGdprArrayType[], }

Attributes
#[Entity]

Table of Contents

Interfaces

OrganResourceInterface
CreatorResourceInterface

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.
$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
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
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
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

addSignupLists()

Adds SignupLists to this activity.

public addSignupLists(array<string|int, SignupList$signupLists) : void
Parameters
$signupLists : array<string|int, SignupList>

getBeginTime()

public getBeginTime() : DateTime
Return values
DateTime

getEndTime()

public getEndTime() : DateTime
Return values
DateTime

getId()

Get the identifier of the object.

public getId() : int|null
Tags
psalm-ignore-nullable-return
Return values
int|null

getIsMyFuture()

public getIsMyFuture() : bool
Return values
bool

getRequireGEFLITST()

public getRequireGEFLITST() : bool
Return values
bool

getResourceCreator()

Get the creator of this resource.

public getResourceCreator() : Member
Return values
Member

getResourceId()

Returns the string identifier of the Resource.

public getResourceId() : string
Return values
string

getResourceOrgan()

Get the organ of this resource.

public getResourceOrgan() : Organ|null
Return values
Organ|null

getSignupLists()

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
int

removeSignupLists()

Removes SignupLists from this activity.

public removeSignupLists(array<string|int, SignupList$signupLists) : void
Parameters
$signupLists : array<string|int, SignupList>

setBeginTime()

public setBeginTime(DateTime $beginTime) : void
Parameters
$beginTime : DateTime

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

setRequireGEFLITST()

public setRequireGEFLITST(bool $requireGEFLITST) : void
Parameters
$requireGEFLITST : bool

setStatus()

public setStatus(int $status) : void
Parameters
$status : int

toArray()

Returns an associative array representation of this object.

public toArray() : ActivityArrayType
Return values
ActivityArrayType

toGdprArray()

public toGdprArray() : ActivityGdprArrayType
Return values
ActivityGdprArrayType

        
On this page

Search results