AAMFieldsExtractor.php
3 years ago
AAMSettingsFields.php
3 years ago
EventIdGenerator.php
3 years ago
FacebookPixel.php
3 years ago
FacebookPluginConfig.php
3 years ago
FacebookPluginUtils.php
3 years ago
FacebookServerSideEvent.php
3 years ago
FacebookWordpressOpenBridge.php
3 years ago
FacebookWordpressOptions.php
3 years ago
FacebookWordpressPixelInjection.php
3 years ago
FacebookWordpressSettingsPage.php
3 years ago
FacebookWordpressSettingsRecorder.php
3 years ago
PixelRenderer.php
3 years ago
ServerEventAsyncTask.php
3 years ago
ServerEventFactory.php
3 years ago
AAMSettingsFields.php
47 lines
| 1 | <?php |
| 2 | /* |
| 3 | * Copyright (C) 2017-present, Meta, Inc. |
| 4 | * |
| 5 | * This program is free software; you can redistribute it and/or modify |
| 6 | * it under the terms of the GNU General Public License as published by |
| 7 | * the Free Software Foundation; version 2 of the License. |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | */ |
| 13 | |
| 14 | namespace FacebookPixelPlugin\Core; |
| 15 | |
| 16 | /** |
| 17 | * Class that contains the keys used to identify each field in AAMSettings |
| 18 | */ |
| 19 | abstract class AAMSettingsFields{ |
| 20 | const EMAIL = "em"; |
| 21 | const FIRST_NAME = "fn"; |
| 22 | const LAST_NAME = "ln"; |
| 23 | const GENDER = "ge"; |
| 24 | const PHONE = "ph"; |
| 25 | const CITY = "ct"; |
| 26 | const STATE = "st"; |
| 27 | const ZIP_CODE = "zp"; |
| 28 | const DATE_OF_BIRTH = "db"; |
| 29 | const COUNTRY = "country"; |
| 30 | const EXTERNAL_ID = "external_id"; |
| 31 | public static function getAllFields(){ |
| 32 | return array( |
| 33 | self::EMAIL, |
| 34 | self::FIRST_NAME, |
| 35 | self::LAST_NAME, |
| 36 | self::GENDER, |
| 37 | self::PHONE, |
| 38 | self::CITY, |
| 39 | self::STATE, |
| 40 | self::ZIP_CODE, |
| 41 | self::DATE_OF_BIRTH, |
| 42 | self::COUNTRY, |
| 43 | self::EXTERNAL_ID, |
| 44 | ); |
| 45 | } |
| 46 | } |
| 47 |