class-latepoint-abilities-activities.php
4 months ago
class-latepoint-abilities-agents.php
4 months ago
class-latepoint-abilities-analytics.php
4 months ago
class-latepoint-abilities-bookings.php
4 months ago
class-latepoint-abilities-calendar.php
4 months ago
class-latepoint-abilities-customers.php
4 months ago
class-latepoint-abilities-locations.php
4 months ago
class-latepoint-abilities-orders.php
4 months ago
class-latepoint-abilities-services.php
4 months ago
class-latepoint-abilities-customers.php
49 lines
| 1 | <?php |
| 2 | /** |
| 3 | * LatePoint Abilities — Customers module factory. |
| 4 | * |
| 5 | * @package LatePoint\Abilities |
| 6 | * @since 5.3.0 |
| 7 | */ |
| 8 | |
| 9 | if ( ! defined( 'ABSPATH' ) ) { |
| 10 | exit; |
| 11 | } |
| 12 | |
| 13 | class LatePointAbilitiesCustomers { |
| 14 | |
| 15 | /** |
| 16 | * @return LatePointAbstractAbility[] |
| 17 | */ |
| 18 | public static function get_abilities(): array { |
| 19 | $base = LATEPOINT_ABSPATH . 'lib/abilities/customers/'; |
| 20 | |
| 21 | require_once $base . 'abstract-customer-ability.php'; |
| 22 | require_once $base . 'list-customers.php'; |
| 23 | require_once $base . 'get-customer.php'; |
| 24 | require_once $base . 'search-customers.php'; |
| 25 | require_once $base . 'get-customer-by-email.php'; |
| 26 | require_once $base . 'create-customer.php'; |
| 27 | require_once $base . 'update-customer.php'; |
| 28 | require_once $base . 'delete-customer.php'; |
| 29 | require_once $base . 'connect-customer-to-wp-user.php'; |
| 30 | require_once $base . 'get-customer-bookings.php'; |
| 31 | require_once $base . 'get-customer-orders.php'; |
| 32 | require_once $base . 'get-total-customers-count.php'; |
| 33 | |
| 34 | return [ |
| 35 | new LatePointAbilityListCustomers(), |
| 36 | new LatePointAbilityGetCustomer(), |
| 37 | new LatePointAbilitySearchCustomers(), |
| 38 | new LatePointAbilityGetCustomerByEmail(), |
| 39 | new LatePointAbilityCreateCustomer(), |
| 40 | new LatePointAbilityUpdateCustomer(), |
| 41 | new LatePointAbilityDeleteCustomer(), |
| 42 | new LatePointAbilityConnectCustomerToWpUser(), |
| 43 | new LatePointAbilityGetCustomerBookings(), |
| 44 | new LatePointAbilityGetCustomerOrders(), |
| 45 | new LatePointAbilityGetTotalCustomersCount(), |
| 46 | ]; |
| 47 | } |
| 48 | } |
| 49 |