Kimai_Database_Mysql::assignProjectToActivitiesForGroup PHP Method

assignProjectToActivitiesForGroup() public method

Activities that are currently associated with the Project but not mentioned in the specified id collection, will get un-assigned. The fundamental difference to assign_projectToActivities($projectID, $activityIDs) is that this method is aware of potentially existing assignments that are invisible and thus unmanagable to the user as the user lacks access to the Activities. It is implicitly assumed that the user has access to the Project and the Activities designated by the method parameters.
public assignProjectToActivitiesForGroup ( integer $projectID, array $activityIDs, integer $group ) : boolean
$projectID integer the id of the Project to associate
$activityIDs array the array of Activity ids to associate
$group integer the user's group id
return boolean
    public function assignProjectToActivitiesForGroup($projectID, $activityIDs, $group)
    {
        $activityIds = array_merge($activityIDs, $this->getNonManagableAssignedElementIds("project", "activity", $projectID, $group));
        return $this->assign_projectToActivities($projectID, $activityIds);
    }
Kimai_Database_Mysql