/common/libraries/php/autoloader.class.php
PHP | 969 lines | 515 code | 16 blank | 438 comment | 6 complexity | a981e1ffe616efef4e67c0699fbd614d MD5 | raw file
Possible License(s): GPL-2.0, BSD-3-Clause, LGPL-2.1, LGPL-3.0, GPL-3.0, MIT
- <?php
-
- namespace common\libraries;
-
- /**
- * $Id: libraries_autoloader.class.php 236 2009-11-16 12:56:59Z scaramanga $
- *
- * Usage
- *
- * Autoloader::Synch(null, null, true);
- *
- * To update the map with the file system.
- *
- * @package common
- */
- class Autoloader
- {
- private static $map = array(
- 'Application' => '/application.class.php',
- 'ApplicationComponent' => '/application_component.class.php',
- 'Autoloader' => '/autoloader.class.php',
- 'BasicApplication' => '/basic_application.class.php',
- 'Block' => '/block.class.php',
- 'BlockConnectorBase' => '/block_connector_base.class.php',
- 'CoreApplication' => '/core_application.class.php',
- 'CoreApplicationComponent' => '/core_application_component.class.php',
- 'Installer' => '/installer.class.php',
- 'LauncherApplication' => '/launcher_application.class.php',
- 'Redirect' => '/redirect.class.php',
- 'ResourceManager' => '/resource_manager.class.php',
- 'SubManager' => '/sub_manager.class.php',
- 'SubManagerComponent' => '/sub_manager_component.class.php',
- 'Updater' => '/updater.class.php',
- 'Utilities' => '/utilities.class.php',
- 'WebApplication' => '/web_application.class.php',
- 'WebApplicationComponent' => '/web_application_component.class.php',
- 'AjaxManager' => '/ajax/ajax_manager.class.php',
- 'JsonAjaxResult' => '/ajax/json_ajax_result.class.php',
- 'Authentication' => '/authentication/authentication.class.php',
- 'ExternalAuthentication' => '/authentication/external_authentication.class.php',
- 'CasAuthentication' => '/authentication/cas/cas_authentication.class.php',
- 'CasPassword' => '/authentication/cas/cas_password/cas_password.class.php',
- 'DefaultCasPassword' => '/authentication/cas/cas_password/type/default_cas_password.class.php',
- 'LdapCasPassword' => '/authentication/cas/cas_password/type/ldap_cas_password.class.php',
- 'MysqlCasPassword' => '/authentication/cas/cas_password/type/mysql_cas_password.class.php',
- 'WebserviceCasPassword' => '/authentication/cas/cas_password/type/webservice_cas_password.class.php',
- 'InvitationAuthentication' => '/authentication/invitation/invitation_authentication.class.php',
- 'LdapAuthentication' => '/authentication/ldap/ldap_authentication.class.php',
- 'LdapParser' => '/authentication/ldap/ldap_parser.class.php',
- 'PlatformAuthentication' => '/authentication/platform/platform_authentication.class.php',
- 'ShibbolethAuthentication' => '/authentication/shibboleth/shibboleth_authentication.class.php',
- 'CalendarTable' => '/calendar/calendar_table.class.php',
- 'DayCalendar' => '/calendar/day_calendar.class.php',
- 'MiniDayCalendar' => '/calendar/mini_day_calendar.class.php',
- 'MiniMonthCalendar' => '/calendar/mini_month_calendar.class.php',
- 'MiniWeekCalendar' => '/calendar/mini_week_calendar.class.php',
- 'MonthCalendar' => '/calendar/month_calendar.class.php',
- 'WeekCalendar' => '/calendar/week_calendar.class.php',
- 'YearCalendar' => '/calendar/year_calendar.class.php',
- 'AggregateCondition' => '/condition/aggregate_condition.class.php',
- 'AndCondition' => '/condition/and_condition.class.php',
- 'Condition' => '/condition/condition.class.php',
- 'EqualityCondition' => '/condition/equality_condition.class.php',
- 'InequalityCondition' => '/condition/inequality_condition.class.php',
- 'InCondition' => '/condition/in_condition.class.php',
- 'MultipleAggregateCondition' => '/condition/multiple_aggregate_condition.class.php',
- 'NotCondition' => '/condition/not_condition.class.php',
- 'OrCondition' => '/condition/or_condition.class.php',
- 'PatternMatchCondition' => '/condition/pattern_match_condition.class.php',
- 'SubselectCondition' => '/condition/subselect_condition.class.php',
- 'Configuration' => '/configuration/configuration.class.php',
- 'LocalSetting' => '/configuration/local_setting.class.php',
- 'PlatformSetting' => '/configuration/platform_setting.class.php',
- 'CssUtilities' => '/css/css_utilities.class.php',
- 'DatetimeUtilities' => '/datetime/datetime_utilities.class.php',
- 'Timer' => '/datetime/timer.class.php',
- 'DebugUtilities' => '/debug/debug_utilities.class.php',
- 'Diagnoser' => '/diagnoser/diagnoser.class.php',
- 'DiagnoserCellRenderer' => '/diagnoser/diagnoser_cellrenderer.class.php',
- 'Export' => '/export/export.class.php',
- 'CsvExport' => '/export/csv/csv_export.class.php',
- 'ExcelExport' => '/export/excel/excel_export.class.php',
- 'ExcelLayout' => '/export/layout/excel_layout.class.php',
- 'OdsExport' => '/export/ods/ods_export.class.php',
- 'PdfExport' => '/export/pdf/pdf_export.class.php',
- 'XmlExport' => '/export/xml/xml_export.class.php',
- 'FedoraProxy' => '/fedora/fedora_proxy.class.php',
- 'fedora_fs_access_right' => '/fedora/fs/fedora_fs_access_right.class.php',
- 'fedora_fs_base' => '/fedora/fs/fedora_fs_base.class.php',
- 'fedora_fs_datastream' => '/fedora/fs/fedora_fs_datastream.class.php',
- 'fedora_fs_folder' => '/fedora/fs/fedora_fs_folder.class.php',
- 'fedora_fs_history' => '/fedora/fs/fedora_fs_history.class.php',
- 'fedora_fs_itql_query' => '/fedora/fs/fedora_fs_itql_query.class.php',
- 'fedora_fs_lastobjects' => '/fedora/fs/fedora_fs_lastobjects.class.php',
- 'fedora_fs_mystuff' => '/fedora/fs/fedora_fs_mystuff.class.php',
- 'fedora_fs_object' => '/fedora/fs/fedora_fs_object.class.php',
- 'fedora_fs_search' => '/fedora/fs/fedora_fs_search.class.php',
- 'fedora_fs_search_by_id' => '/fedora/fs/fedora_fs_search_by_id.class.php',
- 'fedora_fs_sparql_query' => '/fedora/fs/fedora_fs_sparql_query.class.php',
- 'fedora_fs_store' => '/fedora/fs/fedora_fs_store.class.php',
- 'fedora_fs_subject' => '/fedora/fs/fedora_fs_subject.class.php',
- 'FoxmlReader' => '/fedora/reader/foxml_reader.class.php',
- 'FedoraXmlReader' => '/fedora/reader/xml_reader.class.php',
- 'FedoraXmlReaderTopDownIterator' => '/fedora/reader/xml_reader.class.php',
- 'FedoraXmlReaderEmpty' => '/fedora/reader/xml_reader_empty.class.php',
- 'IteratorEmpty' => '/fedora/reader/xml_reader_empty.class.php',
- 'RestClient' => '/webservice/rest/client/rest_client.class.php',
- 'RestConfig' => '/fedora/rest/rest_config.class.php',
- 'RestProxyBase' => '/fedora/rest/rest_proxy_base.class.php',
- 'RestResult' => '/webservice/rest/client/rest_result.class.php',
- 'FoxmlWriter' => '/fedora/writer/foxml_writer.class.php',
- 'IdFactory' => '/fedora/writer/id_factory.class.php',
- 'XmlWriterBase' => '/fedora/writer/xml_writer_base.class.php',
- 'Filecompression' => '/filecompression/filecompression.class.php',
- 'PclzipFilecompression' => '/filecompression/pclzip/pclzip_filecompression.class.php',
- 'Filesystem' => '/filesystem/filesystem.class.php',
- 'FileLogger' => '/filesystem/file_logger.class.php',
- 'Path' => '/filesystem/path.class.php',
- 'Hashing' => '/hashing/hashing.class.php',
- 'Haval256Hashing' => '/hashing/haval256/haval256_hashing.class.php',
- 'Md5Hashing' => '/hashing/md5/md5_hashing.class.php',
- 'Sha1Hashing' => '/hashing/sha1/sha1_hashing.class.php',
- 'Sha512Hashing' => '/hashing/sha512/sha512_hashing.class.php',
- 'WhirlpoolHashing' => '/hashing/whirlpool/whirlpool_hashing.class.php',
- 'Banner' => '/html/banner.class.php',
- 'BbcodeParser' => '/html/bbcode_parser.class.php',
- 'Breadcrumb' => '/html/breadcrumb.class.php',
- 'BreadcrumbTrail' => '/html/breadcrumb_trail.class.php',
- 'Display' => '/html/display.class.php',
- 'Footer' => '/html/footer.class.php',
- 'Header' => '/html/header.class.php',
- 'Html5Format' => '/html/html5_format.class.php',
- 'Html5MediaValidator' => '/html/html5_media_validator.class.php',
- 'MessageLogger' => '/html/message_logger.class.php',
- 'NotificationMessage' => '/html/notification_message.class.php',
- 'Text' => '/html/text.class.php',
- 'ActionBarRenderer' => '/html/action_bar/action_bar_renderer.class.php',
- 'ActionBarSearchForm' => '/html/action_bar/action_bar_search_form.class.php',
- 'ConditionProperty' => '/html/action_bar/condition_property.class.php',
- 'FormValidator' => '/html/formvalidator/form_validator.class.php',
- 'FormValidatorHtmlEditor' => '/html/formvalidator/form_validator_html_editor.class.php',
- 'FormValidatorHtmlEditorOptions' => '/html/formvalidator/form_validator_html_editor_options.class.php',
- 'FormValidatorHtmlEditorTemplates' => '/html/formvalidator/form_validator_html_editor_templates.class.php',
- 'FormValidatorPage' => '/html/formvalidator/form_validator_page.class.php',
- 'FormValidatorTab' => '/html/formvalidator/form_validator_tab.class.php',
- 'WizardPageValidator' => '/html/formvalidator/wizard_page_validator.class.php',
- 'AdvancedElementFinderElement' => '/html/formvalidator/Element/advanced_element_finder/advanced_element_finder_element.class.php',
- 'AdvancedElementFinderElements' => '/html/formvalidator/Element/advanced_element_finder/advanced_element_finder_elements.class.php',
- 'AdvancedElementFinderElementType' => '/html/formvalidator/Element/advanced_element_finder/advanced_element_finder_element_type.class.php',
- 'AdvancedElementFinderElementTypes' => '/html/formvalidator/Element/advanced_element_finder/advanced_element_finder_element_types.class.php',
- 'FormValidatorCkeditorHtmlEditor' => '/html/formvalidator/html_editor/ckeditor_html_editor.class.php',
- 'FormValidatorTinymceHtmlEditor' => '/html/formvalidator/html_editor/tinymce_html_editor.class.php',
- 'HtmlEditorProcessor' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_processor/html_editor_processor.class.php',
- 'HtmlEditorCkeditorAudioProcessor' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_processor/ckeditor/html_editor_ckeditor_audio_processor.class.php',
- 'HtmlEditorCkeditorDailymotionProcessor' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_processor/ckeditor/html_editor_ckeditor_dailymotion_processor.class.php',
- 'HtmlEditorCkeditorFlashProcessor' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_processor/ckeditor/html_editor_ckeditor_flash_processor.class.php',
- 'HtmlEditorCkeditorFlashVideoProcessor' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_processor/ckeditor/html_editor_ckeditor_flash_video_processor.class.php',
- 'HtmlEditorCkeditorHandbookItemProcessor' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_processor/ckeditor/html_editor_ckeditor_handbook_item_processor.class.php',
- 'HtmlEditorCkeditorImageProcessor' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_processor/ckeditor/html_editor_ckeditor_image_processor.class.php',
- 'HtmlEditorCkeditorVideoProcessor' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_processor/ckeditor/html_editor_ckeditor_video_processor.class.php',
- 'HtmlEditorCkeditorVimeoProcessor' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_processor/ckeditor/html_editor_ckeditor_vimeo_processor.class.php',
- 'HtmlEditorCkeditorYoutubeProcessor' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_processor/ckeditor/html_editor_ckeditor_youtube_processor.class.php',
- 'HtmlEditorRepoViewer' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/html_editor_repo_viewer.class.php',
- 'HtmlEditorAudioRepoViewer' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/audio/html_editor_audio_repo_viewer.class.php',
- 'HtmlEditorAudioRepoViewerBrowserComponent' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/audio/component/browser.class.php',
- 'HtmlEditorAudioRepoViewerCreatorComponent' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/audio/component/creator.class.php',
- 'HtmlEditorAudioRepoViewerViewerComponent' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/audio/component/viewer.class.php',
- 'AudioContentObjectTable' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/audio/component/audio_content_object_table/audio_content_object_table.class.php',
- 'AudioContentObjectTableCellRenderer' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/audio/component/audio_content_object_table/audio_content_object_table_cell_renderer.class.php',
- 'AudioContentObjectTableColumnModel' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/audio/component/audio_content_object_table/audio_content_object_table_column_model.class.php',
- 'AudioContentObjectTableDataProvider' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/audio/component/audio_content_object_table/audio_content_object_table_data_provider.class.php',
- 'HtmlEditorDailymotionRepoViewer' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/dailymotion/html_editor_dailymotion_repo_viewer.class.php',
- 'HtmlEditorFlashRepoViewer' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/flash/html_editor_flash_repo_viewer.class.php',
- 'HtmlEditorFlashRepoViewerBrowserComponent' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/flash/component/browser.class.php',
- 'HtmlEditorFlashRepoViewerCreatorComponent' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/flash/component/creator.class.php',
- 'HtmlEditorFlashRepoViewerViewerComponent' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/flash/component/viewer.class.php',
- 'FlashContentObjectTable' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/flash/component/flash_content_object_table/flash_content_object_table.class.php',
- 'FlashContentObjectTableCellRenderer' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/flash/component/flash_content_object_table/flash_content_object_table_cell_renderer.class.php',
- 'FlashContentObjectTableColumnModel' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/flash/component/flash_content_object_table/flash_content_object_table_column_model.class.php',
- 'FlashContentObjectTableDataProvider' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/flash/component/flash_content_object_table/flash_content_object_table_data_provider.class.php',
- 'HtmlEditorFlashVideoRepoViewer' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/flash_video/html_editor_flash_video_repo_viewer.class.php',
- 'HtmlEditorFlashVideoRepoViewerBrowserComponent' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/flash_video/component/browser.class.php',
- 'HtmlEditorFlashVideoRepoViewerCreatorComponent' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/flash_video/component/creator.class.php',
- 'HtmlEditorFlashVideoRepoViewerViewerComponent' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/flash_video/component/viewer.class.php',
- 'FlashVideoContentObjectTable' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/flash_video/component/flash_video_content_object_table/flash_video_content_object_table.class.php',
- 'FlashVideoContentObjectTableCellRenderer' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/flash_video/component/flash_video_content_object_table/flash_video_content_object_table_cell_renderer.class.php',
- 'FlashVideoContentObjectTableColumnModel' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/flash_video/component/flash_video_content_object_table/flash_video_content_object_table_column_model.class.php',
- 'FlashVideoContentObjectTableDataProvider' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/flash_video/component/flash_video_content_object_table/flash_video_content_object_table_data_provider.class.php',
- 'HtmlEditorHandbookItemRepoViewer' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/handbook_item/html_editor_handbook_item_repo_viewer.class.php',
- 'HtmlEditorHandbookItemRepoViewerBrowserComponent' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/handbook_item/component/browser.class.php',
- 'HtmlEditorHandbookItemRepoViewerCreatorComponent' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/handbook_item/component/creator.class.php',
- 'HtmlEditorHandbookItemRepoViewerViewerComponent' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/handbook_item/component/viewer.class.php',
- 'HandbookItemContentObjectTable' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/handbook_item/component/handbook_item_content_object_table/handbook_item_content_object_table.class.php',
- 'HandbookItemContentObjectTableCellRenderer' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/handbook_item/component/handbook_item_content_object_table/handbook_item_content_object_table_cell_renderer.class.php',
- 'HandbookItemContentObjectTableColumnModel' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/handbook_item/component/handbook_item_content_object_table/handbook_item_content_object_table_column_model.class.php',
- 'HandbookItemContentObjectTableDataProvider' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/handbook_item/component/handbook_item_content_object_table/handbook_item_content_object_table_data_provider.class.php',
- 'HtmlEditorImageRepoViewer' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/image/html_editor_image_repo_viewer.class.php',
- 'HtmlEditorImageRepoViewerBrowserComponent' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/image/component/browser.class.php',
- 'HtmlEditorImageRepoViewerCreatorComponent' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/image/component/creator.class.php',
- 'HtmlEditorImageRepoViewerViewerComponent' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/image/component/viewer.class.php',
- 'ImageContentObjectTable' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/image/component/image_content_object_table/image_content_object_table.class.php',
- 'ImageContentObjectTableCellRenderer' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/image/component/image_content_object_table/image_content_object_table_cell_renderer.class.php',
- 'ImageContentObjectTableColumnModel' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/image/component/image_content_object_table/image_content_object_table_column_model.class.php',
- 'ImageContentObjectTableDataProvider' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/image/component/image_content_object_table/image_content_object_table_data_provider.class.php',
- 'HtmlEditorVideoRepoViewer' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/video/html_editor_video_repo_viewer.class.php',
- 'HtmlEditorVideoRepoViewerComponent' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/video/html_editor_video_repo_viewer_component.class.php',
- 'HtmlEditorVideoRepoViewerBrowserComponent' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/video/component/browser.class.php',
- 'HtmlEditorVideoRepoViewerCreatorComponent' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/video/component/creator.class.php',
- 'HtmlEditorVideoRepoViewerViewerComponent' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/video/component/viewer.class.php',
- 'VideoContentObjectTable' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/video/component/video_content_object_table/video_content_object_table.class.php',
- 'VideoContentObjectTableCellRenderer' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/video/component/video_content_object_table/video_content_object_table_cell_renderer.class.php',
- 'VideoContentObjectTableColumnModel' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/video/component/video_content_object_table/video_content_object_table_column_model.class.php',
- 'VideoContentObjectTableDataProvider' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/video/component/video_content_object_table/video_content_object_table_data_provider.class.php',
- 'HtmlEditorVimeoRepoViewer' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/vimeo/html_editor_vimeo_repo_viewer.class.php',
- 'HtmlEditorYoutubeRepoViewer' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/youtube/html_editor_youtube_repo_viewer.class.php',
- 'HtmlEditorYoutubeRepoViewerBrowserComponent' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/youtube/component/browser.class.php',
- 'HtmlEditorYoutubeRepoViewerCreatorComponent' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/youtube/component/creator.class.php',
- 'HtmlEditorYoutubeRepoViewerViewerComponent' => '/html/formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/youtube/component/viewer.class.php',
- 'FormValidatorCkeditorHtmlEditorOptions' => '/html/formvalidator/html_editor_options/ckeditor_html_editor_options.class.php',
- 'FormValidatorTinymceHtmlEditorOptions' => '/html/formvalidator/html_editor_options/tinymce_html_editor_options.class.php',
- 'FormValidatorCkeditorHtmlEditorTemplates' => '/html/formvalidator/html_editor_templates/ckeditor_html_editor_templates.class.php',
- 'FormValidatorTinymceHtmlEditorTemplates' => '/html/formvalidator/html_editor_templates/tinymce_html_editor_templates.class.php',
- 'ChamiloTemplate' => '/html/layout/chamilo_template.class.php',
- 'ChamiloTemplateCompiler' => '/html/layout/chamilo_template_compiler.class.php',
- 'Phpbb2TemplateWrapper' => '/html/layout/phpbb2_template_wrapper.class.php',
- 'TemplateCache' => '/html/layout/template_cache.class.php',
- 'Theme' => '/html/layout/theme.class.php',
- 'ThemeManager' => '/html/layout/theme_manager.class.php',
- 'DatabaseTemplateCache' => '/html/layout/template_cache/database_template_cache.class.php',
- 'FileTemplateCache' => '/html/layout/template_cache/file_template_cache.class.php',
- 'CollapsedTreeMenuRenderer' => '/html/menu/collapsed_tree_menu_renderer.class.php',
- 'DragAndDropTreeMenuRenderer' => '/html/menu/drag_and_drop_tree_menu_renderer.class.php',
- 'OptionsMenuRenderer' => '/html/menu/options_menu_renderer.class.php',
- 'TreeMenuRenderer' => '/html/menu/tree_menu_renderer.class.php',
- 'XmlTreeMenuRenderer' => '/html/menu/xml_tree_menu_renderer.class.php',
- 'GenericTree' => '/html/menu/tree_menu/generic_tree.class.php',
- 'TreeMenu' => '/html/menu/tree_menu/tree_menu.class.php',
- 'TreeMenuDataProvider' => '/html/menu/tree_menu/tree_menu_data_provider.class.php',
- 'TreeMenuItem' => '/html/menu/tree_menu/tree_menu_item.class.php',
- 'GalleryTable' => '/html/table/gallery_table.class.php',
- 'GalleryTableFromArray' => '/html/table/gallery_table.class.php',
- 'PropertiesTable' => '/html/table/properties_table.class.php',
- 'SimpleTable' => '/html/table/simple_table.class.php',
- 'SortableTable' => '/html/table/sortable_table.class.php',
- 'SortableTableFromArray' => '/html/table/sortable_table.class.php',
- 'StaticTableColumn' => '/html/table/static_table_column.class.php',
- 'TableColumn' => '/html/table/table_column.class.php',
- 'TableSort' => '/html/table/table_sort.class.php',
- 'GalleryObjectTable' => '/html/table/gallery_object_table/gallery_object_table.class.php',
- 'GalleryObjectTableCellRenderer' => '/html/table/gallery_object_table/gallery_object_table_cell_renderer.class.php',
- 'GalleryObjectTableDataProvider' => '/html/table/gallery_object_table/gallery_object_table_data_provider.class.php',
- 'GalleryObjectTableProperty' => '/html/table/gallery_object_table/gallery_object_table_property.class.php',
- 'GalleryObjectTablePropertyModel' => '/html/table/gallery_object_table/gallery_object_table_property_model.class.php',
- 'ObjectTable' => '/html/table/object_table/object_table.class.php',
- 'ObjectTableCellRenderer' => '/html/table/object_table/object_table_cell_renderer.class.php',
- 'ObjectTableColumn' => '/html/table/object_table/object_table_column.class.php',
- 'ObjectTableColumnModel' => '/html/table/object_table/object_table_column_model.class.php',
- 'ObjectTableDataProvider' => '/html/table/object_table/object_table_data_provider.class.php',
- 'ObjectTableFormAction' => '/html/table/object_table/object_table_form_action.class.php',
- 'ObjectTableFormActions' => '/html/table/object_table/object_table_form_actions.class.php',
- 'ObjectTableOrder' => '/html/table/object_table/object_table_order.class.php',
- 'DynamicAction' => '/html/tabs/dynamic_action.class.php',
- 'DynamicActionsTab' => '/html/tabs/dynamic_actions_tab.class.php',
- 'DynamicContentTab' => '/html/tabs/dynamic_content_tab.class.php',
- 'DynamicFormTab' => '/html/tabs/dynamic_form_tab.class.php',
- 'DynamicFormTabsRenderer' => '/html/tabs/dynamic_form_tabs_renderer.class.php',
- 'DynamicTab' => '/html/tabs/dynamic_tab.class.php',
- 'DynamicTabsRenderer' => '/html/tabs/dynamic_tabs_renderer.class.php',
- 'DynamicVisualTab' => '/html/tabs/dynamic_visual_tab.class.php',
- 'DynamicVisualTabsRenderer' => '/html/tabs/dynamic_visual_tabs_renderer.class.php',
- 'Toolbar' => '/html/toolbar/toolbar.class.php',
- 'ToolbarItem' => '/html/toolbar/toolbar_item.class.php',
- 'HttpHeader' => '/http/http_header.class.php',
- 'ImageManipulation' => '/image_manipulation/image_manipulation.class.php',
- 'GdImageManipulation' => '/image_manipulation/gd/gd_image_manipulation.class.php',
- 'Import' => '/import/import.class.php',
- 'Ceo' => '/ims/chamilo/ceo.class.php',
- 'Chamilo' => '/ims/chamilo/chamilo.class.php',
- 'Log' => '/ims/chamilo/log.class.php',
- 'OnlineLog' => '/ims/chamilo/log.class.php',
- 'EmptyLog' => '/ims/chamilo/log.class.php',
- 'ObjectCache' => '/ims/chamilo/object_cache.class.php',
- 'BufferedObjectExport' => '/ims/chamilo/export/buffered_object_export.class.php',
- 'EmptyObjectExport' => '/ims/chamilo/export/empty_object_export.class.php',
- 'ObjectExportFactory' => '/ims/chamilo/export/object_export_factory.class.php',
- 'ObjectExportSettings' => '/ims/chamilo/export/object_export_settings.class.php',
- 'BufferedObjectImport' => '/ims/chamilo/import/buffered_object_import.class.php',
- 'EmptyObjectImport' => '/ims/chamilo/import/empty_object_import.class.php',
- 'ObjectImportFactory' => '/ims/chamilo/import/object_import_factory.class.php',
- 'ObjectImportSettings' => '/ims/chamilo/import/object_import_settings.class.php',
- 'ImsIdFactory' => '/ims/common/ims_id_factory.class.php',
- 'ImsXmlReader' => '/ims/common/reader/ims_xml_reader.class.php',
- 'ImsXmlReaderTopDownIterator' => '/ims/common/reader/ims_xml_reader.class.php',
- 'ImsXmlReaderEmpty' => '/ims/common/reader/ims_xml_reader_empty.class.php',
- 'ImsIteratorEmpty' => '/ims/common/reader/ims_xml_reader_empty.class.php',
- 'ImsXmlWriter' => '/ims/common/writer/ims_xml_writer.class.php',
- 'LomWriter' => '/ims/common/writer/lom_writer.class.php',
- 'Cp' => '/ims/cp/cp.class.php',
- 'ImscpManifestReader' => '/ims/cp/reader/imscp_manifest_reader.class.php',
- 'ImscpObjectReader' => '/ims/cp/reader/imscp_object_reader.class.php',
- 'ImscpManifestWriter' => '/ims/cp/writer/imscp_manifest_writer.class.php',
- 'ImscpObjectWriter' => '/ims/cp/writer/imscp_object_writer.class.php',
- 'DebugUtil2' => '/ims/lib/debug_util.class.php',
- 'FileUtil' => '/ims/lib/file_util.class.php',
- 'MathML' => '/ims/lib/math_ml.class.php',
- 'shape' => '/ims/lib/shape.class.php',
- 'Wildcard' => '/ims/lib/wildcard.class.php',
- 'Xhtml' => '/ims/lib/xhtml.class.php',
- 'Qti' => '/ims/qti/qti.class.php',
- 'QtiEmptyResourceManager' => '/ims/qti/qti_empty_resource_manager.class.php',
- 'QtiExportResourceManager' => '/ims/qti/qti_export_resource_manager.class.php',
- 'QtiImportResourceManager' => '/ims/qti/qti_import_resource_manager.class.php',
- 'QtiInterpreter' => '/ims/qti/qti_interpreter.class.php',
- 'QtiPartialRenderer' => '/ims/qti/qti_partial_renderer.class.php',
- 'QtiRendererBase' => '/ims/qti/qti_renderer_base.class.php',
- 'QtiResourceManagerBase' => '/ims/qti/qti_resource_manager_base.class.php',
- 'QtiImportStrategyBase' => '/ims/qti/import_strategy/qti_import_strategy_base.class.php',
- 'QtiImportStrategyChain' => '/ims/qti/import_strategy/qti_import_strategy_chain.class.php',
- 'QtiImportStrategyEmpty' => '/ims/qti/import_strategy/qti_import_strategy_empty.class.php',
- 'QtiImportStrategyFailover' => '/ims/qti/import_strategy/qti_import_strategy_failover.class.php',
- 'QtiImportStrategyGeneric' => '/ims/qti/import_strategy/qti_import_strategy_generic.class.php',
- 'QtiImportStrategyText' => '/ims/qti/import_strategy/qti_import_strategy_text.class.php',
- 'QtiMoodleReimportStrategy' => '/ims/qti/import_strategy/qti_moodle_reimport_strategy.class.php',
- 'ImsQtiReader' => '/ims/qti/reader/ims_qti_reader.class.php',
- 'ImsQtiWriter' => '/ims/qti/writer/ims_qti_writer.class.php',
- 'AdministrationComponent' => '/interface/administration_component.class.php',
- 'NoContextComponent' => '/interface/no_context_component.class.php',
- 'AttachmentSupport' => '/interface/attachment_support.class.php',
- 'Categorizable' => '/interface/categorizable.class.php',
- 'ChangeablePassword' => '/interface/changeable_password.class.php',
- 'ChangeableUsername' => '/interface/changeable_username.class.php',
- 'ComplexContentObjectDisclosure' => '/interface/complex_content_object_disclosure.class.php',
- 'ComplexContentObjectSupport' => '/interface/complex_content_object_support.class.php',
- 'ComplexMenuSupport' => '/interface/complex_menu_support.class.php',
- 'DelegateComponent' => '/interface/delegate_component.class.php',
- 'ForcedVersionSupport' => '/interface/forced_version_support.class.php',
- 'HelperContentObjectSupport' => '/interface/helper_content_object_support.class.php',
- 'UserRegistrationSupport' => '/interface/user_registration_support.class.php',
- 'Versionable' => '/interface/versionable.class.php',
- 'JavascriptUtilities' => '/javascript/javascript_utilities.class.php',
- 'AttachmentViewerLauncher' => '/launcher/attachment_viewer/attachment_viewer_launcher.class.php',
- 'ComplexBuilderLauncher' => '/launcher/complex_builder/complex_builder_launcher.class.php',
- 'ComplexDisplayPreviewLauncher' => '/launcher/complex_display_preview/complex_display_preview_launcher.class.php',
- 'ExternalRepositoryLauncher' => '/launcher/external_repository/external_repository_launcher.class.php',
- 'HtmlEditorFileLauncher' => '/launcher/html_editor_file/html_editor_file_launcher.class.php',
- 'RepoViewerLauncher' => '/launcher/repo_viewer/repo_viewer_launcher.class.php',
- 'VideoConferencingLauncher' => '/launcher/video_conferencing/video_conferencing_launcher.class.php',
- 'Mail' => '/mail/mail.class.php',
- 'DefaultMail' => '/mail/default/default_mail.class.php',
- 'PhpmailerMail' => '/mail/phpmailer/phpmailer_mail.class.php',
- 'MimeUtil' => '/mime/mime_util.class.php',
- 'PublicationRSS' => '/rss/publication_rss.class.php',
- 'RSSEngine' => '/rss/rss_engine.class.php',
- 'BasicRSS' => '/rss/builders/basic_rss.class.php',
- 'CombinedRSS' => '/rss/builders/combined_rss.class.php',
- 'Channel' => '/rss/objects/channel.class.php',
- 'CombinedChannel' => '/rss/objects/combined_channel.class.php',
- 'RSSStream' => '/rss/objects/rss_stream.class.php',
- 'Security' => '/security/security.class.php',
- 'Cookie' => '/session/cookie.class.php',
- 'Request' => '/session/request.class.php',
- 'Session' => '/session/session.class.php',
- 'session_handler' => '/session/session_handler.class.php',
- 'ArrayResultSet' => '/storage/array_result_set.class.php',
- 'ConditionTranslator' => '/storage/condition_translator.class.php',
- 'DataClass' => '/storage/data_class.class.php',
- 'NestedTreeNode' => '/storage/nested_tree_node.class.php',
- 'ResultSet' => '/storage/result_set.class.php',
- 'StorageAliasGenerator' => '/storage/storage_alias_generator.class.php',
- 'Mdb2ConditionTranslator' => '/storage/mdb2/condition_translator.class.php',
- 'Mdb2Connection' => '/storage/mdb2/connection.class.php',
- 'Mdb2Database' => '/storage/mdb2/database.class.php',
- 'Mdb2ResultSet' => '/storage/mdb2/result_set.class.php',
- 'DatabaseBackup' => '/storage/mdb2/backup/database_backup.class.php',
- 'MysqlBackup' => '/storage/mdb2/backup/types/mysql_backup.class.php',
- 'SimpleTemplate' => '/string/simple_template.class.php',
- 'StringUtilities' => '/string/string_utilities.class.php',
- 'CacheData' => '/system_cache/cache_data.class.php',
- 'CacheDataManager' => '/system_cache/cache_data_manager.class.php',
- 'CacheDataTransient' => '/system_cache/cache_data_transient.class.php',
- 'CacheSynch' => '/system_cache/cache_synch.class.php',
- 'ClientCache' => '/system_cache/client_cache.class.php',
- 'ExitAction' => '/system_cache/exit_action.class.php',
- 'FileCache' => '/system_cache/file_cache.class.php',
- 'ResourceCache' => '/system_cache/resource_cache.class.php',
- 'SystemCache' => '/system_cache/system_cache.class.php',
- 'ChamiloTestSuite' => '/test/chamilo_test_suite.class.php',
- 'Translation' => '/translation/translation.class.php',
- 'application_generator\MyTemplate' => '/util/application_generator/my_template.class.php',
- 'application_generator\AutoloaderGenerator' => '/util/application_generator/autoloader_generator/autoloader_generator.class.php',
- 'application_generator\ComponentGenerator' => '/util/application_generator/component_generator/component_generator.class.php',
- 'application_generator\DataClassGenerator' => '/util/application_generator/data_class_generator/data_class_generator.class.php',
- 'application_generator\DataManagerGenerator' => '/util/application_generator/data_manager_generator/data_manager_generator.class.php',
- 'application_generator\FormGenerator' => '/util/application_generator/form_generator/form_generator.class.php',
- 'application_generator\InstallGenerator' => '/util/application_generator/install_generator/install_generator.class.php',
- 'application_generator\ManagerGenerator' => '/util/application_generator/manager_generator/manager_generator.class.php',
- 'application_generator\PackageInfoGenerator' => '/util/application_generator/package_info_generator/package_info_generator.class.php',
- 'application_generator\RightsGenerator' => '/util/application_generator/rights_generator/rights_generator.class.php',
- 'application_generator\SortableTableGenerator' => '/util/application_generator/sortable_table_generator/sortable_table_generator.class.php',
- 'content_object_generator\MyTemplate' => '/util/content_object_generator/my_template.class.php',
- 'content_object_generator\AdditionalClassGenerator' => '/util/content_object_generator/additional_class_generator/additional_class_generator.class.php',
- 'content_object_generator\DataClassGenerator' => '/util/content_object_generator/data_class_generator/data_class_generator.class.php',
- 'content_object_generator\FormGenerator' => '/util/content_object_generator/form_generator/form_generator.class.php',
- 'content_object_generator\PackageInfoGenerator' => '/util/content_object_generator/package_info_generator/package_info_generator.class.php',
- 'RssIconGenerator' => '/util/rss_icon_generator/rss_icon_generator.class.php',
- 'CodeUtilities' => '/util/various/code_utilities.class.php',
- 'AutoloaderUtilities' => '/util/various/autoloader_utilities.class.php',
- 'Validator' => '/validator/validator.class.php',
- 'Webservice' => '/webservice/webservice.class.php',
- 'WebserviceAuthentication' => '/webservice/authentication/webservice_authentication.class.php',
- 'ChamiloWebserviceAuthentication' => '/webservice/authentication/chamilo/chamilo_webservice_authentication.class.php',
- 'DigestWebserviceAuthentication' => '/webservice/authentication/digest/digest_webservice_authentication.class.php',
- 'OauthWebserviceAuthentication' => '/webservice/authentication/oauth/oauth_webservice_authentication.class.php',
- 'ChamiloRestServer' => '/webservice/rest/chamilo_rest_server.class.php',
- 'NoAuthenticationWebservice' => '/webservice/rest/no_authentication_webservice.class.php',
- 'RestMessageRenderer' => '/webservice/rest/rest_message_renderer.class.php',
- 'RestServer' => '/webservice/rest/rest_server.class.php',
- 'SuccessRestMessage' => '/webservice/rest/success_rest_message.class.php',
- 'WebserviceHandler' => '/webservice/rest/webservice_handler.class.php',
- 'RestAuthentication' => '/webservice/rest/client/rest_authentication.class.php',
- 'RestData' => '/webservice/rest/client/rest_data.class.php',
- 'CurlBasicRestAuthentication' => '/webservice/rest/client/authentication/curl/curl_basic_rest_authentication.class.php',
- 'CurlDigestRestAuthentication' => '/webservice/rest/client/authentication/curl/curl_digest_rest_authentication.class.php',
- 'CurlRestClient' => '/webservice/rest/client/type/pear_rest_client.class.php',
- 'FormRestData' => '/webservice/rest/client/data/form_data.class.php',
- 'PlainRestData' => '/webservice/rest/client/data/plain_data.class.php',
- 'UrlRestData' => '/webservice/rest/client/data/url_data.class.php',
- 'HtmlRestResult' => '/webservice/rest/client/result/html_rest_result.class.php',
- 'JsonRestResult' => '/webservice/rest/client/result/json_rest_result.class.php',
- 'PlainRestResult' => '/webservice/rest/client/result/plain_rest_result.class.php',
- 'XmlRestResult' => '/webservice/rest/client/result/xml_rest_result.class.php',
- 'CreateObjectWebserviceHandler' => '/webservice/rest/handler/create_object_webservice_handler.class.php',
- 'DeleteObjectWebserviceHandler' => '/webservice/rest/handler/delete_object_webservice_handler.class.php',
- 'GetObjectListWebserviceHandler' => '/webservice/rest/handler/get_object_list_webservice_handler.class.php',
- 'GetObjectWebserviceHandler' => '/webservice/rest/handler/get_object_webservice_handler.class.php',
- 'UpdateObjectWebserviceHandler' => '/webservice/rest/handler/update_object_webservice_handler.class.php',
- 'HtmlRestMessageRenderer' => '/webservice/rest/rest_message_renderer/html_rest_message_renderer.class.php',
- 'JsonRestMessageRenderer' => '/webservice/rest/rest_message_renderer/json_rest_message_renderer.class.php',
- 'PlainRestMessageRenderer' => '/webservice/rest/rest_message_renderer/plain_rest_message_renderer.class.php',
- 'XmlRestMessageRenderer' => '/webservice/rest/rest_message_renderer/xml_rest_message_renderer.class.php',
- 'SoapNusoapWebservice' => '/webservice/soap/nusoap/soap_nusoap_webservice.class.php',
- 'XMLUtilities' => '/xml/xml_utilities.class.php',
- 'CommonAjaxGroupsFeed' => '/ajax/groups_feed.class.php'
- );
-
-
- // public static $class_name;
- // public static $lower_case;
-
- static function load($classname)
- {
- if (isset(self::$map[$classname]))
- {
- require_once __DIR__ . self::$map[$classname];
- return true;
- }
-
- return false; //to check
- // include_once(__DIR__ . '/util/various/code_utilities.class.php');
- // self :: $class_name = $classname;
- // self :: $lower_case = Utilities :: camelcase_to_underscores(self :: $class_name);
- // if (self :: check_first())
- // {
- // return true;
- // }
- // if (self :: check_for_system_cache_files())
- // {
- // return true;
- // }
- //
- // if (self :: check_for_http_files())
- // {
- // return true;
- // }
- //
- // if (self :: load_files_with_same_directory_name())
- // {
- // return true;
- // }
- //
- // if (self :: check_for_utilities_files())
- // {
- // return true;
- // }
- //
- // if (self :: check_for_html_files())
- // {
- // return true;
- // }
- //
- // if (self :: check_for_fedora_files())
- // {
- // return true;
- // }
- //
- // if (self :: check_for_interface_files())
- // {
- // return true;
- // }
- //
- // if (self :: check_for_general_files())
- // {
- // return true;
- // }
- //
- // if (self :: check_for_conditions())
- // {
- // return true;
- // }
- //
- // if (self :: check_for_calendar_files())
- // {
- // return true;
- // }
- //
- // if (self :: check_for_special_files())
- // {
- // return true;
- // }
- //
- // if (self :: check_for_launcher_files())
- // {
- // return true;
- // }
- //
- // if (self :: check_for_storage_files())
- // {
- // return true;
- // }
- //
- // if (self :: check_for_ims_files())
- // {
- // return true;
- // }
- //
- // if (self :: check_for_webservice_files())
- // {
- // return true;
- // }
- //
- // return false;
- }
-
- /**
- * Synchronize the autoloader map with the current file structure.
- *
- * Searches all files and sub directories for class declarations.
- * Creates a map of class name to (relative) file path.
- * Update the autoloader with the map declaration if $update equals true.
- * Returns a map of class name to file path.
- *
- * @param string $current_dir The current directory in which we search for class declarations
- * @param string $root_dir The root directory. The one containing the autoloader declaration
- * @param bool $update If true update the autoloader file if one exists. If false only returns the result.
- * @return array Array mapping class name to (not relative) path
- */
- public static function synch($current_dir = null, $root_dir = null, $update = false)
- {
- $result = array();
- $current_dir = $current_dir ? $current_dir : __DIR__;
- $root_dir = $root_dir ? $root_dir : __DIR__;
-
- //plugins are not handled by the autoloader.
- if (basename($current_dir) == 'plugin')
- {
- return $result;
- }
-
- $files = Filesystem::get_directory_content($current_dir, Filesystem::LIST_FILES, false);
- foreach ($files as $file)
- {
- if ($file == 'autoloader.class.php')
- {
- $root_dir = $current_dir;
- break;
- }
- }
-
- foreach ($files as $file)
- {
- if (StringUtilities::end_with($file, '.class.php', false))
- {
- $content = file_get_contents($current_dir . '/' . $file);
- $content = CodeUtilities::remove_comments($content); //comments may contains class declaration we don't want to capture.
- $classes = CodeUtilities::get_classes($content);
-
- $namespace = CodeUtilities::get_namespace($content);
- $namespace = $namespace ? $namespace . '\\' : '';
-
- foreach ($classes as $class)
- {
- /* a few classes have the same namespace and class name
- * in this case we let the latest win as this may
- * relates to different autoloader.
- */
- $result[$namespace . $class] = $current_dir . '/' . $file;
- }
- }
- }
-
- $directories = Filesystem::get_directory_content($current_dir, Filesystem::LIST_DIRECTORIES, false);
- foreach ($directories as $dir)
- {
- $items = self::synch($current_dir . '/' . $dir, $root_dir, $update);
- $result = array_merge($result, $items);
- }
- //ksort($result);
-
- if ($current_dir == $root_dir && $update)
- {
- //an autoloader may not exist. For example for p
- $autoloader_path = $root_dir . '/autoloader.class.php';
- if (is_readable($autoloader_path))
- {
- $text = file_get_contents($autoloader_path);
- $autoloader_namespace = CodeUtilities::get_namespace($text);
- $autoloader_namespace = $autoloader_namespace ? $autoloader_namespace . '\\' : '';
-
- $format = ' private static ' . '$map = array(' . "\n"; //use concat to avoid a false positive
- foreach ($result as $key => $path)
- {
- $key = str_replace($autoloader_namespace, '', $key);
- $path = CodeUtilities::relative_path($root_dir, $path);
- $format .= " '$key' => '$path',\n";
- }
- $format .= " );\n";
-
- //remove existing map if it exists
- $array_pattern = '/\s*private\s*static\s*\$map.*\)\;/isU';
- $text = preg_replace($array_pattern, '', $text);
-
- //add map declaration to the start of the class
- $text = preg_replace_callback(CodeUtilities::CLASS_PATTERN, function($match) use($format)
- {
- return reset($match) . "\n" . $format;
- }, $text);
- file_put_contents($autoloader_path, $text);
- }
- }
-
- return $result;
- }
-
- // /**
- // * We first check those files are the most often required.
- // * To speed up loading.
- // * I.e. those called in CSS/Javascript when hitting the cache.
- // *
- // * @return bool
- // */
- // static function check_first()
- // {
- // static $check_first_list = null;
- // if (empty($check_first_list))
- // {
- // $check_first_list = array('session' => 'session/session.class.php',
- // 'request' => 'session/request.class.php', 'configuration' => 'configuration/configuration.class.php',
- // 'security' => 'security/security.class.php', 'http_header' => 'http/http_header.class.php',
- // 'javascript_utilities' => 'javascript/javascript_utilities.class.php',
- // 'client_cache' => 'system_cache/client_cache.class.php',
- // 'css_utilities' => 'css/css_utilities.class.php');
- // }
- // $lower_case = self :: $lower_case;
- //
- // if (isset($check_first_list[$lower_case]))
- // {
- // $url = $check_first_list[$lower_case];
- // require_once __DIR__ . '/' . $url;
- // return true;
- // }
- //
- // return false;
- // }
- //
- // static function check_directory($directory, $recursive = true)
- // {
- // $files = scandir($directory);
- // $files = array_diff($files, array('.', '..'));
- // foreach ($files as $file)
- // {
- // if (is_dir($directory . '/' . $file) && $recursive)
- // {
- // if ($result = self :: check_directory($directory . '/' . $file, $recursive))
- // {
- // return true;
- // }
- // } else
- // {
- // $name = str_replace('.class.php', '', $file);
- // $lower_case = self :: $lower_case;
- // if ($name == $lower_case)
- // {
- // require_once $directory . '/' . $file;
- // }
- // }
- // }
- // return false;
- // }
- //
- // static function check_for_webservice_files()
- // {
- // static $check_for_webservice_files_list = null;
- // if (empty($check_for_webservice_files_list))
- // {
- // $check_for_webservice_files_list = array('rest_message_renderer' => 'rest/rest_message_renderer.class.php',
- // 'rest_client' => 'rest/client/rest_client.class.php',
- // 'rest_result' => 'rest/client/rest_result.class.php',
- // 'rest_authentication' => 'rest/client/rest_authentication.class.php',
- // 'curl_digest_rest_authentication' => 'rest/client/authentication/curl/curl_digest_rest_authentication.class.php',
- // 'curl_basic_rest_authentication' => 'rest/client/authentication/curl/curl_basic_rest_authentication.class.php',
- // 'rest_data' => 'rest/client/rest_data.class.php');
- // }
- // $lower_case = self :: $lower_case;
- //
- // if (array_key_exists($lower_case, $check_for_webservice_files_list))
- // {
- // $url = $check_for_webservice_files_list[$lower_case];
- // require_once dirname(__FILE__) . '/webservice/' . $url;
- // return true;
- // }
- //
- // return false;
- // }
- //
- // static function check_for_ims_files()
- // {
- // if (self :: check_directory(dirname(__FILE__) . '/ims/lib'))
- // {
- // return true;
- // }
- // if (self :: check_directory(dirname(__FILE__) . '/ims/common'))
- // {
- // return true;
- // }
- // if (self :: check_directory(dirname(__FILE__) . '/ims/qti'))
- // {
- // return true;
- // }
- // if (self :: check_directory(dirname(__FILE__) . '/ims/cp'))
- // {
- // return true;
- // }
- // if (self :: check_directory(dirname(__FILE__) . '/ims/chamilo'))
- // {
- // return true;
- // }
- // return false;
- // }
- //
- // static function check_for_storage_files()
- // {
- // $list = array('result_set' => 'result_set', 'array_result_set' => 'array_result_set',
- // 'storage_alias_generator' => 'storage_alias_generator', 'data_class' => 'data_class',
- // 'condition_translator' => 'condition_translator', 'nested_tree_node' => 'nested_tree_node',
- // 'mdb2_connection' => 'mdb2/connection', 'mdb2_result_set' => 'mdb2/result_set',
- // 'mdb2_database' => 'mdb2/database', 'mdb2_condition_translator' => 'mdb2/condition_translator');
- //
- // $lower_case = self :: $lower_case;
- //
- // if (key_exists($lower_case, $list))
- // {
- // $url = $list[$lower_case];
- // require_once dirname(__FILE__) . '/storage/' . $url . '.class.php';
- // return true;
- // }
- //
- // return false;
- // }
- //
- // static function check_for_calendar_files()
- // {
- // $list = array('calendar_table', 'day_calendar', 'mini_day_calendar', 'mini_month_calendar',
- // 'mini_week_calendar', 'month_calendar', 'week_calendar', 'year_calendar');
- // $lower_case = self :: $lower_case;
- //
- // if (in_array($lower_case, $list))
- // {
- // require_once dirname(__FILE__) . '/calendar/' . $lower_case . '.class.php';
- // return true;
- // }
- //
- // return false;
- // }
- //
- // static function check_for_system_cache_files()
- // {
- // $list = array('resource_cache', 'client_cache', 'cache_synch', 'file_cache', 'cache_data', 'system_cache',
- // 'exit_action', 'cache_data_transient');
- // $lower_case = self :: $lower_case;
- //
- // if (in_array($lower_case, $list))
- // {
- // require_once dirname(__FILE__) . '/system_cache/' . $lower_case . '.class.php';
- // return true;
- // }
- //
- // return false;
- // }
- //
- // static function check_for_http_files()
- // {
- // $list = array('http_header');
- // $lower_case = self :: $lower_case;
- //
- // if (in_array($lower_case, $list))
- // {
- // require_once dirname(__FILE__) . '/http/' . $lower_case . '.class.php';
- // return true;
- // }
- //
- // return false;
- // }
- //
- // static function load_files_with_same_directory_name()
- // {
- // $list = array('authentication', 'configuration', 'database', 'datetime', 'debug', 'diagnoser', 'export',
- // 'filecompression', 'filesystem', 'hashing', 'image_manipulation', 'import', 'mail', 'security',
- // 'session', 'string', 'translation', 'validator', 'xml', 'webservice');
- //
- // $lower_case = self :: $lower_case;
- //
- // if (in_array($lower_case, $list))
- // {
- // require_once dirname(__FILE__) . '/' . $lower_case . '/' . $lower_case . '.class.php';
- // return true;
- // }
- //
- // return false;
- // }
- //
- // static function check_for_utilities_files()
- // {
- //
- // $list = array('datetime_utilities' => 'datetime', 'debug_utilities' => 'debug', 'string_utilities' => 'string',
- // 'simple_template' => 'string', 'xml_utilities' => 'xml');
- //
- // $lower_case = self :: $lower_case;
- //
- // if (array_key_exists($lower_case, $list))
- // {
- // require_once dirname(__FILE__) . '/' . $list[$lower_case] . '/' . $lower_case . '.class.php';
- // return true;
- // } else
- // {
- // return false;
- // }
- // }
- //
- // static function check_for_html_files()
- // {
- // $list = array('bbcode_parser' => 'bbcode_parser.class.php', 'breadcrumb_trail' => 'breadcrumb_trail.class.php',
- // 'breadcrumb' => 'breadcrumb.class.php',
- // 'dynamic_form_tabs_renderer' => 'tabs/dynamic_form_tabs_renderer.class.php',
- // 'dynamic_tabs_renderer' => 'tabs/dynamic_tabs_renderer.class.php',
- // 'dynamic_visual_tabs_renderer' => 'tabs/dynamic_visual_tabs_renderer.class.php',
- // 'dynamic_tab' => 'tabs/dynamic_tab.class.php', 'dynamic_action' => 'tabs/dynamic_action.class.php',
- // 'dynamic_actions_tab' => 'tabs/dynamic_actions_tab.class.php',
- // 'dynamic_content_tab' => 'tabs/dynamic_content_tab.class.php',
- // 'dynamic_visual_tab' => 'tabs/dynamic_visual_tab.class.php',
- // 'dynamic_form_tab' => 'tabs/dynamic_form_tab.class.php', 'display' => 'display.class.php',
- // 'notification_message' => 'notification_message.class.php', 'header' => 'header.class.php',
- // 'footer' => 'footer.class.php', 'text' => 'text.class.php',
- // 'message_logger' => 'message_logger.class.php', 'theme' => 'layout/theme.class.php',
- // 'theme_manager' => 'layout/theme_manager.class.php',
- // 'phpbb2_template_wrapper' => 'layout/phpbb2_template_wrapper.class.php',
- // 'chamilo_template' => 'layout/chamilo_template.class.php', 'toolbar' => 'toolbar/toolbar.class.php',
- // 'toolbar_item' => 'toolbar/toolbar_item.class.php', 'simple_table' => 'table/simple_table.class.php',
- // 'properties_table' => 'table/properties_table.class.php',
- // 'gallery_table' => 'table/gallery_table.class.php',
- // 'gallery_table_from_array' => 'table/gallery_table.class.php',
- // 'sortable_table' => 'table/sortable_table.class.php',
- // 'sortable_table_from_array' => 'table/sortable_table.class.php',
- // 'static_table_column' => 'table/static_table_column.class.php',
- // 'table_column' => 'table/table_column.class.php', 'table_sort' => 'table/table_sort.class.php',
- // 'object_table_cell_renderer' => 'table/object_table/object_table_cell_renderer.class.php',
- // 'object_table_column_model' => 'table/object_table/object_table_column_model.class.php',
- // 'object_table_column' => 'table/object_table/object_table_column.class.php',
- // 'object_table_data_provider' => 'table/object_table/object_table_data_provider.class.php',
- // 'object_table_form_action' => 'table/object_table/object_table_form_action.class.php',
- // 'object_table_form_actions' => 'table/object_table/object_table_form_actions.class.php',
- // 'object_table_order' => 'table/object_table/object_table_order.class.php',
- // 'object_table' => 'table/object_table/object_table.class.php',
- // 'gallery_object_table_cell_renderer' => 'table/gallery_object_table/gallery_object_table_cell_renderer.class.php',
- // 'gallery_object_table_property_model' => 'table/gallery_object_table/gallery_object_table_property_model.class.php',
- // 'gallery_object_table_property' => 'table/gallery_object_table/gallery_object_table_property.class.php',
- // 'gallery_object_table_data_provider' => 'table/gallery_object_table/gallery_object_table_data_provider.class.php',
- // 'gallery_object_table' => 'table/gallery_object_table/gallery_object_table.class.php',
- // 'drag_and_drop_tree_menu_renderer' => 'menu/drag_and_drop_tree_menu_renderer.class.php',
- // 'options_menu_renderer' => 'menu/options_menu_renderer.class.php',
- // 'tree_menu_renderer' => 'menu/tree_menu_renderer.class.php',
- // 'xml_tree_menu_renderer' => 'menu/xml_tree_menu_renderer.class.php',
- // 'generic_tree' => 'menu/tree_menu/generic_tree.class.php',
- // 'wizard_page_validator' => 'formvalidator/wizard_page_validator.class.php',
- // 'form_validator' => 'formvalidator/form_validator.class.php',
- // 'form_validator_page' => 'formvalidator/form_validator_page.class.php',
- // 'form_validator_tab' => 'formvalidator/form_validator_tab.class.php',
- // 'form_validator_html_editor' => 'formvalidator/form_validator_html_editor.class.php',
- // 'form_validator_html_editor_templates' => 'formvalidator/form_validator_html_editor_templates.class.php',
- // 'form_validator_html_editor_options' => 'formvalidator/form_validator_html_editor_options.class.php',
- // 'html_editor_processor' => 'formvalidator/html_editor/html_editor_file_browser/html_editor_processor/html_editor_processor.class.php',
- // 'action_bar_renderer' => 'action_bar/action_bar_renderer.class.php',
- // 'image_content_object_table' => "formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/image/component/image_content_object_table/image_content_object_table.class.php",
- // 'html_editor_repo_viewer' => 'formvalidator/html_editor/html_editor_file_browser/html_editor_repo_viewer/html_editor_repo_viewer.class.php',
- // 'template_cache' => 'layout/template_cache.class.php',
- // 'html5_media_validator' => 'html5_media_validator.class.php', 'html5_format' => 'html5_format.class.php',
- // 'advanced_element_finder_elements' => 'formvalidator/Element/advanced_element_finder/advanced_element_finder_elements.class.php',
- // 'advanced_element_finder_element_types' => 'formvalidator/Element/advanced_element_finder/advanced_element_finder_element_types.class.php');
- //
- // $lower_case = self :: $lower_case;
- //
- // if (key_exists($lower_case, $list))
- // {
- // $url = $list[$lower_case];
- // require_once dirname(__FILE__) . '/html/' . $url;
- // return true;
- // }
- //
- // return false;
- // }
- //
- // static function check_for_fedora_files()
- // {
- // $list = array('fedora_fs_base' => 'fs/fedora_fs_base.class.php',
- // 'fedora_fs_folder' => 'fs/fedora_fs_folder.class.php');
- //
- // $lower_case = self :: $lower_case;
- //
- // if (key_exists($lower_case, $list))
- // {
- // $url = $list[$lower_case];
- // require_once dirname(__FILE__) . '/fedora/' . $url;
- // return true;
- // }
- //
- // return false;
- // }
- //
- // static function check_for_interface_files()
- // {
- // $list = array('categorizable' => 'categorizable.class.php', 'versionable' => 'versionable.class.php',
- // 'attachment_support' => 'attachment_support.class.php',
- // 'changeable_password' => 'changeable_password.class.php',
- // 'changeable_username' => 'changeable_username.class.php',
- // 'user_registration_support' => 'user_registration_support.class.php',
- // 'forced_version_support' => 'forced_version_support.class.php',
- // 'complex_menu_support' => 'complex_menu_support.class.php',
- // 'complex_content_object_support' => 'complex_content_object_support.class.php',
- // 'complex_content_object_disclosure' => 'complex_content_object_disclosure.class.php',
- // 'helper_content_object_support' => 'helper_content_object_support.class.php',
- // 'administration_component' => 'administration_component.class.php',
- // 'delegate_component' => 'delegate_component.class.php');
- //
- // $lower_case = self :: $lower_case;
- //
- // if (key_exists($lower_case, $list))
- // {
- // $url = $list[$lower_case];
- // require_once dirname(__FILE__) . '/interface/' . $url;
- // return true;
- // }
- //
- // return false;
- // }
- //
- // static function check_for_general_files()
- // {
- // $list = array('application_component', 'application', 'block', 'block_connector_base',
- // 'core_application_component', 'core_application', 'installer', 'redirect', 'resource_manager',
- // 'sub_manager_component', 'sub_manager