public static function toGroupOwnerData(Group $group) { return ['id' => $group->getId(), 'type' => $group->getType(), 'group_type' => $group->getGroupType(), 'official_title' => $group->getOfficialName(), 'avatar_file_path' => $group->getAvatarFileName()]; }
/** * @Route("/local/{id}", name="civix_front_superuser_local_groups_by_parent") * @Method({"GET"}) * @Template("CivixFrontBundle:Superuser:manageLocalGroups.html.twig") */ public function localGroupActionByState(Group $parent) { if ($parent->getGroupType() !== Group::GROUP_TYPE_STATE && $parent->getGroupType() !== Group::GROUP_TYPE_COUNTRY) { throw $this->createNotFoundException(); } return array('selectedGroup' => $parent, 'countryGroups' => $this->getCountryGroups()); }
public function getGroupType() { $this->__load(); return parent::getGroupType(); }
/** * Check if $group not fixed (may to join and unjoin without limiations) * * @param \Civix\CoreBundle\Entity\Group $group * * @return boolean */ public function isCommonGroup(Group $group) { return $group->getGroupType() === Group::GROUP_TYPE_COMMON; }