Documentation

ActivityCalendarForm
in package

Table of Contents

Properties

$aclService  : AclService
$maxActivitiesMapper  : MaxActivities
$optionProposalMapper  : ActivityOptionProposal
$organService  : Organ
$periodMapper  : ActivityOptionCreationPeriod

Methods

__construct()  : mixed
canCreateOptionInPeriod()  : bool
Returns whether a user may create an option with given start time.
canOrganCreateProposal()  : bool
Returns whether an organ may create a new activity proposal.
getCurrentPeriods()  : array<string|int, ActivityOptionCreationPeriod>
Get the current ActivityOptionCreationPeriod.
getEditableOrgans()  : array<string|int, Organ>
Retrieves all organs which the current user is allowed to edit and for which the organ can create proposals.
toDateTime()  : DateTime
getCurrentProposalCount()  : int
Get the current proposal count of an organ for the given period.
getMaxActivities()  : int
Get the max number of activity options an organ can create.

Properties

Methods

canCreateOptionInPeriod()

Returns whether a user may create an option with given start time.

public canCreateOptionInPeriod(int $period, DateTime $beginTime, DateTime $endTime) : bool
Parameters
$period : int
$beginTime : DateTime
$endTime : DateTime
Tags
throws
Exception
Return values
bool

canOrganCreateProposal()

Returns whether an organ may create a new activity proposal.

public canOrganCreateProposal(int $organId) : bool
Parameters
$organId : int
Tags
throws
Exception
Return values
bool

getEditableOrgans()

Retrieves all organs which the current user is allowed to edit and for which the organ can create proposals.

public getEditableOrgans() : array<string|int, Organ>
Tags
throws
Exception
Return values
array<string|int, Organ>

toDateTime()

public static toDateTime(string $value[, string $format = 'Y-m-d' ]) : DateTime
Parameters
$value : string
$format : string = 'Y-m-d'
Return values
DateTime

getMaxActivities()

Get the max number of activity options an organ can create.

protected getMaxActivities(int $organId, int $periodId) : int
Parameters
$organId : int
$periodId : int
Tags
throws
Exception
Return values
int

        
On this page

Search results