@@ 64-87 (lines=24) @@ | ||
61 | * @throws InvalidDataTypeException |
|
62 | * @throws InvalidClassException |
|
63 | */ |
|
64 | protected function loadPrivateDataEraserCollection() |
|
65 | { |
|
66 | $loader = new CollectionLoader( |
|
67 | new CollectionDetails( |
|
68 | // collection name |
|
69 | 'privacy_policies', |
|
70 | // collection interface |
|
71 | 'EventEspresso\core\services\privacy\policy\PrivateDataEraserInterface', |
|
72 | // FQCNs for classes to add (all classes within that namespace will be loaded) |
|
73 | apply_filters( |
|
74 | 'FHEE__EventEspresso_core_services_privacy_erasure_PersonalDataEraserManager__erasers', |
|
75 | array('EventEspresso\core\domain\services\admin\privacy\policy\PrivateDataEraser') |
|
76 | ), |
|
77 | // filepaths to classes to add |
|
78 | array(), |
|
79 | // file mask to use if parsing folder for files to add |
|
80 | '', |
|
81 | // what to use as identifier for collection entities |
|
82 | // using CLASS NAME prevents duplicates (works like a singleton) |
|
83 | CollectionDetails::ID_CLASS_NAME |
|
84 | ) |
|
85 | ); |
|
86 | return $loader->getCollection(); |
|
87 | } |
|
88 | } |
|
89 | // End of file PersonalDataEraserManager.php |
|
90 | // Location: EventEspresso\core\domain\services\admin/PersonalDataEraserManager.php |
@@ 64-87 (lines=24) @@ | ||
61 | * @throws InvalidDataTypeException |
|
62 | * @throws InvalidClassException |
|
63 | */ |
|
64 | protected function loadPrivateDataExporterCollection() |
|
65 | { |
|
66 | $loader = new CollectionLoader( |
|
67 | new CollectionDetails( |
|
68 | // collection name |
|
69 | 'personal_data_exporters', |
|
70 | // collection interface |
|
71 | 'EventEspresso\core\services\privacy\export\PersonalDataExporterInterface', |
|
72 | // FQCNs for classes to add (all classes within that namespace will be loaded) |
|
73 | apply_filters( |
|
74 | 'FHEE__EventEspresso_core_services_privacy_export_PersonalDataExporterManager__exporters', |
|
75 | array('EventEspresso\core\domain\services\admin\privacy\export') |
|
76 | ), |
|
77 | // filepaths to classes to add |
|
78 | array(), |
|
79 | // file mask to use if parsing folder for files to add |
|
80 | '', |
|
81 | // what to use as identifier for collection entities |
|
82 | // using CLASS NAME prevents duplicates (works like a singleton) |
|
83 | CollectionDetails::ID_CLASS_NAME |
|
84 | ) |
|
85 | ); |
|
86 | return $loader->getCollection(); |
|
87 | } |
|
88 | } |
|
89 | ||
90 | // End of file PersonalDataExporterManager.php |
@@ 61-84 (lines=24) @@ | ||
58 | * @throws InvalidDataTypeException |
|
59 | * @throws InvalidClassException |
|
60 | */ |
|
61 | protected function loadPrivacyPolicyCollection() |
|
62 | { |
|
63 | $loader = new CollectionLoader( |
|
64 | new CollectionDetails( |
|
65 | // collection name |
|
66 | 'privacy_policies', |
|
67 | // collection interface |
|
68 | 'EventEspresso\core\services\privacy\policy\PrivacyPolicyInterface', |
|
69 | // FQCNs for classes to add (all classes within that namespace will be loaded) |
|
70 | apply_filters( |
|
71 | 'FHEE__EventEspresso_core_services_privacy_policy_PrivacyPolicyManager__privacy_policies', |
|
72 | array('EventEspresso\core\domain\services\admin\privacy\policy\PrivacyPolicy') |
|
73 | ), |
|
74 | // filepaths to classes to add |
|
75 | array(), |
|
76 | // file mask to use if parsing folder for files to add |
|
77 | '', |
|
78 | // what to use as identifier for collection entities |
|
79 | // using CLASS NAME prevents duplicates (works like a singleton) |
|
80 | CollectionDetails::ID_CLASS_NAME |
|
81 | ) |
|
82 | ); |
|
83 | return $loader->getCollection(); |
|
84 | } |
|
85 | } |
|
86 | // End of file PrivacyPolicyManager.php |
|
87 | // Location: EventEspresso\core\domain\services\admin/PrivacyPolicyManager.php |