Sulu\Bundle\ContactBundle\Controller\TemplateController::getValues PHP Метод

getValues() приватный Метод

Returns the possible values for the dropdowns.
private getValues ( ) : array
Результат array
    private function getValues()
    {
        $values = [];
        $emailTypeEntity = 'SuluContactBundle:EmailType';
        $values['emailTypes'] = $this->getDoctrine($emailTypeEntity)->getRepository($emailTypeEntity)->findAll();
        $phoneTypeEntity = 'SuluContactBundle:PhoneType';
        $values['phoneTypes'] = $this->getDoctrine()->getRepository($phoneTypeEntity)->findAll();
        $addressTypeEntity = 'SuluContactBundle:AddressType';
        $values['addressTypes'] = $this->getDoctrine()->getRepository($addressTypeEntity)->findAll();
        $values['urlTypes'] = $this->getDoctrine()->getRepository('SuluContactBundle:UrlType')->findAll();
        $values['faxTypes'] = $this->getDoctrine()->getRepository('SuluContactBundle:FaxType')->findAll();
        $values['countries'] = $this->getDoctrine()->getRepository('SuluContactBundle:Country')->findAll();
        return $values;
    }