JText::translate('VBCUSTOMERFIRSTNAME'), 'last_name' => JText::translate('VBCUSTOMERLASTNAME'), 'gender' => JText::translate('VBOCUSTGENDER'), 'date_birth' => JText::translate('ORDER_DBIRTH'), 'country' => JText::translate('VBCUSTOMERCOUNTRY'), 'doctype' => JText::translate('VBCUSTOMERDOCTYPE'), 'docnum' => JText::translate('VBCUSTOMERDOCNUM'), 'docissuedt' => JText::translate('VBCUSTOMERDOCISSUE'), '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' => 'spain_gender', 'date_birth' => 'calendar', 'country' => 'country', 'doctype' => 'spain_doctype', 'docnum' => 'text', 'docissuedt' => 'calendar', 'extranotes' => 'textarea', ]; } /** * Returns the associative list of ID types for Spain. * * @return array associative list of doc types. */ public function loadDocumenti() { return [ "D" => "Documento Nacional de Identidad", "P" => "Pasaporte", "C" => "Permiso de Conducir", "I" => "Carta o Documento de Identidad", "N" => "Permiso de Residencia Español", "X" => "Permiso de Residencia de otro Estado Miembro de la Unión Europea", ]; } }