mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
Fixed: [list person] fix list person and add new fields
This commit is contained in:
@@ -20,32 +20,32 @@ use Symfony\Component\PropertyAccess\PropertyAccessor;
|
||||
use function strlen;
|
||||
|
||||
/**
|
||||
* Helps to load addresses and format them in list
|
||||
* Helps to load addresses and format them in list.
|
||||
*/
|
||||
class ExportAddressHelper
|
||||
{
|
||||
public const ATTRIBUTES = 0b01000000;
|
||||
public const F_AS_STRING = 0b00010000;
|
||||
|
||||
public const BUILDING = 0b00001000;
|
||||
public const F_ATTRIBUTES = 0b01000000;
|
||||
|
||||
public const COUNTRY = 0b00000001;
|
||||
public const F_BUILDING = 0b00001000;
|
||||
|
||||
public const GEOM = 0b00100000;
|
||||
public const F_COUNTRY = 0b00000001;
|
||||
|
||||
public const POSTAL_CODE = 0b00000010;
|
||||
public const F_GEOM = 0b00100000;
|
||||
|
||||
public const STREET = 0b00000100;
|
||||
public const F_POSTAL_CODE = 0b00000010;
|
||||
|
||||
public const STRING = 0b00010000;
|
||||
public const F_STREET = 0b00000100;
|
||||
|
||||
private const ALL = [
|
||||
'country' => self::COUNTRY,
|
||||
'postal_code' => self::POSTAL_CODE,
|
||||
'street' => self::STREET,
|
||||
'building' => self::BUILDING,
|
||||
'string' => self::STRING,
|
||||
'geom' => self::GEOM,
|
||||
'attributes' => self::ATTRIBUTES,
|
||||
'country' => self::F_COUNTRY,
|
||||
'postal_code' => self::F_POSTAL_CODE,
|
||||
'street' => self::F_STREET,
|
||||
'building' => self::F_BUILDING,
|
||||
'string' => self::F_AS_STRING,
|
||||
'geom' => self::F_GEOM,
|
||||
'attributes' => self::F_ATTRIBUTES,
|
||||
];
|
||||
|
||||
private const COLUMN_MAPPING = [
|
||||
@@ -78,6 +78,8 @@ class ExportAddressHelper
|
||||
}
|
||||
|
||||
/**
|
||||
* @param self::F_* $params
|
||||
*
|
||||
* @return array|string[]
|
||||
*/
|
||||
public function getKeys(int $params, string $prefix = ''): array
|
||||
|
Reference in New Issue
Block a user