fusionpbx/core/contacts
frytimo 08001488f4
Allow namespace in auto loader (#7307)
* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove class_exists wrapper for class definitions

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove include statement of class file

* remove closing tag

* remove invalid method params

* remove closing tag

* remove closing tag

* Update auto_loader to load each class file in the project
Update the auto_loader class to use an include statement on each file in the project to load the class within the file. This will allow mismatched names within the file to be loaded and mapped according to the declaration instead of the filename. The class is then checked against the parsed classes from the PHP engine so that namespaces are available and mapped to the file they were declared in. An update was also made to the search algorithm used to find a file that was not already loaded by collapsing the array to have only valid matches to increase performance on a cache miss. Logging within the auto_loader has been moved to a function.
Multiple files were modified to allow the include statement. When the class has the `if(class_exists())` statement, the auto_loader is called to check for the class. This caused an infinite loop scenario so all wrappers have been removed. The auto_loader will now break the loop by directly modifying the internal classes array instead of trying to restart with the 'reload_classes' method.

- APCu is used to cache classes so any loading of the classes is done only once. To clear the APCu cache, restart php-fpm or call the auto_loader::clear_cache() function.
- Cache file is used when APCu is not available. To clear the cache remove it from the tmp folder or call the auto_loader::clear_cache() function.
- All classes must no longer have a class_exists wrapper to benefit from the performance boost.
- Classes should not be directly included when the auto_loader is used.

* remove include statement of class file

* Update destinations.php
2025-03-12 13:55:47 -06:00
..
resources Allow namespace in auto loader (#7307) 2025-03-12 13:55:47 -06:00
app_config.php Move contacts from the app to core directory 2024-11-16 21:06:29 -07:00
app_defaults.php Move contacts from the app to core directory 2024-11-16 21:06:29 -07:00
app_languages.php Contact - Phone: Prevent duplicate speed dial numbers. 2025-01-28 15:54:35 -07:00
app_menu.php Update app_menu.php 2024-11-16 21:08:40 -07:00
contact_address_edit.php Fix temporary permissions 2024-11-29 13:57:01 -07:00
contact_addresses.php Use boolean setting as true boolean (#7284) 2025-03-04 11:25:47 -07:00
contact_addresses_view.php Move contacts from the app to core directory 2024-11-16 21:06:29 -07:00
contact_attachment.php Contact - Attachments: Prevent access without authentication. 2025-02-28 14:36:41 -07:00
contact_attachment_edit.php Contact - Attachment: Store image files in same format as uploaded. 2025-02-28 09:36:42 -07:00
contact_attachments.php Use boolean setting as true boolean (#7284) 2025-03-04 11:25:47 -07:00
contact_attachments_view.php Move contacts from the app to core directory 2024-11-16 21:06:29 -07:00
contact_auth.php Update contacts path (#7192) 2024-12-06 11:55:41 -07:00
contact_edit.php Use boolean setting as true boolean (#7284) 2025-03-04 11:25:47 -07:00
contact_email_edit.php Add content card div to contact email edit and module edit (#7272) 2025-02-25 12:35:23 -07:00
contact_emails.php Use boolean setting as true boolean (#7284) 2025-03-04 11:25:47 -07:00
contact_emails_view.php Move contacts from the app to core directory 2024-11-16 21:06:29 -07:00
contact_extensions.php Use boolean setting as true boolean (#7284) 2025-03-04 11:25:47 -07:00
contact_extensions_view.php Move contacts from the app to core directory 2024-11-16 21:06:29 -07:00
contact_import.php Fix the contact import 2025-03-08 14:37:15 -07:00
contact_import_google.php Fix temporary permissions 2024-11-29 13:57:01 -07:00
contact_json.php Move contacts from the app to core directory 2024-11-16 21:06:29 -07:00
contact_note_edit.php Fix temporary permissions 2024-11-29 13:57:01 -07:00
contact_notes.php Redirect to the correct domain if using show all (#7265) 2025-02-20 16:30:09 -07:00
contact_notes_view.php Move contacts from the app to core directory 2024-11-16 21:06:29 -07:00
contact_phone_edit.php Contact - Phone: Adjust to even check same contact for duplicate speed dial numbers. 2025-01-28 16:11:21 -07:00
contact_phones.php Use boolean setting as true boolean (#7284) 2025-03-04 11:25:47 -07:00
contact_phones_view.php Contact - View: Tighten up speed dial icon and number, make no wrap. 2025-01-28 17:21:42 -07:00
contact_relation_edit.php Update contacts path (#7192) 2024-12-06 11:55:41 -07:00
contact_relations.php Use boolean setting as true boolean (#7284) 2025-03-04 11:25:47 -07:00
contact_relations_view.php Move contacts from the app to core directory 2024-11-16 21:06:29 -07:00
contact_setting_edit.php Fix temporary permissions 2024-11-29 13:57:01 -07:00
contact_settings.php Use boolean setting as true boolean (#7284) 2025-03-04 11:25:47 -07:00
contact_time_edit.php Fix temporary permissions 2024-11-29 13:57:01 -07:00
contact_timer.php Move contacts from the app to core directory 2024-11-16 21:06:29 -07:00
contact_timer_inc.php Move contacts from the app to core directory 2024-11-16 21:06:29 -07:00
contact_times.php Use boolean setting as true boolean (#7284) 2025-03-04 11:25:47 -07:00
contact_times_view.php Move contacts from the app to core directory 2024-11-16 21:06:29 -07:00
contact_url_edit.php Fix temporary permissions 2024-11-29 13:57:01 -07:00
contact_urls.php Use boolean setting as true boolean (#7284) 2025-03-04 11:25:47 -07:00
contact_urls_view.php Move contacts from the app to core directory 2024-11-16 21:06:29 -07:00
contact_view.php Move contacts from the app to core directory 2024-11-16 21:06:29 -07:00
contacts.php Use boolean setting as true boolean (#7284) 2025-03-04 11:25:47 -07:00
contacts_vcard.php Allow namespace in auto loader (#7307) 2025-03-12 13:55:47 -06:00