JText::translate('VBCUSTOMERFIRSTNAME'), 'last_name' => JText::translate('VBCUSTOMERLASTNAME'), 'gender' => JText::translate('VBOCUSTGENDER'), 'country' => JText::translate('VBCUSTOMERCOUNTRY'), 'docnum' => JText::translate('VBCUSTOMERDOCNUM'), 'extranotes' => JText::translate('VBOGUESTEXTRANOTES'), ]; } /** * Returns the list of field attributes. The count and keys * of the attributes should match with the labels. * * @return array associative list of field attributes. */ public function getAttributes() { return [ 'first_name' => 'text', 'last_name' => 'text', 'gender' => [ 'M' => JText::translate('VBOCUSTGENDERM'), 'F' => JText::translate('VBOCUSTGENDERF'), ], 'country' => 'country', 'docnum' => 'text', 'extranotes' => 'text', ]; } }