]> Kevux Git Server - koopa/commit
Update: Use PHP namespaces
authorKevin Day <thekevinday@gmail.com>
Fri, 22 Sep 2017 01:21:33 +0000 (20:21 -0500)
committerKevin Day <thekevinday@gmail.com>
Fri, 22 Sep 2017 01:21:33 +0000 (20:21 -0500)
commita8ac9c50d70491fa0a202a438d36f1579cad0cda
treecd73bff4acb298b351b915d46bef1ca35e296767
parentd0a6e9a4fbe4d3c10cd4d95c3f80409e0d1f799f
Update: Use PHP namespaces

This enables the use of PHP namespaces.
The namespaces must be prefixed with 'n_'.
The parent namespace for koopa is 'n_koopa'.

I intend to only use a single depth namespace of n_koopa to keep it simple.
All other names remain unchanged.

This introduces a few problems/caveats:
1) Functions being stored as strings to be called dynamically now need to have '/n_koopa/' in front of them.
2) The standard index file in implementing projects, such as reservations, must still use namespace 'n_koopa' even if their project is different.
- This is because the base classes will call the c_base_defaults_global class.
- All other implementing project files can have their own namespace.
3) Core PHP classes very likely need to have '\' prefixed to them (will update as I encounter them).

This introduced new resolutions:
1) Using namespaces revealed a bug in my code where a class function get_roles() is called on an object that may potentially be a c_base_return_false object.
- I have to review the code and confirm whether or not the code should always be returning the appropriate class or allow other returns.
- For now, I am just adding a quick instance check.
128 files changed:
common/base/classes/base_access.php
common/base/classes/base_address.php
common/base/classes/base_ajax.php
common/base/classes/base_array.php
common/base/classes/base_ascii.php
common/base/classes/base_charset.php
common/base/classes/base_cml.php
common/base/classes/base_cookie.php
common/base/classes/base_database.php
common/base/classes/base_debug.php
common/base/classes/base_defaults_global.php
common/base/classes/base_email.php
common/base/classes/base_error.php
common/base/classes/base_error_messages_english.php
common/base/classes/base_error_messages_japanese.php
common/base/classes/base_file.php
common/base/classes/base_form.php
common/base/classes/base_html.php
common/base/classes/base_http.php
common/base/classes/base_http_status.php
common/base/classes/base_languages.php
common/base/classes/base_ldap.php
common/base/classes/base_log.php
common/base/classes/base_markup.php
common/base/classes/base_menu.php
common/base/classes/base_mime.php
common/base/classes/base_path.php
common/base/classes/base_paths.php
common/base/classes/base_return.php
common/base/classes/base_rfc_char.php
common/base/classes/base_rfc_string.php
common/base/classes/base_roles.php
common/base/classes/base_session.php
common/base/classes/base_users.php
common/base/classes/base_utf8.php
common/base/classes/base_view.php
common/base/classes/base_warning.php
common/standard/classes/standard_database.php
common/standard/classes/standard_index.php
common/standard/classes/standard_menu.php
common/standard/classes/standard_path.php
common/standard/classes/standard_path_exception.php
common/standard/classes/standard_path_user.php
common/standard/classes/standard_paths.php
common/standard/classes/standard_users.php
common/standard/internal/access_denied.php
common/standard/internal/bad_method.php
common/standard/internal/index.php
common/standard/internal/ja/access_denied.php
common/standard/internal/ja/bad_method.php
common/standard/internal/ja/index.php
common/standard/internal/ja/not_found.php
common/standard/internal/ja/server_error.php
common/standard/internal/not_found.php
common/standard/internal/options.php
common/standard/internal/server_error.php
common/standard/menus/ja/menu_breadcrumbs.php
common/standard/menus/ja/menu_content.php
common/standard/menus/ja/menu_content_user_view.php
common/standard/menus/ja/menu_footer.php
common/standard/menus/ja/menu_header.php
common/standard/menus/ja/menu_utility.php
common/standard/menus/menu_breadcrumbs.php
common/standard/menus/menu_content.php
common/standard/menus/menu_content_user_view.php
common/standard/menus/menu_footer.php
common/standard/menus/menu_header.php
common/standard/menus/menu_utility.php
common/standard/paths/a/administer_content.php
common/standard/paths/a/administer_dashboard.php
common/standard/paths/a/administer_logs.php
common/standard/paths/a/ja/administer_content.php
common/standard/paths/a/ja/administer_dashboard.php
common/standard/paths/a/ja/administer_logs.php
common/standard/paths/c/cache_error.php
common/standard/paths/c/cache_static.php
common/standard/paths/c/ja/cache_error.php
common/standard/paths/c/ja/cache_static.php
common/standard/paths/f/file_by_checksum.php
common/standard/paths/f/file_by_id.php
common/standard/paths/f/file_checksum_by_checksum.php
common/standard/paths/f/file_checksum_by_id.php
common/standard/paths/f/ja/file_by_checksum.php
common/standard/paths/f/ja/file_by_id.php
common/standard/paths/f/ja/file_checksum_by_checksum.php
common/standard/paths/f/ja/file_checksum_by_id.php
common/standard/paths/m/ja/management_content.php
common/standard/paths/m/ja/management_dashboard.php
common/standard/paths/m/ja/management_logs.php
common/standard/paths/m/management_content.php
common/standard/paths/m/management_dashboard.php
common/standard/paths/m/management_logs.php
common/standard/paths/s/ja/submit_form_id.php
common/standard/paths/s/submit_form_id.php
common/standard/paths/u/ja/user_check.php
common/standard/paths/u/ja/user_dashboard.php
common/standard/paths/u/ja/user_delete.php
common/standard/paths/u/ja/user_edit.php
common/standard/paths/u/ja/user_lock.php
common/standard/paths/u/ja/user_login.php
common/standard/paths/u/ja/user_logout.php
common/standard/paths/u/ja/user_refresh.php
common/standard/paths/u/ja/user_session.php
common/standard/paths/u/ja/user_settings.php
common/standard/paths/u/ja/user_unlock.php
common/standard/paths/u/ja/user_view.php
common/standard/paths/u/user_check.php
common/standard/paths/u/user_create.php
common/standard/paths/u/user_dashboard.php
common/standard/paths/u/user_delete.php
common/standard/paths/u/user_edit.php
common/standard/paths/u/user_lock.php
common/standard/paths/u/user_login.php
common/standard/paths/u/user_logout.php
common/standard/paths/u/user_refresh.php
common/standard/paths/u/user_session.php
common/standard/paths/u/user_settings.php
common/standard/paths/u/user_unlock.php
common/standard/paths/u/user_view.php
common/theme/classes/theme_dom.php
common/theme/classes/theme_form.php
common/theme/classes/theme_html.php
common/theme/classes/theme_markup.php
common/view/classes/view_log_users_self.php
documentation/naming.txt
examples/test.php
program/reservation/index.php
program/reservation/reservation_defaults_global.php