Release of v4.1.0
Add [AllowDynamicProperties] in the base view class for J5. Move the _prepareDocument above the display call in the base view class. Remove all backward compatibility issues, so JCB will not need the [Backward Compatibility] plugin to run. Added new import powers for custom import of spreadsheets. Move the setDocument and _prepareDocument above the display in the site view and custom admin view. Update the trashhelper layout to work in Joomla 5. Add AllowDynamicProperties (Joomla 4+5) to view class to allow Custom Dynamic Get methods to work without issues. Fix Save failed issue in dynamicGet. #1148. Move all [TEXT, EDITOR, TEXTAREA] fields from [NOT NULL] to [NULL]. Add the DateHelper class and improve the date methods. Add simple SessionHelper class. Add first classes for the new import engine. Improve the [VDM Registry] to be Joomla Registry Compatible. Move all registries to the [VDM Registry] class. Fix Checked Out to be null and not 0. (#1194). Fix created_by, modified_by, checked_out fields in the compiler of the SQL. (#1194). Update all core date fields in table class. (#1188). Update created_by, modified_by, checked_out fields in table class. Implementation of the decentralized Super-Power CORE repository network. (#1190). Fix the noticeboard to display Llewellyn's Joomla Social feed. Started compiling JCB4 on Joomla 5 with PHP 8.2. Add init_defaults option for dynamic form selection setup (to int new items with default values dynamically). Update all JCB 4 tables to utf8mb4_unicode_ci collation if misaligned. Move all internal ID linking to GUID inside of JCB 4. Updated the admin-tab-fields in add-fields view. #1205. Remove Custom Import Tab from admin view. Improved the customcode and placeholder search features.
This commit is contained in:
70
CHANGELOG.md
70
CHANGELOG.md
@ -1,3 +1,33 @@
|
|||||||
|
# v4.1.0
|
||||||
|
|
||||||
|
- Add [AllowDynamicProperties] in the base view class for J5
|
||||||
|
- Move the _prepareDocument above the display call in the base view class
|
||||||
|
- Remove all backward compatibility issues, so JCB will not need the [Backward Compatibility] plugin to run.
|
||||||
|
- Added new import powers for custom import of spreadsheets.
|
||||||
|
- Move the setDocument and _prepareDocument above the display in the site view and custom admin view.
|
||||||
|
- Update the trashhelper layout to work in Joomla 5.
|
||||||
|
- Add AllowDynamicProperties (Joomla 4+5) to view class to allow Custom Dynamic Get methods to work without issues.
|
||||||
|
- Fix Save failed issue in dynamicGet. #1148
|
||||||
|
- Move all [TEXT, EDITOR, TEXTAREA] fields from [NOT NULL] to [NULL]
|
||||||
|
- Add the DateHelper class and improve the date methods.
|
||||||
|
- Add simple SessionHelper class.
|
||||||
|
- Add first classes for the new import engine.
|
||||||
|
- Improve the [VDM Registry] to be Joomla Registry Compatible
|
||||||
|
- Move all registries to the [VDM Registry] class
|
||||||
|
- Fix Checked Out to be null and not 0. (#1194)
|
||||||
|
- Fix created_by, modified_by, checked_out fields in the compiler of the SQL. (#1194)
|
||||||
|
- Update all core date fields in table class. (#1188)
|
||||||
|
- Update created_by, modified_by, checked_out fields in table class.
|
||||||
|
- Implementation of the decentralized Super-Power CORE repository network. (#1190)
|
||||||
|
- Fix the noticeboard to display Llewellyn's Joomla Social feed
|
||||||
|
- Started compiling JCB4 on Joomla 5 with PHP 8.2
|
||||||
|
- Add init_defaults option for dynamic form selection setup (to int new items with default values dynamically)
|
||||||
|
- Update all JCB 4 tables to utf8mb4_unicode_ci collation if misaligned
|
||||||
|
- Move all internal ID linking to GUID inside of JCB 4
|
||||||
|
- Updated the admin-tab-fields in add-fields view. #1205
|
||||||
|
- Remove Custom Import Tab from admin view
|
||||||
|
- Improved the customcode and placeholder search features
|
||||||
|
|
||||||
# v4.0.3
|
# v4.0.3
|
||||||
|
|
||||||
- Add [push] option to powers area.
|
- Add [push] option to powers area.
|
||||||
@ -111,23 +141,25 @@
|
|||||||
- Add the BaseDatabaseModel use statement to custom site view controller. #1119
|
- Add the BaseDatabaseModel use statement to custom site view controller. #1119
|
||||||
- Fix the customfolderlist field. #1120
|
- Fix the customfolderlist field. #1120
|
||||||
|
|
||||||
# v3.2.4
|
# v3.2.5
|
||||||
|
|
||||||
- Add [push] option to Powers area.
|
- Add [AllowDynamicProperties] in the base view class for J5
|
||||||
- Fix [Save As Copy] error in library. #1162
|
- Move the _prepareDocument above the display call in the base view class
|
||||||
- Fix error when no components exist. #1164
|
- Remove all backward compatibility issues, so JCB will not need the [Backward Compatibility] plugin to run.
|
||||||
- Fix search page error caused by File class.
|
- Added new import powers for custom import of spreadsheets.
|
||||||
- Fix UserGroupList compiler triggers. #1100
|
- Move the setDocument and _prepareDocument above the display in the site view and custom admin view.
|
||||||
- Add Power field type integration: init, reset, push.
|
- Update the trashhelper layout to work in Joomla 5.
|
||||||
- Fix database default fields to allow NULL. #1169
|
- Add AllowDynamicProperties (Joomla 4+5) to view class to allow Custom Dynamic Get methods to work without issues.
|
||||||
- Fix Power List field to allow searching. #1167
|
- Fix Save failed issue in dynamicGet. #1148
|
||||||
- Remove Demo component from JCB v3; add Hello World component as demo.
|
- Move all [TEXT, EDITOR, TEXTAREA] fields from [NOT NULL] to [NULL]
|
||||||
- Fix missing working path in ZIP.
|
- Add the DateHelper class and improve the date methods.
|
||||||
- Fix demo site view to display files.
|
- Add simple SessionHelper class.
|
||||||
- Fix message for Field Type init.
|
- Add first classes for the new import engine.
|
||||||
- Ensure type-agnostic comparisons by casting to CHAR in joins for dynamic retrieval.
|
- Improve the [VDM Registry] to be Joomla Registry Compatible
|
||||||
- Fix dynamic download in site area with correct namespace.
|
- Move all registries to the [VDM Registry] class
|
||||||
- Fix missing edit button on fields in related views.
|
- Fix Checked Out to be null and not 0. (#1194)
|
||||||
- Fix dashboard display issues.
|
- Fix created_by, modified_by, checked_out fields in the compiler of the SQL. (#1194)
|
||||||
- Re-add search option in use field of related views.
|
- Update all core date fields in table class. (#1188)
|
||||||
- Fix namespace issue that broke the linker.
|
- Update created_by, modified_by, checked_out fields in table class.
|
||||||
|
- Implementation of the decentralized Super-Power CORE repository network. (#1190)
|
||||||
|
- Fix the noticeboard to display Llewellyn's Joomla Social feed
|
@ -21,6 +21,8 @@ use Joomla\Filesystem\Folder;
|
|||||||
use Joomla\Database\DatabaseInterface;
|
use Joomla\Database\DatabaseInterface;
|
||||||
use VDM\Joomla\Componentbuilder\PHPConfigurationChecker;
|
use VDM\Joomla\Componentbuilder\PHPConfigurationChecker;
|
||||||
use VDM\Joomla\Componentbuilder\Table\SchemaChecker;
|
use VDM\Joomla\Componentbuilder\Table\SchemaChecker;
|
||||||
|
use VDM\Joomla\Componentbuilder\Data\Migrator\Factory as MigratorFactory;
|
||||||
|
use VDM\Joomla\Utilities\Component\Helper;
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die;
|
defined('_JEXEC') or die;
|
||||||
@ -642,7 +644,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_module.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","target","add_php_method_uninstall","add_php_postflight_update","add_php_postflight_install","add_php_preflight_uninstall","addreadme","snippet","add_sql","update_server_target","add_sql_uninstall","update_server","add_update_server","sales_server","add_class_helper","add_class_helper_header","add_php_script_construct","add_php_preflight_install","add_sales_server","add_php_preflight_update"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "update_server","targetTable": "#__componentbuilder_server","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "sales_server","targetTable": "#__componentbuilder_server","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "custom_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_module.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","target","add_php_method_uninstall","add_php_postflight_update","add_php_postflight_install","add_php_preflight_uninstall","addreadme","add_sql","update_server_target","add_sql_uninstall","update_server","add_update_server","sales_server","add_class_helper","add_class_helper_header","add_php_script_construct","add_php_preflight_install","add_sales_server","add_php_preflight_update"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "update_server","targetTable": "#__componentbuilder_server","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "sales_server","targetTable": "#__componentbuilder_server","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "custom_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "guid","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Install Joomla plugin Content Types.
|
// Install Joomla plugin Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -659,7 +661,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_plugin.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","class_extends","joomla_plugin_group","add_sql","add_php_method_uninstall","add_php_postflight_update","add_php_postflight_install","sales_server","add_update_server","add_head","add_sql_uninstall","addreadme","update_server_target","update_server","add_php_script_construct","add_php_preflight_install","add_php_preflight_update","add_php_preflight_uninstall","add_sales_server"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "class_extends","targetTable": "#__componentbuilder_class_extends","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_plugin_group","targetTable": "#__componentbuilder_joomla_plugin_group","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "sales_server","targetTable": "#__componentbuilder_server","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "update_server","targetTable": "#__componentbuilder_server","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_plugin.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","add_sql","add_php_method_uninstall","add_php_postflight_update","add_php_postflight_install","sales_server","add_update_server","add_head","add_sql_uninstall","addreadme","update_server_target","update_server","add_php_script_construct","add_php_preflight_install","add_php_preflight_update","add_php_preflight_uninstall","add_sales_server"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "class_extends","targetTable": "#__componentbuilder_class_extends","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "joomla_plugin_group","targetTable": "#__componentbuilder_joomla_plugin_group","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "sales_server","targetTable": "#__componentbuilder_server","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "update_server","targetTable": "#__componentbuilder_server","targetColumn": "id","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Install Joomla power Content Types.
|
// Install Joomla power Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -706,11 +708,11 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// rules
|
// rules
|
||||||
'',
|
'',
|
||||||
// fieldMappings
|
// fieldMappings
|
||||||
'{"common": {"core_content_item_id": "id","core_title": "null","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "php_allowedit","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"system_name":"system_name","name_single":"name_single","short_description":"short_description","php_allowedit":"php_allowedit","php_postsavehook":"php_postsavehook","php_before_save":"php_before_save","php_getlistquery":"php_getlistquery","php_import_ext":"php_import_ext","icon":"icon","php_after_publish":"php_after_publish","add_fadein":"add_fadein","description":"description","icon_category":"icon_category","icon_add":"icon_add","php_after_cancel":"php_after_cancel","mysql_table_charset":"mysql_table_charset","php_batchmove":"php_batchmove","type":"type","php_after_delete":"php_after_delete","source":"source","php_import":"php_import","php_getitems_after_all":"php_getitems_after_all","php_getform":"php_getform","php_save":"php_save","php_allowadd":"php_allowadd","php_before_cancel":"php_before_cancel","php_batchcopy":"php_batchcopy","php_before_publish":"php_before_publish","alias_builder_type":"alias_builder_type","php_before_delete":"php_before_delete","php_document":"php_document","mysql_table_row_format":"mysql_table_row_format","alias_builder":"alias_builder","sql":"sql","php_import_display":"php_import_display","add_category_submenu":"add_category_submenu","php_import_setdata":"php_import_setdata","name_list":"name_list","add_php_getlistquery":"add_php_getlistquery","add_css_view":"add_css_view","add_php_getform":"add_php_getform","css_view":"css_view","add_php_before_save":"add_php_before_save","add_css_views":"add_css_views","add_php_save":"add_php_save","css_views":"css_views","add_php_postsavehook":"add_php_postsavehook","add_javascript_view_file":"add_javascript_view_file","add_php_allowadd":"add_php_allowadd","javascript_view_file":"javascript_view_file","add_php_allowedit":"add_php_allowedit","add_javascript_view_footer":"add_javascript_view_footer","add_php_before_cancel":"add_php_before_cancel","javascript_view_footer":"javascript_view_footer","add_php_after_cancel":"add_php_after_cancel","add_javascript_views_file":"add_javascript_views_file","add_php_batchcopy":"add_php_batchcopy","javascript_views_file":"javascript_views_file","add_php_batchmove":"add_php_batchmove","add_javascript_views_footer":"add_javascript_views_footer","add_php_before_publish":"add_php_before_publish","javascript_views_footer":"javascript_views_footer","add_php_after_publish":"add_php_after_publish","add_custom_button":"add_custom_button","add_php_before_delete":"add_php_before_delete","add_php_after_delete":"add_php_after_delete","php_controller":"php_controller","add_php_document":"add_php_document","php_model":"php_model","mysql_table_engine":"mysql_table_engine","php_controller_list":"php_controller_list","mysql_table_collate":"mysql_table_collate","php_model_list":"php_model_list","add_sql":"add_sql","add_php_ajax":"add_php_ajax","php_ajaxmethod":"php_ajaxmethod","add_custom_import":"add_custom_import","add_php_getitem":"add_php_getitem","html_import_view":"html_import_view","php_getitem":"php_getitem","php_import_headers":"php_import_headers","add_php_getitems":"add_php_getitems","php_import_save":"php_import_save","php_getitems":"php_getitems","guid":"guid","add_php_getitems_after_all":"add_php_getitems_after_all"}}',
|
'{"common": {"core_content_item_id": "id","core_title": "system_name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "php_allowedit","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"system_name":"system_name","name_single":"name_single","short_description":"short_description","php_allowedit":"php_allowedit","php_postsavehook":"php_postsavehook","php_before_save":"php_before_save","php_getlistquery":"php_getlistquery","php_getitems":"php_getitems","name_list":"name_list","icon":"icon","php_after_publish":"php_after_publish","add_fadein":"add_fadein","description":"description","icon_category":"icon_category","icon_add":"icon_add","php_after_cancel":"php_after_cancel","mysql_table_charset":"mysql_table_charset","php_batchmove":"php_batchmove","type":"type","php_after_delete":"php_after_delete","source":"source","php_getitem":"php_getitem","php_getitems_after_all":"php_getitems_after_all","php_getform":"php_getform","php_save":"php_save","php_allowadd":"php_allowadd","php_before_cancel":"php_before_cancel","php_batchcopy":"php_batchcopy","php_before_publish":"php_before_publish","alias_builder_type":"alias_builder_type","php_before_delete":"php_before_delete","php_document":"php_document","mysql_table_row_format":"mysql_table_row_format","alias_builder":"alias_builder","sql":"sql","add_php_getitem":"add_php_getitem","add_category_submenu":"add_category_submenu","add_php_getitems":"add_php_getitems","add_php_getitems_after_all":"add_php_getitems_after_all","add_php_getlistquery":"add_php_getlistquery","add_css_view":"add_css_view","add_php_getform":"add_php_getform","css_view":"css_view","add_php_before_save":"add_php_before_save","add_css_views":"add_css_views","add_php_save":"add_php_save","css_views":"css_views","add_php_postsavehook":"add_php_postsavehook","add_javascript_view_file":"add_javascript_view_file","add_php_allowadd":"add_php_allowadd","javascript_view_file":"javascript_view_file","add_php_allowedit":"add_php_allowedit","add_javascript_view_footer":"add_javascript_view_footer","add_php_before_cancel":"add_php_before_cancel","javascript_view_footer":"javascript_view_footer","add_php_after_cancel":"add_php_after_cancel","add_javascript_views_file":"add_javascript_views_file","add_php_batchcopy":"add_php_batchcopy","javascript_views_file":"javascript_views_file","add_php_batchmove":"add_php_batchmove","add_javascript_views_footer":"add_javascript_views_footer","add_php_before_publish":"add_php_before_publish","javascript_views_footer":"javascript_views_footer","add_php_after_publish":"add_php_after_publish","add_custom_button":"add_custom_button","add_php_before_delete":"add_php_before_delete","add_php_after_delete":"add_php_after_delete","php_controller":"php_controller","add_php_document":"add_php_document","php_model":"php_model","mysql_table_engine":"mysql_table_engine","php_controller_list":"php_controller_list","mysql_table_collate":"mysql_table_collate","php_model_list":"php_model_list","add_sql":"add_sql","add_php_ajax":"add_php_ajax","php_ajaxmethod":"php_ajaxmethod","guid":"guid"}}',
|
||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/admin_view.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","add_fadein","type","source","alias_builder_type","add_category_submenu","add_php_getlistquery","add_css_view","add_php_getform","add_php_before_save","add_css_views","add_php_save","add_php_postsavehook","add_javascript_view_file","add_php_allowadd","add_php_allowedit","add_javascript_view_footer","add_php_before_cancel","add_php_after_cancel","add_javascript_views_file","add_php_batchcopy","add_php_batchmove","add_javascript_views_footer","add_php_before_publish","add_php_after_publish","add_custom_button","add_php_before_delete","add_php_after_delete","add_php_document","add_sql","add_php_ajax","add_custom_import","add_php_getitem","add_php_getitems","add_php_getitems_after_all"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "alias_builder","targetTable": "#__componentbuilder_field","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/admin_view.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","add_fadein","type","source","alias_builder_type","add_php_getitem","add_category_submenu","add_php_getitems","add_php_getitems_after_all","add_php_getlistquery","add_css_view","add_php_getform","add_php_before_save","add_css_views","add_php_save","add_php_postsavehook","add_javascript_view_file","add_php_allowadd","add_php_allowedit","add_javascript_view_footer","add_php_before_cancel","add_php_after_cancel","add_javascript_views_file","add_php_batchcopy","add_php_batchmove","add_javascript_views_footer","add_php_before_publish","add_php_after_publish","add_custom_button","add_php_before_delete","add_php_after_delete","add_php_document","add_sql","add_php_ajax"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "alias_builder","targetTable": "#__componentbuilder_field","targetColumn": "id","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Install Custom admin view Content Types.
|
// Install Custom admin view Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -727,7 +729,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/custom_admin_view.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","main_get","add_php_jview_display","snippet","add_php_jview","add_js_document","add_javascript_file","add_css_document","add_php_document","add_css","add_php_view","add_php_ajax","dynamic_get","add_custom_button"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "main_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "custom_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/custom_admin_view.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","add_php_jview_display","add_php_jview","add_js_document","add_javascript_file","add_css_document","add_php_document","add_css","add_php_view","add_php_ajax","add_custom_button"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "main_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "custom_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "guid","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Install Site view Content Types.
|
// Install Site view Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -744,7 +746,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/site_view.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","main_get","add_php_jview_display","add_php_document","add_php_view","snippet","add_php_jview","add_javascript_file","add_js_document","add_css_document","add_css","dynamic_get","add_php_ajax","add_custom_button","button_position"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "main_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "custom_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/site_view.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","add_php_jview_display","add_php_document","add_php_view","add_php_jview","add_javascript_file","add_js_document","add_css_document","add_css","add_php_ajax","add_custom_button","button_position"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "main_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "custom_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "guid","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Install Template Content Types.
|
// Install Template Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -757,11 +759,11 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// rules
|
// rules
|
||||||
'',
|
'',
|
||||||
// fieldMappings
|
// fieldMappings
|
||||||
'{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "php_view","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","dynamic_get":"dynamic_get","php_view":"php_view","add_php_view":"add_php_view","template":"template","snippet":"snippet","libraries":"libraries","alias":"alias"}}',
|
'{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "php_view","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","dynamic_get":"dynamic_get","guid":"guid","php_view":"php_view","add_php_view":"add_php_view","template":"template","snippet":"snippet","libraries":"libraries","alias":"alias"}}',
|
||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/template.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","dynamic_get","add_php_view","snippet"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/template.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","add_php_view"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "guid","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Install Layout Content Types.
|
// Install Layout Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -774,11 +776,11 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// rules
|
// rules
|
||||||
'',
|
'',
|
||||||
// fieldMappings
|
// fieldMappings
|
||||||
'{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "php_view","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","dynamic_get":"dynamic_get","snippet":"snippet","php_view":"php_view","add_php_view":"add_php_view","layout":"layout","libraries":"libraries","alias":"alias"}}',
|
'{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "php_view","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","dynamic_get":"dynamic_get","snippet":"snippet","guid":"guid","php_view":"php_view","add_php_view":"add_php_view","layout":"layout","libraries":"libraries","alias":"alias"}}',
|
||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/layout.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","dynamic_get","snippet","add_php_view"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/layout.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","add_php_view"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "guid","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Install Dynamic get Content Types.
|
// Install Dynamic get Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -795,7 +797,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/dynamic_get.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","main_source","gettype","add_php_after_getitems","add_php_router_parse","add_php_before_getitems","add_php_before_getitem","add_php_after_getitem","view_table_main","add_php_getlistquery","select_all","pagination","addcalculation"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "view_table_main","targetTable": "#__componentbuilder_admin_view","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/dynamic_get.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","main_source","gettype","add_php_after_getitems","add_php_router_parse","add_php_before_getitems","add_php_before_getitem","add_php_after_getitem","add_php_getlistquery","select_all","pagination","addcalculation"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "view_table_main","targetTable": "#__componentbuilder_admin_view","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Install Custom code Content Types.
|
// Install Custom code Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -808,11 +810,11 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// rules
|
// rules
|
||||||
'',
|
'',
|
||||||
// fieldMappings
|
// fieldMappings
|
||||||
'{"common": {"core_content_item_id": "id","core_title": "component","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "code","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"component":"component","path":"path","target":"target","type":"type","comment_type":"comment_type","joomla_version":"joomla_version","function_name":"function_name","system_name":"system_name","code":"code","hashendtarget":"hashendtarget","to_line":"to_line","from_line":"from_line","hashtarget":"hashtarget"}}',
|
'{"common": {"core_content_item_id": "id","core_title": "system_name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "code","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"system_name":"system_name","path":"path","target":"target","type":"type","comment_type":"comment_type","joomla_version":"joomla_version","function_name":"function_name","code":"code","hashendtarget":"hashendtarget","to_line":"to_line","from_line":"from_line","hashtarget":"hashtarget","component":"component"}}',
|
||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/custom_code.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","component","target","type","comment_type","joomla_version"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/custom_code.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","target","type","comment_type","joomla_version"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Install Class property Content Types.
|
// Install Class property Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -829,7 +831,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/class_property.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_plugin_group"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_plugin_group","targetTable": "#__componentbuilder_joomla_plugin_group","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/class_property.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_plugin_group","targetTable": "#__componentbuilder_joomla_plugin_group","targetColumn": "guid","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Install Class method Content Types.
|
// Install Class method Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -846,7 +848,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/class_method.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_plugin_group"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_plugin_group","targetTable": "#__componentbuilder_joomla_plugin_group","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/class_method.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_plugin_group","targetTable": "#__componentbuilder_joomla_plugin_group","targetColumn": "guid","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Install Placeholder Content Types.
|
// Install Placeholder Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -880,7 +882,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/library.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","target","how","type"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/library.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","target","how","type"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "guid","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Install Snippet Content Types.
|
// Install Snippet Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -897,7 +899,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/snippet.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","type","library"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "type","targetTable": "#__componentbuilder_snippet_type","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "library","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/snippet.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "type","targetTable": "#__componentbuilder_snippet_type","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "library","targetTable": "#__componentbuilder_library","targetColumn": "guid","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Install Validation rule Content Types.
|
// Install Validation rule Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -931,7 +933,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/field.xml","hideFields": ["asset_id","checked_out","checked_out_time","xml"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","fieldtype","store","catid","add_css_view","add_css_views","add_javascript_view_footer","add_javascript_views_footer"],"displayLookup": [{"sourceColumn": "catid","targetTable": "#__categories","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "fieldtype","targetTable": "#__componentbuilder_fieldtype","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/field.xml","hideFields": ["asset_id","checked_out","checked_out_time","xml"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","store","catid","add_css_view","add_css_views","add_javascript_view_footer","add_javascript_views_footer"],"displayLookup": [{"sourceColumn": "catid","targetTable": "#__categories","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "fieldtype","targetTable": "#__componentbuilder_fieldtype","targetColumn": "guid","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Install Field category Content Types.
|
// Install Field category Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -999,7 +1001,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/language_translation.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "plugins","targetTable": "#__componentbuilder_joomla_plugin","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "modules","targetTable": "#__componentbuilder_joomla_module","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "components","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/language_translation.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "plugins","targetTable": "#__componentbuilder_joomla_plugin","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "modules","targetTable": "#__componentbuilder_joomla_module","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "components","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Install Language Content Types.
|
// Install Language Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -1084,7 +1086,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/admin_fields.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","admin_view"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "admin_view","targetTable": "#__componentbuilder_admin_view","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/admin_fields.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "admin_view","targetTable": "#__componentbuilder_admin_view","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Install Admin fields conditions Content Types.
|
// Install Admin fields conditions Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -1101,7 +1103,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/admin_fields_conditions.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","admin_view"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "admin_view","targetTable": "#__componentbuilder_admin_view","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/admin_fields_conditions.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "admin_view","targetTable": "#__componentbuilder_admin_view","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Install Admin fields relations Content Types.
|
// Install Admin fields relations Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -1118,7 +1120,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/admin_fields_relations.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","admin_view"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "admin_view","targetTable": "#__componentbuilder_admin_view","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/admin_fields_relations.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "admin_view","targetTable": "#__componentbuilder_admin_view","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Install Admin custom tabs Content Types.
|
// Install Admin custom tabs Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -1135,7 +1137,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/admin_custom_tabs.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","admin_view"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "admin_view","targetTable": "#__componentbuilder_admin_view","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/admin_custom_tabs.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "admin_view","targetTable": "#__componentbuilder_admin_view","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Install Component admin views Content Types.
|
// Install Component admin views Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -1152,7 +1154,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/component_admin_views.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_component"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/component_admin_views.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Install Component site views Content Types.
|
// Install Component site views Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -1169,7 +1171,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/component_site_views.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_component"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/component_site_views.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Install Component custom admin views Content Types.
|
// Install Component custom admin views Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -1186,7 +1188,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/component_custom_admin_views.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_component"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/component_custom_admin_views.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Install Component updates Content Types.
|
// Install Component updates Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -1203,7 +1205,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/component_updates.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_component"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/component_updates.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Install Component mysql tweaks Content Types.
|
// Install Component mysql tweaks Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -1220,7 +1222,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/component_mysql_tweaks.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_component"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/component_mysql_tweaks.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Install Component custom admin menus Content Types.
|
// Install Component custom admin menus Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -1237,7 +1239,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/component_custom_admin_menus.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_component"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/component_custom_admin_menus.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Install Component router Content Types.
|
// Install Component router Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -1254,7 +1256,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/component_router.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_component","mode_constructor_before_parent","mode_constructor_after_parent","mode_methods"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/component_router.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","mode_constructor_before_parent","mode_constructor_after_parent","mode_methods"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Install Component config Content Types.
|
// Install Component config Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -1271,7 +1273,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/component_config.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_component"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/component_config.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Install Component dashboard Content Types.
|
// Install Component dashboard Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -1288,7 +1290,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/component_dashboard.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_component"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/component_dashboard.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Install Component files folders Content Types.
|
// Install Component files folders Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -1305,7 +1307,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/component_files_folders.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_component"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/component_files_folders.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Install Component placeholders Content Types.
|
// Install Component placeholders Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -1322,7 +1324,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/component_placeholders.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_component"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/component_placeholders.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Install Component plugins Content Types.
|
// Install Component plugins Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -1339,7 +1341,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/component_plugins.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_component"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/component_plugins.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Install Component modules Content Types.
|
// Install Component modules Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -1356,7 +1358,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/component_modules.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_component"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/component_modules.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Install Snippet type Content Types.
|
// Install Snippet type Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -1369,7 +1371,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// rules
|
// rules
|
||||||
'',
|
'',
|
||||||
// fieldMappings
|
// fieldMappings
|
||||||
'{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description"}}',
|
'{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid"}}',
|
||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
@ -1390,7 +1392,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/library_config.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","library"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "library","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/library_config.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "library","targetTable": "#__componentbuilder_library","targetColumn": "guid","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Install Library files folders urls Content Types.
|
// Install Library files folders urls Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -1407,7 +1409,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/library_files_folders_urls.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","library"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "library","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/library_files_folders_urls.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "library","targetTable": "#__componentbuilder_library","targetColumn": "guid","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Install Class extends Content Types.
|
// Install Class extends Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -1420,7 +1422,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// rules
|
// rules
|
||||||
'',
|
'',
|
||||||
// fieldMappings
|
// fieldMappings
|
||||||
'{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "head","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","extension_type":"extension_type","head":"head","comment":"comment"}}',
|
'{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "head","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","extension_type":"extension_type","guid":"guid","head":"head","comment":"comment"}}',
|
||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
@ -1441,7 +1443,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_module_updates.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_module"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_module","targetTable": "#__componentbuilder_joomla_module","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_module_updates.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_module","targetTable": "#__componentbuilder_joomla_module","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Install Joomla module files folders urls Content Types.
|
// Install Joomla module files folders urls Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -1458,7 +1460,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_module_files_folders_urls.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_module"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_module","targetTable": "#__componentbuilder_joomla_module","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_module_files_folders_urls.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_module","targetTable": "#__componentbuilder_joomla_module","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Install Joomla plugin group Content Types.
|
// Install Joomla plugin group Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -1471,11 +1473,11 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// rules
|
// rules
|
||||||
'',
|
'',
|
||||||
// fieldMappings
|
// fieldMappings
|
||||||
'{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","class_extends":"class_extends"}}',
|
'{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","class_extends":"class_extends","guid":"guid"}}',
|
||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_plugin_group.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","class_extends"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "class_extends","targetTable": "#__componentbuilder_class_extends","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_plugin_group.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "class_extends","targetTable": "#__componentbuilder_class_extends","targetColumn": "guid","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Install Joomla plugin updates Content Types.
|
// Install Joomla plugin updates Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -1492,7 +1494,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_plugin_updates.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_plugin"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_plugin","targetTable": "#__componentbuilder_joomla_plugin","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_plugin_updates.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_plugin","targetTable": "#__componentbuilder_joomla_plugin","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Install Joomla plugin files folders urls Content Types.
|
// Install Joomla plugin files folders urls Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -1509,7 +1511,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_plugin_files_folders_urls.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_plugin"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_plugin","targetTable": "#__componentbuilder_joomla_plugin","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_plugin_files_folders_urls.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_plugin","targetTable": "#__componentbuilder_joomla_plugin","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -1526,6 +1528,16 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
if ($this->classExists(SchemaChecker::class))
|
if ($this->classExists(SchemaChecker::class))
|
||||||
{
|
{
|
||||||
(new SchemaChecker())->run();
|
(new SchemaChecker())->run();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Converts all necessary tables to utf8mb4 character set and utf8mb4_unicode_ci collation if misaligned.
|
||||||
|
$this->convertAllJCBTables();
|
||||||
|
|
||||||
|
// Migrate all ID's linking to GUID linking
|
||||||
|
if ($this->classExists(MigratorFactory::class))
|
||||||
|
{
|
||||||
|
Helper::setOption('com_componentbuilder'); // to insure we target componentbuilder downstream ;)
|
||||||
|
MigratorFactory::_('Component.Data.Migrator.Guid')->process();
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<div style="background-color: #fff;" class="alert alert-info"><a target="_blank" href="https://dev.vdm.io" title="Component Builder">
|
echo '<div style="background-color: #fff;" class="alert alert-info"><a target="_blank" href="https://dev.vdm.io" title="Component Builder">
|
||||||
@ -1720,7 +1732,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// idHolder
|
// idHolder
|
||||||
'id',
|
'id',
|
||||||
// titleHolder
|
// titleHolder
|
||||||
'component',
|
'system_name',
|
||||||
// tableName
|
// tableName
|
||||||
'#__componentbuilder_custom_code',
|
'#__componentbuilder_custom_code',
|
||||||
// textPrefix
|
// textPrefix
|
||||||
@ -2388,7 +2400,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_module.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","target","add_php_method_uninstall","add_php_postflight_update","add_php_postflight_install","add_php_preflight_uninstall","addreadme","snippet","add_sql","update_server_target","add_sql_uninstall","update_server","add_update_server","sales_server","add_class_helper","add_class_helper_header","add_php_script_construct","add_php_preflight_install","add_sales_server","add_php_preflight_update"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "update_server","targetTable": "#__componentbuilder_server","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "sales_server","targetTable": "#__componentbuilder_server","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "custom_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_module.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","target","add_php_method_uninstall","add_php_postflight_update","add_php_postflight_install","add_php_preflight_uninstall","addreadme","add_sql","update_server_target","add_sql_uninstall","update_server","add_update_server","sales_server","add_class_helper","add_class_helper_header","add_php_script_construct","add_php_preflight_install","add_sales_server","add_php_preflight_update"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "update_server","targetTable": "#__componentbuilder_server","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "sales_server","targetTable": "#__componentbuilder_server","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "custom_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "guid","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Update Joomla plugin Content Types.
|
// Update Joomla plugin Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -2405,7 +2417,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_plugin.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","class_extends","joomla_plugin_group","add_sql","add_php_method_uninstall","add_php_postflight_update","add_php_postflight_install","sales_server","add_update_server","add_head","add_sql_uninstall","addreadme","update_server_target","update_server","add_php_script_construct","add_php_preflight_install","add_php_preflight_update","add_php_preflight_uninstall","add_sales_server"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "class_extends","targetTable": "#__componentbuilder_class_extends","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_plugin_group","targetTable": "#__componentbuilder_joomla_plugin_group","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "sales_server","targetTable": "#__componentbuilder_server","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "update_server","targetTable": "#__componentbuilder_server","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_plugin.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","add_sql","add_php_method_uninstall","add_php_postflight_update","add_php_postflight_install","sales_server","add_update_server","add_head","add_sql_uninstall","addreadme","update_server_target","update_server","add_php_script_construct","add_php_preflight_install","add_php_preflight_update","add_php_preflight_uninstall","add_sales_server"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "class_extends","targetTable": "#__componentbuilder_class_extends","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "joomla_plugin_group","targetTable": "#__componentbuilder_joomla_plugin_group","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "sales_server","targetTable": "#__componentbuilder_server","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "update_server","targetTable": "#__componentbuilder_server","targetColumn": "id","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Update Joomla power Content Types.
|
// Update Joomla power Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -2452,11 +2464,11 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// rules
|
// rules
|
||||||
'',
|
'',
|
||||||
// fieldMappings
|
// fieldMappings
|
||||||
'{"common": {"core_content_item_id": "id","core_title": "null","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "php_allowedit","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"system_name":"system_name","name_single":"name_single","short_description":"short_description","php_allowedit":"php_allowedit","php_postsavehook":"php_postsavehook","php_before_save":"php_before_save","php_getlistquery":"php_getlistquery","php_import_ext":"php_import_ext","icon":"icon","php_after_publish":"php_after_publish","add_fadein":"add_fadein","description":"description","icon_category":"icon_category","icon_add":"icon_add","php_after_cancel":"php_after_cancel","mysql_table_charset":"mysql_table_charset","php_batchmove":"php_batchmove","type":"type","php_after_delete":"php_after_delete","source":"source","php_import":"php_import","php_getitems_after_all":"php_getitems_after_all","php_getform":"php_getform","php_save":"php_save","php_allowadd":"php_allowadd","php_before_cancel":"php_before_cancel","php_batchcopy":"php_batchcopy","php_before_publish":"php_before_publish","alias_builder_type":"alias_builder_type","php_before_delete":"php_before_delete","php_document":"php_document","mysql_table_row_format":"mysql_table_row_format","alias_builder":"alias_builder","sql":"sql","php_import_display":"php_import_display","add_category_submenu":"add_category_submenu","php_import_setdata":"php_import_setdata","name_list":"name_list","add_php_getlistquery":"add_php_getlistquery","add_css_view":"add_css_view","add_php_getform":"add_php_getform","css_view":"css_view","add_php_before_save":"add_php_before_save","add_css_views":"add_css_views","add_php_save":"add_php_save","css_views":"css_views","add_php_postsavehook":"add_php_postsavehook","add_javascript_view_file":"add_javascript_view_file","add_php_allowadd":"add_php_allowadd","javascript_view_file":"javascript_view_file","add_php_allowedit":"add_php_allowedit","add_javascript_view_footer":"add_javascript_view_footer","add_php_before_cancel":"add_php_before_cancel","javascript_view_footer":"javascript_view_footer","add_php_after_cancel":"add_php_after_cancel","add_javascript_views_file":"add_javascript_views_file","add_php_batchcopy":"add_php_batchcopy","javascript_views_file":"javascript_views_file","add_php_batchmove":"add_php_batchmove","add_javascript_views_footer":"add_javascript_views_footer","add_php_before_publish":"add_php_before_publish","javascript_views_footer":"javascript_views_footer","add_php_after_publish":"add_php_after_publish","add_custom_button":"add_custom_button","add_php_before_delete":"add_php_before_delete","add_php_after_delete":"add_php_after_delete","php_controller":"php_controller","add_php_document":"add_php_document","php_model":"php_model","mysql_table_engine":"mysql_table_engine","php_controller_list":"php_controller_list","mysql_table_collate":"mysql_table_collate","php_model_list":"php_model_list","add_sql":"add_sql","add_php_ajax":"add_php_ajax","php_ajaxmethod":"php_ajaxmethod","add_custom_import":"add_custom_import","add_php_getitem":"add_php_getitem","html_import_view":"html_import_view","php_getitem":"php_getitem","php_import_headers":"php_import_headers","add_php_getitems":"add_php_getitems","php_import_save":"php_import_save","php_getitems":"php_getitems","guid":"guid","add_php_getitems_after_all":"add_php_getitems_after_all"}}',
|
'{"common": {"core_content_item_id": "id","core_title": "system_name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "php_allowedit","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"system_name":"system_name","name_single":"name_single","short_description":"short_description","php_allowedit":"php_allowedit","php_postsavehook":"php_postsavehook","php_before_save":"php_before_save","php_getlistquery":"php_getlistquery","php_getitems":"php_getitems","name_list":"name_list","icon":"icon","php_after_publish":"php_after_publish","add_fadein":"add_fadein","description":"description","icon_category":"icon_category","icon_add":"icon_add","php_after_cancel":"php_after_cancel","mysql_table_charset":"mysql_table_charset","php_batchmove":"php_batchmove","type":"type","php_after_delete":"php_after_delete","source":"source","php_getitem":"php_getitem","php_getitems_after_all":"php_getitems_after_all","php_getform":"php_getform","php_save":"php_save","php_allowadd":"php_allowadd","php_before_cancel":"php_before_cancel","php_batchcopy":"php_batchcopy","php_before_publish":"php_before_publish","alias_builder_type":"alias_builder_type","php_before_delete":"php_before_delete","php_document":"php_document","mysql_table_row_format":"mysql_table_row_format","alias_builder":"alias_builder","sql":"sql","add_php_getitem":"add_php_getitem","add_category_submenu":"add_category_submenu","add_php_getitems":"add_php_getitems","add_php_getitems_after_all":"add_php_getitems_after_all","add_php_getlistquery":"add_php_getlistquery","add_css_view":"add_css_view","add_php_getform":"add_php_getform","css_view":"css_view","add_php_before_save":"add_php_before_save","add_css_views":"add_css_views","add_php_save":"add_php_save","css_views":"css_views","add_php_postsavehook":"add_php_postsavehook","add_javascript_view_file":"add_javascript_view_file","add_php_allowadd":"add_php_allowadd","javascript_view_file":"javascript_view_file","add_php_allowedit":"add_php_allowedit","add_javascript_view_footer":"add_javascript_view_footer","add_php_before_cancel":"add_php_before_cancel","javascript_view_footer":"javascript_view_footer","add_php_after_cancel":"add_php_after_cancel","add_javascript_views_file":"add_javascript_views_file","add_php_batchcopy":"add_php_batchcopy","javascript_views_file":"javascript_views_file","add_php_batchmove":"add_php_batchmove","add_javascript_views_footer":"add_javascript_views_footer","add_php_before_publish":"add_php_before_publish","javascript_views_footer":"javascript_views_footer","add_php_after_publish":"add_php_after_publish","add_custom_button":"add_custom_button","add_php_before_delete":"add_php_before_delete","add_php_after_delete":"add_php_after_delete","php_controller":"php_controller","add_php_document":"add_php_document","php_model":"php_model","mysql_table_engine":"mysql_table_engine","php_controller_list":"php_controller_list","mysql_table_collate":"mysql_table_collate","php_model_list":"php_model_list","add_sql":"add_sql","add_php_ajax":"add_php_ajax","php_ajaxmethod":"php_ajaxmethod","guid":"guid"}}',
|
||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/admin_view.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","add_fadein","type","source","alias_builder_type","add_category_submenu","add_php_getlistquery","add_css_view","add_php_getform","add_php_before_save","add_css_views","add_php_save","add_php_postsavehook","add_javascript_view_file","add_php_allowadd","add_php_allowedit","add_javascript_view_footer","add_php_before_cancel","add_php_after_cancel","add_javascript_views_file","add_php_batchcopy","add_php_batchmove","add_javascript_views_footer","add_php_before_publish","add_php_after_publish","add_custom_button","add_php_before_delete","add_php_after_delete","add_php_document","add_sql","add_php_ajax","add_custom_import","add_php_getitem","add_php_getitems","add_php_getitems_after_all"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "alias_builder","targetTable": "#__componentbuilder_field","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/admin_view.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","add_fadein","type","source","alias_builder_type","add_php_getitem","add_category_submenu","add_php_getitems","add_php_getitems_after_all","add_php_getlistquery","add_css_view","add_php_getform","add_php_before_save","add_css_views","add_php_save","add_php_postsavehook","add_javascript_view_file","add_php_allowadd","add_php_allowedit","add_javascript_view_footer","add_php_before_cancel","add_php_after_cancel","add_javascript_views_file","add_php_batchcopy","add_php_batchmove","add_javascript_views_footer","add_php_before_publish","add_php_after_publish","add_custom_button","add_php_before_delete","add_php_after_delete","add_php_document","add_sql","add_php_ajax"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "alias_builder","targetTable": "#__componentbuilder_field","targetColumn": "id","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Update Custom admin view Content Types.
|
// Update Custom admin view Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -2473,7 +2485,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/custom_admin_view.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","main_get","add_php_jview_display","snippet","add_php_jview","add_js_document","add_javascript_file","add_css_document","add_php_document","add_css","add_php_view","add_php_ajax","dynamic_get","add_custom_button"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "main_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "custom_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/custom_admin_view.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","add_php_jview_display","add_php_jview","add_js_document","add_javascript_file","add_css_document","add_php_document","add_css","add_php_view","add_php_ajax","add_custom_button"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "main_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "custom_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "guid","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Update Site view Content Types.
|
// Update Site view Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -2490,7 +2502,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/site_view.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","main_get","add_php_jview_display","add_php_document","add_php_view","snippet","add_php_jview","add_javascript_file","add_js_document","add_css_document","add_css","dynamic_get","add_php_ajax","add_custom_button","button_position"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "main_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "custom_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/site_view.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","add_php_jview_display","add_php_document","add_php_view","add_php_jview","add_javascript_file","add_js_document","add_css_document","add_css","add_php_ajax","add_custom_button","button_position"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "main_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "custom_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "guid","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Update Template Content Types.
|
// Update Template Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -2503,11 +2515,11 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// rules
|
// rules
|
||||||
'',
|
'',
|
||||||
// fieldMappings
|
// fieldMappings
|
||||||
'{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "php_view","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","dynamic_get":"dynamic_get","php_view":"php_view","add_php_view":"add_php_view","template":"template","snippet":"snippet","libraries":"libraries","alias":"alias"}}',
|
'{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "php_view","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","dynamic_get":"dynamic_get","guid":"guid","php_view":"php_view","add_php_view":"add_php_view","template":"template","snippet":"snippet","libraries":"libraries","alias":"alias"}}',
|
||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/template.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","dynamic_get","add_php_view","snippet"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/template.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","add_php_view"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "guid","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Update Layout Content Types.
|
// Update Layout Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -2520,11 +2532,11 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// rules
|
// rules
|
||||||
'',
|
'',
|
||||||
// fieldMappings
|
// fieldMappings
|
||||||
'{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "php_view","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","dynamic_get":"dynamic_get","snippet":"snippet","php_view":"php_view","add_php_view":"add_php_view","layout":"layout","libraries":"libraries","alias":"alias"}}',
|
'{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "alias","core_created_time": "created","core_modified_time": "modified","core_body": "php_view","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","dynamic_get":"dynamic_get","snippet":"snippet","guid":"guid","php_view":"php_view","add_php_view":"add_php_view","layout":"layout","libraries":"libraries","alias":"alias"}}',
|
||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/layout.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","dynamic_get","snippet","add_php_view"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/layout.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","add_php_view"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "dynamic_get","targetTable": "#__componentbuilder_dynamic_get","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "snippet","targetTable": "#__componentbuilder_snippet","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "guid","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Update Dynamic get Content Types.
|
// Update Dynamic get Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -2541,7 +2553,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/dynamic_get.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","main_source","gettype","add_php_after_getitems","add_php_router_parse","add_php_before_getitems","add_php_before_getitem","add_php_after_getitem","view_table_main","add_php_getlistquery","select_all","pagination","addcalculation"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "view_table_main","targetTable": "#__componentbuilder_admin_view","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/dynamic_get.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","main_source","gettype","add_php_after_getitems","add_php_router_parse","add_php_before_getitems","add_php_before_getitem","add_php_after_getitem","add_php_getlistquery","select_all","pagination","addcalculation"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "view_table_main","targetTable": "#__componentbuilder_admin_view","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Update Custom code Content Types.
|
// Update Custom code Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -2554,11 +2566,11 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// rules
|
// rules
|
||||||
'',
|
'',
|
||||||
// fieldMappings
|
// fieldMappings
|
||||||
'{"common": {"core_content_item_id": "id","core_title": "component","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "code","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"component":"component","path":"path","target":"target","type":"type","comment_type":"comment_type","joomla_version":"joomla_version","function_name":"function_name","system_name":"system_name","code":"code","hashendtarget":"hashendtarget","to_line":"to_line","from_line":"from_line","hashtarget":"hashtarget"}}',
|
'{"common": {"core_content_item_id": "id","core_title": "system_name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "code","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"system_name":"system_name","path":"path","target":"target","type":"type","comment_type":"comment_type","joomla_version":"joomla_version","function_name":"function_name","code":"code","hashendtarget":"hashendtarget","to_line":"to_line","from_line":"from_line","hashtarget":"hashtarget","component":"component"}}',
|
||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/custom_code.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","component","target","type","comment_type","joomla_version"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/custom_code.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","target","type","comment_type","joomla_version"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Update Class property Content Types.
|
// Update Class property Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -2575,7 +2587,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/class_property.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_plugin_group"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_plugin_group","targetTable": "#__componentbuilder_joomla_plugin_group","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/class_property.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_plugin_group","targetTable": "#__componentbuilder_joomla_plugin_group","targetColumn": "guid","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Update Class method Content Types.
|
// Update Class method Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -2592,7 +2604,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/class_method.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_plugin_group"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_plugin_group","targetTable": "#__componentbuilder_joomla_plugin_group","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/class_method.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_plugin_group","targetTable": "#__componentbuilder_joomla_plugin_group","targetColumn": "guid","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Update Placeholder Content Types.
|
// Update Placeholder Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -2626,7 +2638,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/library.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","target","how","type"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/library.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","target","how","type"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "libraries","targetTable": "#__componentbuilder_library","targetColumn": "guid","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Update Snippet Content Types.
|
// Update Snippet Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -2643,7 +2655,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/snippet.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","type","library"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "type","targetTable": "#__componentbuilder_snippet_type","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "library","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/snippet.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "type","targetTable": "#__componentbuilder_snippet_type","targetColumn": "guid","displayColumn": "name"},{"sourceColumn": "library","targetTable": "#__componentbuilder_library","targetColumn": "guid","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Update Validation rule Content Types.
|
// Update Validation rule Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -2677,7 +2689,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/field.xml","hideFields": ["asset_id","checked_out","checked_out_time","xml"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","fieldtype","store","catid","add_css_view","add_css_views","add_javascript_view_footer","add_javascript_views_footer"],"displayLookup": [{"sourceColumn": "catid","targetTable": "#__categories","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "fieldtype","targetTable": "#__componentbuilder_fieldtype","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/field.xml","hideFields": ["asset_id","checked_out","checked_out_time","xml"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","store","catid","add_css_view","add_css_views","add_javascript_view_footer","add_javascript_views_footer"],"displayLookup": [{"sourceColumn": "catid","targetTable": "#__categories","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "fieldtype","targetTable": "#__componentbuilder_fieldtype","targetColumn": "guid","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Update Field category Content Types.
|
// Update Field category Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -2745,7 +2757,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/language_translation.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "plugins","targetTable": "#__componentbuilder_joomla_plugin","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "modules","targetTable": "#__componentbuilder_joomla_module","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "components","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/language_translation.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "plugins","targetTable": "#__componentbuilder_joomla_plugin","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "modules","targetTable": "#__componentbuilder_joomla_module","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "components","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Update Language Content Types.
|
// Update Language Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -2830,7 +2842,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/admin_fields.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","admin_view"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "admin_view","targetTable": "#__componentbuilder_admin_view","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/admin_fields.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "admin_view","targetTable": "#__componentbuilder_admin_view","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Update Admin fields conditions Content Types.
|
// Update Admin fields conditions Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -2847,7 +2859,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/admin_fields_conditions.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","admin_view"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "admin_view","targetTable": "#__componentbuilder_admin_view","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/admin_fields_conditions.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "admin_view","targetTable": "#__componentbuilder_admin_view","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Update Admin fields relations Content Types.
|
// Update Admin fields relations Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -2864,7 +2876,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/admin_fields_relations.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","admin_view"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "admin_view","targetTable": "#__componentbuilder_admin_view","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/admin_fields_relations.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "admin_view","targetTable": "#__componentbuilder_admin_view","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Update Admin custom tabs Content Types.
|
// Update Admin custom tabs Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -2881,7 +2893,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/admin_custom_tabs.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","admin_view"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "admin_view","targetTable": "#__componentbuilder_admin_view","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/admin_custom_tabs.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "admin_view","targetTable": "#__componentbuilder_admin_view","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Update Component admin views Content Types.
|
// Update Component admin views Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -2898,7 +2910,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/component_admin_views.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_component"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/component_admin_views.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Update Component site views Content Types.
|
// Update Component site views Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -2915,7 +2927,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/component_site_views.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_component"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/component_site_views.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Update Component custom admin views Content Types.
|
// Update Component custom admin views Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -2932,7 +2944,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/component_custom_admin_views.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_component"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/component_custom_admin_views.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Update Component updates Content Types.
|
// Update Component updates Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -2949,7 +2961,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/component_updates.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_component"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/component_updates.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Update Component mysql tweaks Content Types.
|
// Update Component mysql tweaks Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -2966,7 +2978,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/component_mysql_tweaks.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_component"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/component_mysql_tweaks.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Update Component custom admin menus Content Types.
|
// Update Component custom admin menus Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -2983,7 +2995,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/component_custom_admin_menus.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_component"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/component_custom_admin_menus.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Update Component router Content Types.
|
// Update Component router Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -3000,7 +3012,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/component_router.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_component","mode_constructor_before_parent","mode_constructor_after_parent","mode_methods"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/component_router.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","mode_constructor_before_parent","mode_constructor_after_parent","mode_methods"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Update Component config Content Types.
|
// Update Component config Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -3017,7 +3029,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/component_config.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_component"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/component_config.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Update Component dashboard Content Types.
|
// Update Component dashboard Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -3034,7 +3046,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/component_dashboard.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_component"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/component_dashboard.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Update Component files folders Content Types.
|
// Update Component files folders Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -3051,7 +3063,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/component_files_folders.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_component"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/component_files_folders.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Update Component placeholders Content Types.
|
// Update Component placeholders Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -3068,7 +3080,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/component_placeholders.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_component"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/component_placeholders.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Update Component plugins Content Types.
|
// Update Component plugins Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -3085,7 +3097,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/component_plugins.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_component"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/component_plugins.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Update Component modules Content Types.
|
// Update Component modules Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -3102,7 +3114,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/component_modules.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_component"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/component_modules.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_component","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"},{"sourceColumn": "clone_me","targetTable": "#__componentbuilder_joomla_component","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Update Snippet type Content Types.
|
// Update Snippet type Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -3115,7 +3127,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// rules
|
// rules
|
||||||
'',
|
'',
|
||||||
// fieldMappings
|
// fieldMappings
|
||||||
'{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description"}}',
|
'{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","description":"description","guid":"guid"}}',
|
||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
@ -3136,7 +3148,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/library_config.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","library"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "library","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/library_config.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "library","targetTable": "#__componentbuilder_library","targetColumn": "guid","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Update Library files folders urls Content Types.
|
// Update Library files folders urls Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -3153,7 +3165,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/library_files_folders_urls.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","library"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "library","targetTable": "#__componentbuilder_library","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/library_files_folders_urls.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "library","targetTable": "#__componentbuilder_library","targetColumn": "guid","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Update Class extends Content Types.
|
// Update Class extends Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -3166,7 +3178,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// rules
|
// rules
|
||||||
'',
|
'',
|
||||||
// fieldMappings
|
// fieldMappings
|
||||||
'{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "head","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","extension_type":"extension_type","head":"head","comment":"comment"}}',
|
'{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "head","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","extension_type":"extension_type","guid":"guid","head":"head","comment":"comment"}}',
|
||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
@ -3187,7 +3199,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_module_updates.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_module"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_module","targetTable": "#__componentbuilder_joomla_module","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_module_updates.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_module","targetTable": "#__componentbuilder_joomla_module","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Update Joomla module files folders urls Content Types.
|
// Update Joomla module files folders urls Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -3204,7 +3216,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_module_files_folders_urls.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_module"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_module","targetTable": "#__componentbuilder_joomla_module","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_module_files_folders_urls.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_module","targetTable": "#__componentbuilder_joomla_module","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Update Joomla plugin group Content Types.
|
// Update Joomla plugin group Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -3217,11 +3229,11 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// rules
|
// rules
|
||||||
'',
|
'',
|
||||||
// fieldMappings
|
// fieldMappings
|
||||||
'{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","class_extends":"class_extends"}}',
|
'{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "null","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"name":"name","class_extends":"class_extends","guid":"guid"}}',
|
||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_plugin_group.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","class_extends"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "class_extends","targetTable": "#__componentbuilder_class_extends","targetColumn": "id","displayColumn": "name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_plugin_group.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "class_extends","targetTable": "#__componentbuilder_class_extends","targetColumn": "guid","displayColumn": "name"}]}'
|
||||||
);
|
);
|
||||||
// Update Joomla plugin updates Content Types.
|
// Update Joomla plugin updates Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -3238,7 +3250,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_plugin_updates.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_plugin"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_plugin","targetTable": "#__componentbuilder_joomla_plugin","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_plugin_updates.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_plugin","targetTable": "#__componentbuilder_joomla_plugin","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
// Update Joomla plugin files folders urls Content Types.
|
// Update Joomla plugin files folders urls Content Types.
|
||||||
$this->setContentType(
|
$this->setContentType(
|
||||||
@ -3255,7 +3267,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// router
|
// router
|
||||||
'',
|
'',
|
||||||
// contentHistoryOptions
|
// contentHistoryOptions
|
||||||
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_plugin_files_folders_urls.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits","joomla_plugin"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_plugin","targetTable": "#__componentbuilder_joomla_plugin","targetColumn": "id","displayColumn": "system_name"}]}'
|
'{"formFile": "administrator/components/com_componentbuilder/forms/joomla_plugin_files_folders_urls.xml","hideFields": ["asset_id","checked_out","checked_out_time"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","version","hits"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "joomla_plugin","targetTable": "#__componentbuilder_joomla_plugin","targetColumn": "guid","displayColumn": "system_name"}]}'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
@ -3265,12 +3277,22 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
if ($this->classExists(SchemaChecker::class))
|
if ($this->classExists(SchemaChecker::class))
|
||||||
{
|
{
|
||||||
(new SchemaChecker())->run();
|
(new SchemaChecker())->run();
|
||||||
|
}
|
||||||
|
|
||||||
|
// Converts all necessary tables to utf8mb4 character set and utf8mb4_unicode_ci collation if misaligned.
|
||||||
|
$this->convertAllJCBTables();
|
||||||
|
|
||||||
|
// Migrate all ID's linking to GUID linking
|
||||||
|
if ($this->classExists(MigratorFactory::class))
|
||||||
|
{
|
||||||
|
Helper::setOption('com_componentbuilder'); // to insure we target componentbuilder downstream ;)
|
||||||
|
MigratorFactory::_('Component.Data.Migrator.Guid')->process();
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<div style="background-color: #fff;" class="alert alert-info"><a target="_blank" href="https://dev.vdm.io" title="Component Builder">
|
echo '<div style="background-color: #fff;" class="alert alert-info"><a target="_blank" href="https://dev.vdm.io" title="Component Builder">
|
||||||
<img src="components/com_componentbuilder/assets/images/vdm-component.jpg"/>
|
<img src="components/com_componentbuilder/assets/images/vdm-component.jpg"/>
|
||||||
</a>
|
</a>
|
||||||
<h3>Upgrade to Version 4.0.3 Was Successful! Let us know if anything is not working as expected.</h3></div>';
|
<h3>Upgrade to Version 4.1.0 Was Successful! Let us know if anything is not working as expected.</h3></div>';
|
||||||
|
|
||||||
// Add/Update component in the action logs extensions table.
|
// Add/Update component in the action logs extensions table.
|
||||||
$this->setActionLogsExtensions();
|
$this->setActionLogsExtensions();
|
||||||
@ -3460,7 +3482,7 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
// idHolder
|
// idHolder
|
||||||
'id',
|
'id',
|
||||||
// titleHolder
|
// titleHolder
|
||||||
'component',
|
'system_name',
|
||||||
// tableName
|
// tableName
|
||||||
'#__componentbuilder_custom_code',
|
'#__componentbuilder_custom_code',
|
||||||
// textPrefix
|
// textPrefix
|
||||||
@ -5029,6 +5051,72 @@ class Com_ComponentbuilderInstallerScript implements InstallerScriptInterface
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Converts all necessary tables to utf8mb4 character set and utf8mb4_unicode_ci collation if misaligned.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
protected function convertAllJCBTables(): void
|
||||||
|
{
|
||||||
|
// Define the component tables (short names only)
|
||||||
|
$tables = [
|
||||||
|
'joomla_component', 'joomla_module', 'joomla_plugin', 'joomla_power', 'power',
|
||||||
|
'admin_view', 'custom_admin_view', 'site_view', 'template', 'layout', 'dynamic_get',
|
||||||
|
'custom_code', 'class_property', 'class_method', 'placeholder', 'library', 'snippet',
|
||||||
|
'validation_rule', 'field', 'fieldtype', 'language_translation', 'language', 'server',
|
||||||
|
'repository', 'help_document', 'admin_fields', 'admin_fields_conditions',
|
||||||
|
'admin_fields_relations', 'admin_custom_tabs', 'component_admin_views',
|
||||||
|
'component_site_views', 'component_custom_admin_views', 'component_updates',
|
||||||
|
'component_mysql_tweaks', 'component_custom_admin_menus', 'component_router',
|
||||||
|
'component_config', 'component_dashboard', 'component_files_folders',
|
||||||
|
'component_placeholders', 'component_plugins', 'component_modules', 'snippet_type',
|
||||||
|
'library_config', 'library_files_folders_urls', 'class_extends',
|
||||||
|
'joomla_module_updates', 'joomla_module_files_folders_urls', 'joomla_plugin_group',
|
||||||
|
'joomla_plugin_updates', 'joomla_plugin_files_folders_urls'
|
||||||
|
];
|
||||||
|
|
||||||
|
$db = $this->db;
|
||||||
|
$alteredTables = 0;
|
||||||
|
|
||||||
|
// Fetch table collation data in one query
|
||||||
|
$query = $db->getQuery(true)
|
||||||
|
->select('TABLE_NAME, TABLE_COLLATION')
|
||||||
|
->from('information_schema.TABLES')
|
||||||
|
->where('TABLE_SCHEMA = DATABASE()')
|
||||||
|
->where('TABLE_NAME LIKE ' . $db->quote($db->replacePrefix('#__componentbuilder_%')));
|
||||||
|
|
||||||
|
$db->setQuery($query);
|
||||||
|
$tableResults = $db->loadAssocList('TABLE_NAME');
|
||||||
|
|
||||||
|
foreach ($tables as $shortName)
|
||||||
|
{
|
||||||
|
$tableName = $db->replacePrefix("#__componentbuilder_" . $shortName);
|
||||||
|
|
||||||
|
// Check if table exists and needs conversion
|
||||||
|
if (isset($tableResults[$tableName]) &&
|
||||||
|
$tableResults[$tableName]['TABLE_COLLATION'] !== 'utf8mb4_unicode_ci')
|
||||||
|
{
|
||||||
|
$quotedTableName = $db->quoteName("#__componentbuilder_" . $shortName);
|
||||||
|
|
||||||
|
// Execute conversion for this table separately
|
||||||
|
$alterQuery = "ALTER TABLE $quotedTableName CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;";
|
||||||
|
$db->setQuery($alterQuery);
|
||||||
|
$db->execute();
|
||||||
|
$alteredTables++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Show message if any tables were updated
|
||||||
|
if ($alteredTables > 0)
|
||||||
|
{
|
||||||
|
$this->app->enqueueMessage("Success: Converted $alteredTables JCB tables to utf8mb4_unicode_ci.", 'message');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$this->app->enqueueMessage("Success: All JCB tables are utf8mb4_unicode_ci collated.", 'message');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to move folders into place.
|
* Method to move folders into place.
|
||||||
*
|
*
|
||||||
|
14
README.md
14
README.md
@ -9,7 +9,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo
|
|||||||
|
|
||||||
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save you lots of time and money. A real must have!
|
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save you lots of time and money. A real must have!
|
||||||
|
|
||||||
You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (4.0.3) with **ALL** its features and **ALL** concepts totally open-source and free!
|
You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (4.1.0) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||||
|
|
||||||
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
||||||
|
|
||||||
@ -144,14 +144,14 @@ TODO
|
|||||||
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||||
+ *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
+ *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
||||||
+ *First Build*: 30th April, 2015
|
+ *First Build*: 30th April, 2015
|
||||||
+ *Last Build*: 20th September, 2024
|
+ *Last Build*: 14th February, 2025
|
||||||
+ *Version*: 4.0.3
|
+ *Version*: 4.1.0
|
||||||
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
|
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
+ *Line count*: **855739**
|
+ *Line count*: **947530**
|
||||||
+ *Field count*: **2098**
|
+ *Field count*: **2092**
|
||||||
+ *File count*: **5903**
|
+ *File count*: **6369**
|
||||||
+ *Folder count*: **619**
|
+ *Folder count*: **628**
|
||||||
|
|
||||||
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](https://www.joomlacomponentbuilder.com).
|
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](https://www.joomlacomponentbuilder.com).
|
||||||
> Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
> Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||||
|
@ -9,7 +9,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo
|
|||||||
|
|
||||||
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save you lots of time and money. A real must have!
|
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save you lots of time and money. A real must have!
|
||||||
|
|
||||||
You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (4.0.3) with **ALL** its features and **ALL** concepts totally open-source and free!
|
You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (4.1.0) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||||
|
|
||||||
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
||||||
|
|
||||||
@ -144,14 +144,14 @@ TODO
|
|||||||
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||||
+ *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
+ *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
||||||
+ *First Build*: 30th April, 2015
|
+ *First Build*: 30th April, 2015
|
||||||
+ *Last Build*: 20th September, 2024
|
+ *Last Build*: 14th February, 2025
|
||||||
+ *Version*: 4.0.3
|
+ *Version*: 4.1.0
|
||||||
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
|
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
+ *Line count*: **855739**
|
+ *Line count*: **947530**
|
||||||
+ *Field count*: **2098**
|
+ *Field count*: **2092**
|
||||||
+ *File count*: **5903**
|
+ *File count*: **6369**
|
||||||
+ *Folder count*: **619**
|
+ *Folder count*: **628**
|
||||||
|
|
||||||
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](https://www.joomlacomponentbuilder.com).
|
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](https://www.joomlacomponentbuilder.com).
|
||||||
> Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
> Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||||
|
@ -10,10 +10,105 @@
|
|||||||
|
|
||||||
/* CSS Document */
|
/* CSS Document */
|
||||||
|
|
||||||
html, body {
|
html[data-bs-theme="light"] .main-card {
|
||||||
background-color: #fefcfe !important;
|
background-color: #fefcfe;
|
||||||
}
|
}
|
||||||
|
|
||||||
.jcb-sponsor-banner {
|
.jcb-sponsor-banner {
|
||||||
-webkit-box-shadow: 0 0 7px 1px #f0f0f0;
|
-webkit-box-shadow: 0 0 7px 1px #f0f0f0;
|
||||||
box-shadow: 0 0 7px 1px #f0f0f0;
|
box-shadow: 0 0 7px 1px #f0f0f0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Spinning effect within the mastadon-display-block */
|
||||||
|
.mastadon-display-block .spinning i {
|
||||||
|
animation: spin 1s linear infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mastadon-display-block .enlarge-and-disappear {
|
||||||
|
animation: enlarge-fade-out 1s forwards;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes spin {
|
||||||
|
from {
|
||||||
|
transform: rotate(0deg);
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
transform: rotate(360deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes enlarge-fade-out {
|
||||||
|
0% {
|
||||||
|
transform: scale(1);
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
transform: scale(2);
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Placeholder container scoped to mastadon-display-block */
|
||||||
|
.mastadon-display-block .placeholder {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 10px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
padding: 16px;
|
||||||
|
background-color: #fff;
|
||||||
|
border: 1px solid #ddd;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mastadon-display-block .placeholder-line {
|
||||||
|
height: 12px;
|
||||||
|
background-color: #f0f0f0;
|
||||||
|
border-radius: 4px;
|
||||||
|
animation: pulse 1.5s infinite;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mastadon-display-block .placeholder-line:nth-child(1) {
|
||||||
|
width: 80%;
|
||||||
|
}
|
||||||
|
.mastadon-display-block .placeholder-line:nth-child(2) {
|
||||||
|
width: 60%;
|
||||||
|
}
|
||||||
|
.mastadon-display-block .placeholder-line:nth-child(3) {
|
||||||
|
width: 40%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.mastadon-display-block .placeholder-circle {
|
||||||
|
width: 50px;
|
||||||
|
height: 50px;
|
||||||
|
background-color: #f0f0f0;
|
||||||
|
border-radius: 50%;
|
||||||
|
animation: pulse 1.5s infinite;
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes pulse {
|
||||||
|
0% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
50% {
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
100% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.mastadon-display-block .loading {
|
||||||
|
visibility: visible;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
|
||||||
|
.social-icon-details {
|
||||||
|
min-height: 50px;
|
||||||
|
width: 100%;
|
||||||
|
padding: 5px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
font-size: 10px;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
|
@ -11,3 +11,31 @@
|
|||||||
/* CSS Document */
|
/* CSS Document */
|
||||||
|
|
||||||
|
|
||||||
|
.namespace-code-container {
|
||||||
|
display: inline-block;
|
||||||
|
max-width: 300px; /* Limit visible width */
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow-x: auto; /* Enable horizontal scrolling */
|
||||||
|
border: 1px solid #ccc;
|
||||||
|
padding: 5px;
|
||||||
|
font-family: monospace;
|
||||||
|
background-color: #f4f4f4;
|
||||||
|
cursor: pointer;
|
||||||
|
scrollbar-width: thin; /* Firefox scrollbar */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Style the scrollbar for WebKit browsers */
|
||||||
|
.namespace-code-container::-webkit-scrollbar {
|
||||||
|
height: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.namespace-code-container::-webkit-scrollbar-thumb {
|
||||||
|
background: #888;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Ensure normal text direction while scrolling */
|
||||||
|
.namespace-code-container {
|
||||||
|
direction: ltr;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
333
admin/assets/js/compiler.js
Normal file
333
admin/assets/js/compiler.js
Normal file
@ -0,0 +1,333 @@
|
|||||||
|
/**
|
||||||
|
* @package Joomla.Component.Builder
|
||||||
|
*
|
||||||
|
* @created 30th April, 2015
|
||||||
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||||
|
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||||
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* JS Document */
|
||||||
|
class MastodonFeed {
|
||||||
|
constructor(containerId, refreshButtonId) {
|
||||||
|
this.container = document.getElementById(containerId);
|
||||||
|
this.refreshButton = document.getElementById(refreshButtonId);
|
||||||
|
|
||||||
|
// Get settings from data attributes
|
||||||
|
this.mastodonInstance = this.container.dataset.instance;
|
||||||
|
this.accountId = this.container.dataset.accountId;
|
||||||
|
this.postCount = parseInt(this.container.dataset.postCount) || 5;
|
||||||
|
|
||||||
|
this.cacheKey = `mastodon-feed-cache-${this.accountId}`;
|
||||||
|
this.cacheExpiration = 24 * 60 * 60 * 1000; // 24 hours in milliseconds
|
||||||
|
|
||||||
|
// Initialize the feed
|
||||||
|
this.initFeed();
|
||||||
|
|
||||||
|
// Attach event listener for the refresh button
|
||||||
|
this.refreshButton.addEventListener("click", () => this.clearCacheAndReload());
|
||||||
|
}
|
||||||
|
|
||||||
|
async initFeed() {
|
||||||
|
const cachedData = this.getCachedData();
|
||||||
|
|
||||||
|
if (cachedData) {
|
||||||
|
this.renderFeed(cachedData);
|
||||||
|
} else {
|
||||||
|
await this.loadFeed();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
getCachedData() {
|
||||||
|
const cache = localStorage.getItem(this.cacheKey);
|
||||||
|
if (!cache) return null;
|
||||||
|
|
||||||
|
const parsedCache = JSON.parse(cache);
|
||||||
|
const now = new Date().getTime();
|
||||||
|
|
||||||
|
if (now - parsedCache.timestamp > this.cacheExpiration) {
|
||||||
|
// Cache is expired
|
||||||
|
this.clearCache();
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
return parsedCache.data;
|
||||||
|
}
|
||||||
|
|
||||||
|
setCachedData(data) {
|
||||||
|
const cache = {
|
||||||
|
timestamp: new Date().getTime(),
|
||||||
|
data: data,
|
||||||
|
};
|
||||||
|
localStorage.setItem(this.cacheKey, JSON.stringify(cache));
|
||||||
|
}
|
||||||
|
|
||||||
|
clearCache() {
|
||||||
|
localStorage.removeItem(this.cacheKey);
|
||||||
|
}
|
||||||
|
|
||||||
|
async loadFeed() {
|
||||||
|
try {
|
||||||
|
const response = await fetch(`${this.mastodonInstance}/api/v1/accounts/${this.accountId}/statuses?limit=${this.postCount}`);
|
||||||
|
|
||||||
|
if (!response.ok) {
|
||||||
|
throw new Error(`Failed to fetch Mastodon feed: ${response.statusText}`);
|
||||||
|
}
|
||||||
|
|
||||||
|
const posts = await response.json();
|
||||||
|
this.setCachedData(posts); // Cache the data
|
||||||
|
this.renderFeed(posts);
|
||||||
|
} catch (error) {
|
||||||
|
console.error("Error loading Mastodon feed:", error);
|
||||||
|
this.container.innerHTML = `<div class="alert alert-danger">Error loading feed. Please try again later.</div>`;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
renderFeed(posts) {
|
||||||
|
// Clear existing content
|
||||||
|
this.container.innerHTML = "";
|
||||||
|
|
||||||
|
posts.forEach(post => {
|
||||||
|
if (!post.content) return; // Ignore posts with no content
|
||||||
|
|
||||||
|
// Create post element
|
||||||
|
const listItem = document.createElement("div");
|
||||||
|
listItem.className = "card mb-3";
|
||||||
|
|
||||||
|
const postContent = document.createElement("div");
|
||||||
|
postContent.className = "card-body";
|
||||||
|
|
||||||
|
const user = post.account;
|
||||||
|
const avatar = user.avatar_static;
|
||||||
|
const displayName = user.display_name || user.username;
|
||||||
|
|
||||||
|
// User header
|
||||||
|
const header = document.createElement("div");
|
||||||
|
header.className = "d-flex align-items-center mb-2";
|
||||||
|
|
||||||
|
const avatarLink = document.createElement("a");
|
||||||
|
avatarLink.href = user.url;
|
||||||
|
// avatarLink.target = "_blank";
|
||||||
|
|
||||||
|
const avatarImg = document.createElement("img");
|
||||||
|
avatarImg.src = avatar;
|
||||||
|
avatarImg.alt = displayName;
|
||||||
|
avatarImg.className = "rounded-circle me-2";
|
||||||
|
avatarImg.style.width = "40px";
|
||||||
|
|
||||||
|
avatarLink.appendChild(avatarImg);
|
||||||
|
|
||||||
|
const userInfo = document.createElement("div");
|
||||||
|
const nameLink = document.createElement("a");
|
||||||
|
nameLink.href = user.url;
|
||||||
|
// nameLink.target = "_blank";
|
||||||
|
nameLink.className = "text-decoration-none fw-bold";
|
||||||
|
nameLink.textContent = displayName;
|
||||||
|
|
||||||
|
// The date
|
||||||
|
const dateStamp = this.intelligentDateFormat(post.created_at);
|
||||||
|
|
||||||
|
const username = document.createElement("div");
|
||||||
|
username.className = "text-muted small";
|
||||||
|
username.textContent = `@${user.username} (${dateStamp})`;
|
||||||
|
|
||||||
|
userInfo.appendChild(nameLink);
|
||||||
|
userInfo.appendChild(username);
|
||||||
|
|
||||||
|
header.appendChild(avatarLink);
|
||||||
|
header.appendChild(userInfo);
|
||||||
|
|
||||||
|
// Post content
|
||||||
|
const content = document.createElement("div");
|
||||||
|
content.innerHTML = post.content;
|
||||||
|
|
||||||
|
// Interactions
|
||||||
|
const interactions = document.createElement("div");
|
||||||
|
interactions.className = "btn-group btn-sm";
|
||||||
|
|
||||||
|
// View Post link
|
||||||
|
const viewPost = document.createElement("a");
|
||||||
|
viewPost.href = post.url;
|
||||||
|
// viewPost.target = "_blank";
|
||||||
|
viewPost.className = "btn btn-primary btn-sm";
|
||||||
|
viewPost.innerHTML = `View Post
|
||||||
|
<i class="icon-comments-2"></i> ${post.replies_count}
|
||||||
|
<i class="icon-heart"></i> ${post.favourites_count}
|
||||||
|
<i class="icon-loop"></i> ${post.reblogs_count}`;
|
||||||
|
interactions.appendChild(viewPost);
|
||||||
|
|
||||||
|
// Join Me link
|
||||||
|
const joinLink = document.createElement("a");
|
||||||
|
joinLink.href = "https://joomla.social/invite/gzAvC48K";
|
||||||
|
// joinLink.target = "_blank";
|
||||||
|
joinLink.className = "btn btn-success btn-sm";
|
||||||
|
joinLink.textContent = "Join Me";
|
||||||
|
interactions.appendChild(joinLink);
|
||||||
|
|
||||||
|
// Assemble post
|
||||||
|
postContent.appendChild(header);
|
||||||
|
postContent.appendChild(content);
|
||||||
|
postContent.appendChild(interactions);
|
||||||
|
|
||||||
|
listItem.appendChild(postContent);
|
||||||
|
this.container.appendChild(listItem);
|
||||||
|
this.container.classList.remove('loading');
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
clearCacheAndReload() {
|
||||||
|
// Add spinning effect to the refresh button
|
||||||
|
this.refreshButton.classList.add('spinning');
|
||||||
|
|
||||||
|
// Show placeholder content
|
||||||
|
this.container.classList.add('loading');
|
||||||
|
this.container.innerHTML = this.generatePlaceholder();
|
||||||
|
|
||||||
|
// Clear cache and reload feed
|
||||||
|
this.clearCache();
|
||||||
|
|
||||||
|
// Wait for 3 seconds
|
||||||
|
setTimeout(() => {
|
||||||
|
// Enlarge and fade out the refresh button
|
||||||
|
this.refreshButton.classList.add('enlarge-and-disappear');
|
||||||
|
|
||||||
|
// After the animation, reset the button and content
|
||||||
|
setTimeout(() => {
|
||||||
|
this.refreshButton.classList.remove('spinning', 'enlarge-and-disappear');
|
||||||
|
this.refreshButton.style.display = '';
|
||||||
|
|
||||||
|
// Remove placeholder and restore actual content
|
||||||
|
this.loadFeed();
|
||||||
|
}, 1000); // Animation time for fade-out
|
||||||
|
}, 3000); // Spinning duration
|
||||||
|
}
|
||||||
|
|
||||||
|
generatePlaceholder() {
|
||||||
|
let placeholders = '';
|
||||||
|
for (let i = 0; i < this.postCount; i++) {
|
||||||
|
placeholders += `
|
||||||
|
<div class="placeholder">
|
||||||
|
<div class="placeholder-circle"></div>
|
||||||
|
<div class="placeholder-line"></div>
|
||||||
|
<div class="placeholder-line"></div>
|
||||||
|
<div class="placeholder-line"></div>
|
||||||
|
<div class="placeholder-line"></div>
|
||||||
|
</div>
|
||||||
|
`;
|
||||||
|
}
|
||||||
|
return placeholders;
|
||||||
|
}
|
||||||
|
|
||||||
|
intelligentDateFormat(isoDateString) {
|
||||||
|
const date = new Date(isoDateString);
|
||||||
|
const now = new Date();
|
||||||
|
|
||||||
|
// Helper function to determine if two dates are the same day
|
||||||
|
const isSameDay = (d1, d2) => d1.toDateString() === d2.toDateString();
|
||||||
|
|
||||||
|
// Calculate the difference in time and days
|
||||||
|
const diffTime = Math.abs(now - date);
|
||||||
|
const diffDays = Math.floor(diffTime / (1000 * 60 * 60 * 24));
|
||||||
|
|
||||||
|
if (isSameDay(date, now)) {
|
||||||
|
// If the date is today, show the time only
|
||||||
|
return date.toLocaleTimeString(undefined, { hour: 'numeric', minute: '2-digit', hour12: true });
|
||||||
|
} else if (diffDays < 7) {
|
||||||
|
// If it's within the last week, show the day name
|
||||||
|
return date.toLocaleDateString(undefined, { weekday: 'long', hour: 'numeric', minute: '2-digit', hour12: true });
|
||||||
|
} else if (diffDays < 30) {
|
||||||
|
// If it's within the last month, show the number of days ago
|
||||||
|
return `${diffDays} days ago`;
|
||||||
|
} else if (date.getFullYear() === now.getFullYear()) {
|
||||||
|
// If it's this year, show just the month and day
|
||||||
|
return date.toLocaleDateString(undefined, { month: 'short', day: 'numeric' });
|
||||||
|
} else {
|
||||||
|
// For older dates, show month, day, and year
|
||||||
|
return date.toLocaleDateString(undefined, { month: 'short', day: 'numeric', year: 'numeric' });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class IconWaveAnimator {
|
||||||
|
constructor(containerId, detailsId) {
|
||||||
|
this.details = document.getElementById(detailsId);
|
||||||
|
this.container = document.getElementById(containerId);
|
||||||
|
this.icons = this.container.querySelectorAll("i");
|
||||||
|
this.links = this.container.querySelectorAll("a");
|
||||||
|
this.init();
|
||||||
|
}
|
||||||
|
|
||||||
|
init() {
|
||||||
|
// set the icon hover events
|
||||||
|
this.setupHoverEvents();
|
||||||
|
|
||||||
|
// Random chance to do nothing (1 out of 10)
|
||||||
|
if (Math.random() < 0.1) return;
|
||||||
|
|
||||||
|
// Randomize the initial delay before starting
|
||||||
|
const initialDelay = Math.random() * 2000 + 2000; // 2–4 seconds
|
||||||
|
setTimeout(() => {
|
||||||
|
this.randomBehavior();
|
||||||
|
}, initialDelay);
|
||||||
|
|
||||||
|
// Occasionally trigger a second wave after 10 seconds
|
||||||
|
if (Math.random() > 0.5) {
|
||||||
|
setTimeout(() => {
|
||||||
|
this.mexicanWave(false); // Reverse wave
|
||||||
|
}, 10000);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
mexicanWave(forward = true) {
|
||||||
|
let delay = 0;
|
||||||
|
const iconsArray = Array.from(this.icons);
|
||||||
|
|
||||||
|
(forward ? iconsArray : iconsArray.reverse()).forEach((icon) => {
|
||||||
|
setTimeout(() => {
|
||||||
|
icon.style.transition = "transform 0.3s ease-in-out";
|
||||||
|
icon.style.transform = "scale(1.3)";
|
||||||
|
setTimeout(() => {
|
||||||
|
icon.style.transform = "scale(1)";
|
||||||
|
}, 300);
|
||||||
|
}, delay);
|
||||||
|
delay += 150; // Stagger the effect for the wave
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
randomBehavior() {
|
||||||
|
const waveDirection = Math.random() > 0.5 ? "forward" : "backward";
|
||||||
|
const waveCount = Math.floor(Math.random() * 10) + 1; // 1 to 5 waves
|
||||||
|
const interval = Math.random() * 2000 + 3000; // 3 to 5 seconds
|
||||||
|
|
||||||
|
let executedCount = 0;
|
||||||
|
const intervalId = setInterval(() => {
|
||||||
|
if (executedCount >= waveCount) {
|
||||||
|
clearInterval(intervalId);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.mexicanWave(waveDirection === "forward");
|
||||||
|
executedCount++;
|
||||||
|
}, interval);
|
||||||
|
}
|
||||||
|
|
||||||
|
setupHoverEvents() {
|
||||||
|
this.links.forEach((link) => {
|
||||||
|
link.addEventListener("mouseenter", () => this.showDetails(link));
|
||||||
|
link.addEventListener("mouseleave", () => this.clearDetails());
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
showDetails(link) {
|
||||||
|
const description = link.dataset.description;
|
||||||
|
if (this.details && description) {
|
||||||
|
this.details.textContent = description;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
clearDetails() {
|
||||||
|
if (this.details) {
|
||||||
|
this.details.textContent = "";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -78,7 +78,7 @@ function getLibraries(path) {
|
|||||||
buildLibraries(_paths);
|
buildLibraries(_paths);
|
||||||
} else {
|
} else {
|
||||||
jQuery.get(path)
|
jQuery.get(path)
|
||||||
.success(function(paths) {
|
.done(function(paths) {
|
||||||
// load only this library paths
|
// load only this library paths
|
||||||
jQuery.jStorage.set('JCB-Snippets-Paths', paths, {TTL: expire});
|
jQuery.jStorage.set('JCB-Snippets-Paths', paths, {TTL: expire});
|
||||||
buildLibraries(paths);
|
buildLibraries(paths);
|
||||||
@ -161,7 +161,7 @@ function getSnippets(path, libraryName) {
|
|||||||
jQuery('#snippets-github').html('<h1>'+Joomla.JText._('COM_COMPONENTBUILDER_JCB_COMMUNITY_SNIPPETS')+'</h1>');
|
jQuery('#snippets-github').html('<h1>'+Joomla.JText._('COM_COMPONENTBUILDER_JCB_COMMUNITY_SNIPPETS')+'</h1>');
|
||||||
} else {
|
} else {
|
||||||
jQuery.get(path)
|
jQuery.get(path)
|
||||||
.success(function(paths) {
|
.done(function(paths) {
|
||||||
// load only this library paths
|
// load only this library paths
|
||||||
jQuery.jStorage.set('JCB-Snippets-Paths', paths, {TTL: expire});
|
jQuery.jStorage.set('JCB-Snippets-Paths', paths, {TTL: expire});
|
||||||
setSnippets(paths, libraryName);
|
setSnippets(paths, libraryName);
|
||||||
@ -190,7 +190,7 @@ function setSnippets(paths, libraryName) {
|
|||||||
fromLocal = true;
|
fromLocal = true;
|
||||||
} else {
|
} else {
|
||||||
jQuery.get(snippetPath+value.path)
|
jQuery.get(snippetPath+value.path)
|
||||||
.success(function(snippet) {
|
.done(function(snippet) {
|
||||||
// convert the string to json.object
|
// convert the string to json.object
|
||||||
snippet = jQuery.parseJSON(snippet);
|
snippet = jQuery.parseJSON(snippet);
|
||||||
jQuery.jStorage.set(value.path, snippet, {TTL: expire});
|
jQuery.jStorage.set(value.path, snippet, {TTL: expire});
|
||||||
@ -469,7 +469,7 @@ function getSnippetModal(key, type) {
|
|||||||
showSnippetModal(_snippet, type);
|
showSnippetModal(_snippet, type);
|
||||||
} else {
|
} else {
|
||||||
jQuery.get('https://raw.githubusercontent.com/vdm-io/Joomla-Component-Builder-Snippets/master/'+key)
|
jQuery.get('https://raw.githubusercontent.com/vdm-io/Joomla-Component-Builder-Snippets/master/'+key)
|
||||||
.success(function(snippet) {
|
.done(function(snippet) {
|
||||||
// convert the string to json.object
|
// convert the string to json.object
|
||||||
snippet = jQuery.parseJSON(snippet);
|
snippet = jQuery.parseJSON(snippet);
|
||||||
jQuery.jStorage.set(key, snippet, {TTL: expire});
|
jQuery.jStorage.set(key, snippet, {TTL: expire});
|
||||||
@ -527,7 +527,6 @@ function getKeyID(key) {
|
|||||||
// return the id build
|
// return the id build
|
||||||
return keyID;
|
return keyID;
|
||||||
}
|
}
|
||||||
|
|
||||||
// get key ID
|
// get key ID
|
||||||
function getKeyID(key) {
|
function getKeyID(key) {
|
||||||
// get useful ID
|
// get useful ID
|
||||||
|
@ -35,6 +35,9 @@ class ###Component###View###SView### extends HtmlView
|
|||||||
$this->user = Factory::getUser();
|
$this->user = Factory::getUser();
|
||||||
// get global action permissions
|
// get global action permissions
|
||||||
$this->canDo = ###Component###Helper::getActions('###sview###');###CUSTOM_ADMIN_DIPLAY_METHOD###
|
$this->canDo = ###Component###Helper::getActions('###sview###');###CUSTOM_ADMIN_DIPLAY_METHOD###
|
||||||
|
|
||||||
|
// Display the template
|
||||||
|
parent::display($tpl);
|
||||||
}###CUSTOM_ADMIN_EXTRA_DIPLAY_METHODS###
|
}###CUSTOM_ADMIN_EXTRA_DIPLAY_METHODS###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -72,11 +72,11 @@ class ###Component###View###View### extends HtmlView
|
|||||||
throw new Exception(implode("\n", $errors), 500);
|
throw new Exception(implode("\n", $errors), 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Display the template
|
|
||||||
parent::display($tpl);
|
|
||||||
|
|
||||||
// Set the document
|
// Set the document
|
||||||
$this->setDocument();
|
$this->setDocument();
|
||||||
|
|
||||||
|
// Display the template
|
||||||
|
parent::display($tpl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -113,6 +113,11 @@ class ###Component###View###View### extends HtmlView
|
|||||||
*/
|
*/
|
||||||
protected function setDocument()
|
protected function setDocument()
|
||||||
{
|
{
|
||||||
|
// Load Core
|
||||||
|
Html::_('behavior.core');
|
||||||
|
// Load jQuery
|
||||||
|
Html::_('jquery.framework');
|
||||||
|
|
||||||
$isNew = ($this->item->id < 1);
|
$isNew = ($this->item->id < 1);
|
||||||
$this->getDocument()->setTitle(Text::_($isNew ? 'COM_###COMPONENT###_###VIEW###_NEW' : 'COM_###COMPONENT###_###VIEW###_EDIT'));
|
$this->getDocument()->setTitle(Text::_($isNew ? 'COM_###COMPONENT###_###VIEW###_NEW' : 'COM_###COMPONENT###_###VIEW###_EDIT'));
|
||||||
Html::_('stylesheet', "administrator/components/com_###component###/assets/css/###view###.css", ['version' => 'auto']);###AJAXTOKE######LINKEDVIEWTABLESCRIPTS###
|
Html::_('stylesheet', "administrator/components/com_###component###/assets/css/###view###.css", ['version' => 'auto']);###AJAXTOKE######LINKEDVIEWTABLESCRIPTS###
|
||||||
|
@ -72,11 +72,11 @@ class ###Component###View###View### extends HtmlView
|
|||||||
throw new Exception(implode("\n", $errors), 500);
|
throw new Exception(implode("\n", $errors), 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Display the template
|
|
||||||
parent::display($tpl);
|
|
||||||
|
|
||||||
// Set the document
|
// Set the document
|
||||||
$this->setDocument();
|
$this->setDocument();
|
||||||
|
|
||||||
|
// Display the template
|
||||||
|
parent::display($tpl);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -114,6 +114,11 @@ class ###Component###View###View### extends HtmlView
|
|||||||
*/
|
*/
|
||||||
protected function setDocument()
|
protected function setDocument()
|
||||||
{
|
{
|
||||||
|
// Load Core
|
||||||
|
Html::_('behavior.core');
|
||||||
|
// Load jQuery
|
||||||
|
Html::_('jquery.framework');
|
||||||
|
|
||||||
$isNew = ($this->item->id < 1);
|
$isNew = ($this->item->id < 1);
|
||||||
$this->getDocument()->setTitle(Text::_($isNew ? 'COM_###COMPONENT###_###VIEW###_NEW' : 'COM_###COMPONENT###_###VIEW###_EDIT'));
|
$this->getDocument()->setTitle(Text::_($isNew ? 'COM_###COMPONENT###_###VIEW###_NEW' : 'COM_###COMPONENT###_###VIEW###_EDIT'));
|
||||||
// only add the ISIS template css & js if needed (default is 1 = true)
|
// only add the ISIS template css & js if needed (default is 1 = true)
|
||||||
|
@ -65,11 +65,11 @@ class ###Component###View###Views### extends HtmlView
|
|||||||
throw new Exception(implode("\n", $errors), 500);
|
throw new Exception(implode("\n", $errors), 500);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Display the template
|
|
||||||
parent::display($tpl);
|
|
||||||
|
|
||||||
// Set the document
|
// Set the document
|
||||||
$this->setDocument();
|
$this->setDocument();
|
||||||
|
|
||||||
|
// Display the template
|
||||||
|
parent::display($tpl);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -151,6 +151,11 @@ class ###Component###View###Views### extends HtmlView
|
|||||||
*/
|
*/
|
||||||
protected function setDocument()
|
protected function setDocument()
|
||||||
{
|
{
|
||||||
|
// Load Core
|
||||||
|
Html::_('behavior.core');
|
||||||
|
// Load jQuery
|
||||||
|
Html::_('jquery.framework');
|
||||||
|
|
||||||
if (!isset($this->document))
|
if (!isset($this->document))
|
||||||
{
|
{
|
||||||
$this->document = Factory::getDocument();
|
$this->document = Factory::getDocument();
|
||||||
|
@ -35,6 +35,9 @@ class ###Component###View###SViews### extends HtmlView
|
|||||||
$this->user = Factory::getUser();
|
$this->user = Factory::getUser();
|
||||||
// get global action permissions
|
// get global action permissions
|
||||||
$this->canDo = ###Component###Helper::getActions('###sview###');###CUSTOM_ADMIN_DIPLAY_METHOD###
|
$this->canDo = ###Component###Helper::getActions('###sview###');###CUSTOM_ADMIN_DIPLAY_METHOD###
|
||||||
|
|
||||||
|
// Display the template
|
||||||
|
parent::display($tpl);
|
||||||
}###CUSTOM_ADMIN_EXTRA_DIPLAY_METHODS###
|
}###CUSTOM_ADMIN_EXTRA_DIPLAY_METHODS###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -33,6 +33,9 @@ class ###Component###View###SViews### extends HtmlView
|
|||||||
$this->menu = $this->app->getMenu()->getActive();
|
$this->menu = $this->app->getMenu()->getActive();
|
||||||
// get the user object
|
// get the user object
|
||||||
$this->user = Factory::getUser();###SITE_DIPLAY_METHOD###
|
$this->user = Factory::getUser();###SITE_DIPLAY_METHOD###
|
||||||
|
|
||||||
|
// Display the template
|
||||||
|
parent::display($tpl);
|
||||||
}###SITE_EXTRA_DIPLAY_METHODS###
|
}###SITE_EXTRA_DIPLAY_METHODS###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -33,6 +33,9 @@ class ###Component###View###SView### extends HtmlView
|
|||||||
$this->menu = $this->app->getMenu()->getActive();
|
$this->menu = $this->app->getMenu()->getActive();
|
||||||
// get the user object
|
// get the user object
|
||||||
$this->user = Factory::getUser();###SITE_DIPLAY_METHOD###
|
$this->user = Factory::getUser();###SITE_DIPLAY_METHOD###
|
||||||
|
|
||||||
|
// Display the template
|
||||||
|
parent::display($tpl);
|
||||||
}###SITE_EXTRA_DIPLAY_METHODS###
|
}###SITE_EXTRA_DIPLAY_METHODS###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -25,6 +25,7 @@ namespace ###NAMESPACEPREFIX###\Component\###ComponentNamespace###\Administrator
|
|||||||
*
|
*
|
||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
|
#[\AllowDynamicProperties]
|
||||||
class HtmlView extends BaseHtmlView
|
class HtmlView extends BaseHtmlView
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@ -89,9 +90,10 @@ class HtmlView extends BaseHtmlView
|
|||||||
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
|
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
* @throws \Exception
|
||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
public function display($tpl = null)
|
public function display($tpl = null): void
|
||||||
{
|
{
|
||||||
// Assign data to the view
|
// Assign data to the view
|
||||||
$this->items = $this->get('Items');
|
$this->items = $this->get('Items');
|
||||||
|
@ -109,13 +109,22 @@ class ###View###Controller extends FormController
|
|||||||
*/
|
*/
|
||||||
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
||||||
{
|
{
|
||||||
// get the referral options (old method use return instead see parent)
|
// get int-defaults (to int new items with default values dynamically)
|
||||||
|
$init_defaults = $this->input->get('init_defaults', null, 'STRING');
|
||||||
|
|
||||||
|
// get the referral options (old method use init_defaults or return instead see parent)
|
||||||
$ref = $this->input->get('ref', 0, 'string');
|
$ref = $this->input->get('ref', 0, 'string');
|
||||||
$refid = $this->input->get('refid', 0, 'int');
|
$refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
// get redirect info.
|
// get redirect info.
|
||||||
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
||||||
|
|
||||||
|
// set int-defaults
|
||||||
|
if (!empty($init_defaults))
|
||||||
|
{
|
||||||
|
$append = '&init_defaults='. (string) $init_defaults . $append;
|
||||||
|
}
|
||||||
|
|
||||||
// set the referral options
|
// set the referral options
|
||||||
if ($refid && $ref)
|
if ($refid && $ref)
|
||||||
{
|
{
|
||||||
|
@ -25,6 +25,7 @@ namespace ###NAMESPACEPREFIX###\Component\###ComponentNamespace###\Administrator
|
|||||||
*
|
*
|
||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
|
#[\AllowDynamicProperties]
|
||||||
class HtmlView extends BaseHtmlView
|
class HtmlView extends BaseHtmlView
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@ -113,9 +114,10 @@ class HtmlView extends BaseHtmlView
|
|||||||
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
|
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
* @throws \Exception
|
||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
public function display($tpl = null)
|
public function display($tpl = null): void
|
||||||
{
|
{
|
||||||
// set params
|
// set params
|
||||||
$this->params = ComponentHelper::getParams('com_###component###');
|
$this->params = ComponentHelper::getParams('com_###component###');
|
||||||
|
@ -25,6 +25,7 @@ namespace ###NAMESPACEPREFIX###\Component\###ComponentNamespace###\Administrator
|
|||||||
*
|
*
|
||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
|
#[\AllowDynamicProperties]
|
||||||
class HtmlView extends BaseHtmlView
|
class HtmlView extends BaseHtmlView
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@ -65,9 +66,10 @@ class HtmlView extends BaseHtmlView
|
|||||||
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
|
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
* @throws \Exception
|
||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
public function display($tpl = null)
|
public function display($tpl = null): void
|
||||||
{
|
{
|
||||||
// get component params
|
// get component params
|
||||||
$this->params = ComponentHelper::getParams('com_###component###');
|
$this->params = ComponentHelper::getParams('com_###component###');
|
||||||
@ -82,6 +84,8 @@ class HtmlView extends BaseHtmlView
|
|||||||
|
|
||||||
// Set the html view document stuff
|
// Set the html view document stuff
|
||||||
$this->_prepareDocument();
|
$this->_prepareDocument();
|
||||||
|
|
||||||
|
parent::display($tpl);
|
||||||
}###CUSTOM_ADMIN_EXTRA_DIPLAY_METHODS###
|
}###CUSTOM_ADMIN_EXTRA_DIPLAY_METHODS###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -105,9 +105,12 @@ class ###SViews###Model extends ListModel
|
|||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A custom property for UIKit components. (not used unless you load v2)
|
* A custom property for UI Kit components.
|
||||||
|
*
|
||||||
|
* @var mixed Property for storing UI Kit component-related data or objects.
|
||||||
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
protected $uikitComp;
|
protected $uikitComp = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
|
@ -25,6 +25,7 @@ namespace ###NAMESPACEPREFIX###\Component\###ComponentNamespace###\Administrator
|
|||||||
*
|
*
|
||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
|
#[\AllowDynamicProperties]
|
||||||
class HtmlView extends BaseHtmlView
|
class HtmlView extends BaseHtmlView
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@ -33,9 +34,10 @@ class HtmlView extends BaseHtmlView
|
|||||||
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
|
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
* @throws \Exception
|
||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
public function display($tpl = null)
|
public function display($tpl = null): void
|
||||||
{
|
{
|
||||||
// get component params
|
// get component params
|
||||||
$this->params = ComponentHelper::getParams('com_###component###');
|
$this->params = ComponentHelper::getParams('com_###component###');
|
||||||
@ -50,6 +52,8 @@ class HtmlView extends BaseHtmlView
|
|||||||
|
|
||||||
// Set the html view document stuff
|
// Set the html view document stuff
|
||||||
$this->_prepareDocument();
|
$this->_prepareDocument();
|
||||||
|
|
||||||
|
parent::display($tpl);
|
||||||
}###CUSTOM_ADMIN_EXTRA_DIPLAY_METHODS###
|
}###CUSTOM_ADMIN_EXTRA_DIPLAY_METHODS###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -115,10 +115,10 @@ class ###SView###Model extends ItemModel
|
|||||||
/**
|
/**
|
||||||
* A custom property for UI Kit components.
|
* A custom property for UI Kit components.
|
||||||
*
|
*
|
||||||
* @var array|null Property for storing UI Kit component-related data or objects.
|
* @var mixed Property for storing UI Kit component-related data or objects.
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
protected ?array $uikitComp;
|
protected $uikitComp = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var object item
|
* @var object item
|
||||||
|
@ -25,13 +25,17 @@ namespace ###NAMESPACEPREFIX###\Component\###ComponentNamespace###\Administrator
|
|||||||
*
|
*
|
||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
|
#[\AllowDynamicProperties]
|
||||||
class HtmlView extends BaseHtmlView
|
class HtmlView extends BaseHtmlView
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* View display method
|
* View display method
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
* @throws \Exception
|
||||||
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
function display($tpl = null)
|
function display($tpl = null): void
|
||||||
{
|
{
|
||||||
// Assign data to the view
|
// Assign data to the view
|
||||||
$this->icons = $this->get('Icons');
|
$this->icons = $this->get('Icons');
|
||||||
@ -93,7 +97,7 @@ class HtmlView extends BaseHtmlView
|
|||||||
// set page title
|
// set page title
|
||||||
$this->getDocument()->setTitle(Text::_('COM_###COMPONENT###_DASHBOARD'));
|
$this->getDocument()->setTitle(Text::_('COM_###COMPONENT###_DASHBOARD'));
|
||||||
// add manifest to page JavaScript
|
// add manifest to page JavaScript
|
||||||
$this->getDocument()->addScriptDeclaration("var manifest = JSON.parse('" . json_encode($this->manifest) . "');", "text/javascript");
|
$this->getDocument()->addScriptDeclaration("var manifest = JSON.parse(" . json_encode($this->manifest) . ");", "text/javascript");
|
||||||
// add styles
|
// add styles
|
||||||
foreach ($this->styles as $style)
|
foreach ($this->styles as $style)
|
||||||
{
|
{
|
||||||
|
@ -109,13 +109,22 @@ class ###View###Controller extends FormController
|
|||||||
*/
|
*/
|
||||||
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
||||||
{
|
{
|
||||||
// get the referral options (old method use return instead see parent)
|
// get int-defaults (to int new items with default values dynamically)
|
||||||
|
$init_defaults = $this->input->get('init_defaults', null, 'STRING');
|
||||||
|
|
||||||
|
// get the referral options (old method use init_defaults or return instead see parent)
|
||||||
$ref = $this->input->get('ref', 0, 'string');
|
$ref = $this->input->get('ref', 0, 'string');
|
||||||
$refid = $this->input->get('refid', 0, 'int');
|
$refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
// get redirect info.
|
// get redirect info.
|
||||||
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
||||||
|
|
||||||
|
// set int-defaults
|
||||||
|
if (!empty($init_defaults))
|
||||||
|
{
|
||||||
|
$append = '&init_defaults='. (string) $init_defaults . $append;
|
||||||
|
}
|
||||||
|
|
||||||
// set the referral options
|
// set the referral options
|
||||||
if ($refid && $ref)
|
if ($refid && $ref)
|
||||||
{
|
{
|
||||||
|
@ -81,9 +81,10 @@ class HtmlView extends BaseHtmlView
|
|||||||
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
|
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
* @throws \Exception
|
||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
public function display($tpl = null)
|
public function display($tpl = null): void
|
||||||
{
|
{
|
||||||
// get combined params of both component and menu
|
// get combined params of both component and menu
|
||||||
$this->app ??= Factory::getApplication();
|
$this->app ??= Factory::getApplication();
|
||||||
@ -93,6 +94,8 @@ class HtmlView extends BaseHtmlView
|
|||||||
$this->scripts = $this->get('Scripts');
|
$this->scripts = $this->get('Scripts');
|
||||||
// get the user object
|
// get the user object
|
||||||
$this->user ??= $this->app->getIdentity();###SITE_DIPLAY_METHOD###
|
$this->user ??= $this->app->getIdentity();###SITE_DIPLAY_METHOD###
|
||||||
|
|
||||||
|
parent::display($tpl);
|
||||||
}###SITE_EXTRA_DIPLAY_METHODS###
|
}###SITE_EXTRA_DIPLAY_METHODS###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -65,9 +65,10 @@ class HtmlView extends BaseHtmlView
|
|||||||
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
|
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
* @throws \Exception
|
||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
public function display($tpl = null)
|
public function display($tpl = null): void
|
||||||
{
|
{
|
||||||
// get combined params of both component and menu
|
// get combined params of both component and menu
|
||||||
$this->app ??= Factory::getApplication();
|
$this->app ??= Factory::getApplication();
|
||||||
@ -77,6 +78,8 @@ class HtmlView extends BaseHtmlView
|
|||||||
$this->scripts = $this->get('Scripts') ?? [];
|
$this->scripts = $this->get('Scripts') ?? [];
|
||||||
// get the user object
|
// get the user object
|
||||||
$this->user ??= $this->getCurrentUser();###SITE_DIPLAY_METHOD###
|
$this->user ??= $this->getCurrentUser();###SITE_DIPLAY_METHOD###
|
||||||
|
|
||||||
|
parent::display($tpl);
|
||||||
}###SITE_EXTRA_DIPLAY_METHODS###
|
}###SITE_EXTRA_DIPLAY_METHODS###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -57,7 +57,7 @@
|
|||||||
buttons="add,remove,move"
|
buttons="add,remove,move"
|
||||||
description="COM_COMPONENTBUILDER_CONFIG_SUBFORM_LAYOUTS_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CONFIG_SUBFORM_LAYOUTS_DESCRIPTION"
|
||||||
icon="list"
|
icon="list"
|
||||||
max="9"
|
max="10"
|
||||||
min="1">
|
min="1">
|
||||||
<form hidden="true" name="list_subform_layouts_modal" repeat="true">
|
<form hidden="true" name="list_subform_layouts_modal" repeat="true">
|
||||||
<!-- View_field Field. Type: List. (joomla) -->
|
<!-- View_field Field. Type: List. (joomla) -->
|
||||||
@ -73,6 +73,8 @@
|
|||||||
<!-- Option Set. -->
|
<!-- Option Set. -->
|
||||||
<option value="default">
|
<option value="default">
|
||||||
COM_COMPONENTBUILDER_CONFIG_DEFAULT</option>
|
COM_COMPONENTBUILDER_CONFIG_DEFAULT</option>
|
||||||
|
<option value="admin_view.ajax_input">
|
||||||
|
COM_COMPONENTBUILDER_CONFIG_ADMIN_VIEWS_AJAX_INPUT</option>
|
||||||
<option value="admin_custom_tabs.tabs">
|
<option value="admin_custom_tabs.tabs">
|
||||||
COM_COMPONENTBUILDER_CONFIG_ADMIN_CUSTOM_TABS_TABS</option>
|
COM_COMPONENTBUILDER_CONFIG_ADMIN_CUSTOM_TABS_TABS</option>
|
||||||
<option value="admin_fields.addfields">
|
<option value="admin_fields.addfields">
|
||||||
@ -93,6 +95,8 @@
|
|||||||
COM_COMPONENTBUILDER_CONFIG_COMPONENT_CUSTOM_ADMIN_MENUS_ADDCUSTOMMENUS</option>
|
COM_COMPONENTBUILDER_CONFIG_COMPONENT_CUSTOM_ADMIN_MENUS_ADDCUSTOMMENUS</option>
|
||||||
<option value="component_site_views.addsite_views">
|
<option value="component_site_views.addsite_views">
|
||||||
COM_COMPONENTBUILDER_CONFIG_COMPONENT_SITE_VIEWS_ADDSITE_VIEWS</option>
|
COM_COMPONENTBUILDER_CONFIG_COMPONENT_SITE_VIEWS_ADDSITE_VIEWS</option>
|
||||||
|
<option value="custom_admin_view.ajax_input">
|
||||||
|
COM_COMPONENTBUILDER_CONFIG_CUSTOM_ADMIN_VIEWS_AJAX_INPUT</option>
|
||||||
<option value="dynamic_get.join_db_table">
|
<option value="dynamic_get.join_db_table">
|
||||||
COM_COMPONENTBUILDER_CONFIG_DYNAMIC_GET_JOIN_DB_TABLE</option>
|
COM_COMPONENTBUILDER_CONFIG_DYNAMIC_GET_JOIN_DB_TABLE</option>
|
||||||
<option value="dynamic_get.join_view_table">
|
<option value="dynamic_get.join_view_table">
|
||||||
@ -103,6 +107,8 @@
|
|||||||
COM_COMPONENTBUILDER_CONFIG_JOOMLA_MODULE_UPDATES_VERSION_UPDATE</option>
|
COM_COMPONENTBUILDER_CONFIG_JOOMLA_MODULE_UPDATES_VERSION_UPDATE</option>
|
||||||
<option value="joomla_plugin_updates.version_update">
|
<option value="joomla_plugin_updates.version_update">
|
||||||
COM_COMPONENTBUILDER_CONFIG_JOOMLA_PLUGIN_UPDATES_VERSION_UPDATE</option>
|
COM_COMPONENTBUILDER_CONFIG_JOOMLA_PLUGIN_UPDATES_VERSION_UPDATE</option>
|
||||||
|
<option value="site_view.ajax_input">
|
||||||
|
COM_COMPONENTBUILDER_CONFIG_SITE_VIEWS_AJAX_INPUT</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- Layout Field. Type: List. (joomla) -->
|
<!-- Layout Field. Type: List. (joomla) -->
|
||||||
<field
|
<field
|
||||||
|
@ -106,7 +106,6 @@
|
|||||||
class="list_class"
|
class="list_class"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
layout="joomla.form.field.list-fancy-select"
|
||||||
multiple="false"
|
multiple="false"
|
||||||
default=""
|
|
||||||
required="true"
|
required="true"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
button="false"
|
button="false"
|
||||||
|
@ -106,7 +106,6 @@
|
|||||||
class="list_class"
|
class="list_class"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
layout="joomla.form.field.list-fancy-select"
|
||||||
multiple="false"
|
multiple="false"
|
||||||
default=""
|
|
||||||
required="true"
|
required="true"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
button="false"
|
button="false"
|
||||||
|
@ -106,7 +106,6 @@
|
|||||||
class="list_class"
|
class="list_class"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
layout="joomla.form.field.list-fancy-select"
|
||||||
multiple="false"
|
multiple="false"
|
||||||
default=""
|
|
||||||
required="true"
|
required="true"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
button="false"
|
button="false"
|
||||||
@ -130,7 +129,6 @@
|
|||||||
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_TARGET_FIELD_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_ADMIN_FIELDS_CONDITIONS_TARGET_FIELD_DESCRIPTION"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
layout="joomla.form.field.list-fancy-select"
|
||||||
multiple="true"
|
multiple="true"
|
||||||
default=""
|
|
||||||
required="true"
|
required="true"
|
||||||
button="false"
|
button="false"
|
||||||
/>
|
/>
|
||||||
|
@ -106,7 +106,6 @@
|
|||||||
class="list_class"
|
class="list_class"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
layout="joomla.form.field.list-fancy-select"
|
||||||
multiple="false"
|
multiple="false"
|
||||||
default=""
|
|
||||||
required="true"
|
required="true"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
button="false"
|
button="false"
|
||||||
|
@ -205,21 +205,38 @@
|
|||||||
filter="raw"
|
filter="raw"
|
||||||
validate="code"
|
validate="code"
|
||||||
/>
|
/>
|
||||||
<!-- Php_import_ext Field. Type: Textarea. (joomla) -->
|
<!-- Php_getitems Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="editor"
|
||||||
name="php_import_ext"
|
name="php_getitems"
|
||||||
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_EXT_LABEL"
|
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_LABEL"
|
||||||
rows="30"
|
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_DESCRIPTION"
|
||||||
|
width="100%"
|
||||||
|
height="450px"
|
||||||
cols="15"
|
cols="15"
|
||||||
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_EXT_DESCRIPTION"
|
rows="30"
|
||||||
class="text_area span12"
|
buttons="no"
|
||||||
|
syntax="php"
|
||||||
|
editor="codemirror|none"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_EXT_HINT"
|
validate="code"
|
||||||
required="true"
|
/>
|
||||||
|
<!-- Name_list Field. Type: Text. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="text"
|
||||||
|
name="name_list"
|
||||||
|
label="COM_COMPONENTBUILDER_ADMIN_VIEW_NAME_LIST_LABEL"
|
||||||
|
size="40"
|
||||||
|
maxlength="150"
|
||||||
|
description="COM_COMPONENTBUILDER_ADMIN_VIEW_NAME_LIST_DESCRIPTION"
|
||||||
|
class="inputbox"
|
||||||
|
readonly="false"
|
||||||
|
disabled="false"
|
||||||
|
required="true"
|
||||||
|
filter="STRING"
|
||||||
|
message="COM_COMPONENTBUILDER_ADMIN_VIEW_NAME_LIST_MESSAGE"
|
||||||
|
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_NAME_LIST_HINT"
|
||||||
/>
|
/>
|
||||||
<!-- Note_advanced_import Field. Type: Note. A None Database Field. (joomla) -->
|
|
||||||
<field type="note" name="note_advanced_import" label="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ADVANCED_IMPORT_LABEL" description="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ADVANCED_IMPORT_DESCRIPTION" heading="h4" class="alert alert-success note_advanced_import" />
|
|
||||||
<!-- Icon Field. Type: Media. (joomla) -->
|
<!-- Icon Field. Type: Media. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="media"
|
type="media"
|
||||||
@ -376,7 +393,7 @@
|
|||||||
<option value="latin7">
|
<option value="latin7">
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_LATIN7_ISO_885913_BALTIC_MOST_SUITABLE_COLLATION_LATIN7_GENERAL_CI</option>
|
COM_COMPONENTBUILDER_ADMIN_VIEW_LATIN7_ISO_885913_BALTIC_MOST_SUITABLE_COLLATION_LATIN7_GENERAL_CI</option>
|
||||||
<option value="utf8mb4">
|
<option value="utf8mb4">
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_UTF8MB4_UTF8_UNICODE_MOST_SUITABLE_COLLATION_UTF8MB4_GENERAL_CI</option>
|
COM_COMPONENTBUILDER_ADMIN_VIEW_UTF8MB4_UTF8_UNICODE_MOST_SUITABLE_COLLATION_UTF8MB4_UNICODE_CI</option>
|
||||||
<option value="cp1251">
|
<option value="cp1251">
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_CP1251_WINDOWS_CYRILLIC_MOST_SUITABLE_COLLATION_CP1251_GENERAL_CI</option>
|
COM_COMPONENTBUILDER_ADMIN_VIEW_CP1251_WINDOWS_CYRILLIC_MOST_SUITABLE_COLLATION_CP1251_GENERAL_CI</option>
|
||||||
<option value="utf16">
|
<option value="utf16">
|
||||||
@ -470,18 +487,21 @@
|
|||||||
</field>
|
</field>
|
||||||
<!-- Note_on_permissions Field. Type: Note. A None Database Field. (joomla) -->
|
<!-- Note_on_permissions Field. Type: Note. A None Database Field. (joomla) -->
|
||||||
<field type="note" name="note_on_permissions" label="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_PERMISSIONS_LABEL" description="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_PERMISSIONS_DESCRIPTION" heading="h4" class="alert alert-info note_on_permissions" />
|
<field type="note" name="note_on_permissions" label="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_PERMISSIONS_LABEL" description="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_ON_PERMISSIONS_DESCRIPTION" heading="h4" class="alert alert-info note_on_permissions" />
|
||||||
<!-- Php_import Field. Type: Textarea. (joomla) -->
|
<!-- Php_getitem Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="editor"
|
||||||
name="php_import"
|
name="php_getitem"
|
||||||
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_LABEL"
|
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEM_LABEL"
|
||||||
rows="30"
|
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEM_DESCRIPTION"
|
||||||
|
width="100%"
|
||||||
|
height="450px"
|
||||||
cols="15"
|
cols="15"
|
||||||
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_DESCRIPTION"
|
rows="30"
|
||||||
class="text_area span12"
|
buttons="no"
|
||||||
|
syntax="php"
|
||||||
|
editor="codemirror|none"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_HINT"
|
validate="code"
|
||||||
required="true"
|
|
||||||
/>
|
/>
|
||||||
<!-- Addpermissions Field. Type: Subform. (joomla) -->
|
<!-- Addpermissions Field. Type: Subform. (joomla) -->
|
||||||
<field
|
<field
|
||||||
@ -680,7 +700,7 @@
|
|||||||
type="subform"
|
type="subform"
|
||||||
name="addlinked_views"
|
name="addlinked_views"
|
||||||
label="COM_COMPONENTBUILDER_ADMIN_VIEW_ADDLINKED_VIEWS_LABEL"
|
label="COM_COMPONENTBUILDER_ADMIN_VIEW_ADDLINKED_VIEWS_LABEL"
|
||||||
layout="joomla.form.field.subform.repeatable-table"
|
layout="joomla.form.field.subform.repeatable"
|
||||||
multiple="true"
|
multiple="true"
|
||||||
description="COM_COMPONENTBUILDER_ADMIN_VIEW_ADDLINKED_VIEWS_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_ADMIN_VIEW_ADDLINKED_VIEWS_DESCRIPTION"
|
||||||
icon="list">
|
icon="list">
|
||||||
@ -693,7 +713,6 @@
|
|||||||
description="COM_COMPONENTBUILDER_ADMIN_VIEW_ADMINVIEW_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_ADMIN_VIEW_ADMINVIEW_DESCRIPTION"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
layout="joomla.form.field.list-fancy-select"
|
||||||
multiple="false"
|
multiple="false"
|
||||||
default=""
|
|
||||||
required="true"
|
required="true"
|
||||||
button="false"
|
button="false"
|
||||||
/>
|
/>
|
||||||
@ -896,19 +915,20 @@
|
|||||||
/>
|
/>
|
||||||
<!-- Note_category_menu_switch Field. Type: Note. A None Database Field. (joomla) -->
|
<!-- Note_category_menu_switch Field. Type: Note. A None Database Field. (joomla) -->
|
||||||
<field type="note" name="note_category_menu_switch" label="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_CATEGORY_MENU_SWITCH_LABEL" description="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_CATEGORY_MENU_SWITCH_DESCRIPTION" heading="h4" class="alert alert-info note_category_menu_switch" />
|
<field type="note" name="note_category_menu_switch" label="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_CATEGORY_MENU_SWITCH_LABEL" description="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_CATEGORY_MENU_SWITCH_DESCRIPTION" heading="h4" class="alert alert-info note_category_menu_switch" />
|
||||||
<!-- Php_import_display Field. Type: Textarea. (joomla) -->
|
<!-- Add_php_getitem Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="radio"
|
||||||
name="php_import_display"
|
name="add_php_getitem"
|
||||||
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_DISPLAY_LABEL"
|
label="COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETITEM_LABEL"
|
||||||
rows="30"
|
class="btn-group btn-group-yesno"
|
||||||
cols="15"
|
default="0"
|
||||||
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_DISPLAY_DESCRIPTION"
|
required="true">
|
||||||
class="text_area span12"
|
<!-- Option Set. -->
|
||||||
filter="raw"
|
<option value="1">
|
||||||
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_DISPLAY_HINT"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_YES</option>
|
||||||
required="true"
|
<option value="0">
|
||||||
/>
|
COM_COMPONENTBUILDER_ADMIN_VIEW_NO</option>
|
||||||
|
</field>
|
||||||
<!-- Add_category_submenu Field. Type: Radio. (joomla) -->
|
<!-- Add_category_submenu Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="radio"
|
type="radio"
|
||||||
@ -923,37 +943,36 @@
|
|||||||
<option value="0">
|
<option value="0">
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_NO</option>
|
COM_COMPONENTBUILDER_ADMIN_VIEW_NO</option>
|
||||||
</field>
|
</field>
|
||||||
<!-- Php_import_setdata Field. Type: Textarea. (joomla) -->
|
<!-- Add_php_getitems Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="textarea"
|
type="radio"
|
||||||
name="php_import_setdata"
|
name="add_php_getitems"
|
||||||
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_SETDATA_LABEL"
|
label="COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETITEMS_LABEL"
|
||||||
rows="30"
|
class="btn-group btn-group-yesno"
|
||||||
cols="15"
|
default="0"
|
||||||
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_SETDATA_DESCRIPTION"
|
required="true">
|
||||||
class="text_area span12"
|
<!-- Option Set. -->
|
||||||
filter="raw"
|
<option value="1">
|
||||||
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_SETDATA_HINT"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_YES</option>
|
||||||
required="true"
|
<option value="0">
|
||||||
/>
|
COM_COMPONENTBUILDER_ADMIN_VIEW_NO</option>
|
||||||
|
</field>
|
||||||
<!-- Note_create_edit_buttons Field. Type: Note. A None Database Field. (joomla) -->
|
<!-- Note_create_edit_buttons Field. Type: Note. A None Database Field. (joomla) -->
|
||||||
<field type="note" name="note_create_edit_buttons" description="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_CREATE_EDIT_BUTTONS_DESCRIPTION" class="note_create_edit_buttons" />
|
<field type="note" name="note_create_edit_buttons" description="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_CREATE_EDIT_BUTTONS_DESCRIPTION" class="note_create_edit_buttons" />
|
||||||
<!-- Name_list Field. Type: Text. (joomla) -->
|
<!-- Add_php_getitems_after_all Field. Type: Radio. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="text"
|
type="radio"
|
||||||
name="name_list"
|
name="add_php_getitems_after_all"
|
||||||
label="COM_COMPONENTBUILDER_ADMIN_VIEW_NAME_LIST_LABEL"
|
label="COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETITEMS_AFTER_ALL_LABEL"
|
||||||
size="40"
|
class="btn-group btn-group-yesno"
|
||||||
maxlength="150"
|
default="0"
|
||||||
description="COM_COMPONENTBUILDER_ADMIN_VIEW_NAME_LIST_DESCRIPTION"
|
required="true">
|
||||||
class="inputbox"
|
<!-- Option Set. -->
|
||||||
readonly="false"
|
<option value="1">
|
||||||
disabled="false"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_YES</option>
|
||||||
required="true"
|
<option value="0">
|
||||||
filter="STRING"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_NO</option>
|
||||||
message="COM_COMPONENTBUILDER_ADMIN_VIEW_NAME_LIST_MESSAGE"
|
</field>
|
||||||
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_NAME_LIST_HINT"
|
|
||||||
/>
|
|
||||||
<!-- Note_create_edit_display Field. Type: Note. A None Database Field. (joomla) -->
|
<!-- Note_create_edit_display Field. Type: Note. A None Database Field. (joomla) -->
|
||||||
<field type="note" name="note_create_edit_display" description="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_CREATE_EDIT_DISPLAY_DESCRIPTION" class="note_create_edit_display" />
|
<field type="note" name="note_create_edit_display" description="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_CREATE_EDIT_DISPLAY_DESCRIPTION" class="note_create_edit_display" />
|
||||||
<!-- Add_php_getlistquery Field. Type: Radio. (joomla) -->
|
<!-- Add_php_getlistquery Field. Type: Radio. (joomla) -->
|
||||||
@ -1966,7 +1985,7 @@
|
|||||||
multiple="false"
|
multiple="false"
|
||||||
filter="CMD"
|
filter="CMD"
|
||||||
required="true"
|
required="true"
|
||||||
default="utf8mb4_general_ci">
|
default="utf8mb4_unicode_ci">
|
||||||
<!-- Option Set. -->
|
<!-- Option Set. -->
|
||||||
<option value="big5_chinese_ci">
|
<option value="big5_chinese_ci">
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_BIG5_CHINESE_CI_CHARSET_BIG5</option>
|
COM_COMPONENTBUILDER_ADMIN_VIEW_BIG5_CHINESE_CI_CHARSET_BIG5</option>
|
||||||
@ -2473,6 +2492,7 @@
|
|||||||
name="table"
|
name="table"
|
||||||
label="COM_COMPONENTBUILDER_ADMIN_VIEW_TABLE_LABEL"
|
label="COM_COMPONENTBUILDER_ADMIN_VIEW_TABLE_LABEL"
|
||||||
class="list_class"
|
class="list_class"
|
||||||
|
layout="joomla.form.field.list-fancy-select"
|
||||||
multiple="false"
|
multiple="false"
|
||||||
default="0"
|
default="0"
|
||||||
button="false"
|
button="false"
|
||||||
@ -2510,8 +2530,20 @@
|
|||||||
filter="raw"
|
filter="raw"
|
||||||
validate="code"
|
validate="code"
|
||||||
/>
|
/>
|
||||||
<!-- Note_beginner_import Field. Type: Note. A None Database Field. (joomla) -->
|
<!-- Guid Field. Type: Text. (joomla) -->
|
||||||
<field type="note" name="note_beginner_import" label="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_BEGINNER_IMPORT_LABEL" description="COM_COMPONENTBUILDER_ADMIN_VIEW_NOTE_BEGINNER_IMPORT_DESCRIPTION" heading="h4" class="alert alert-info note_beginner_import" />
|
<field
|
||||||
|
type="text"
|
||||||
|
name="guid"
|
||||||
|
label="COM_COMPONENTBUILDER_ADMIN_VIEW_GUID_LABEL"
|
||||||
|
size="40"
|
||||||
|
maxlength="40"
|
||||||
|
description="COM_COMPONENTBUILDER_ADMIN_VIEW_GUID_DESCRIPTION"
|
||||||
|
class="text_area"
|
||||||
|
readonly="true"
|
||||||
|
filter="CMD"
|
||||||
|
validate="guid"
|
||||||
|
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_GUID_HINT"
|
||||||
|
/>
|
||||||
<!-- Ajax_input Field. Type: Subform. (joomla) -->
|
<!-- Ajax_input Field. Type: Subform. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="subform"
|
type="subform"
|
||||||
@ -2652,148 +2684,6 @@
|
|||||||
/>
|
/>
|
||||||
</form>
|
</form>
|
||||||
</field>
|
</field>
|
||||||
<!-- Add_custom_import Field. Type: Radio. (joomla) -->
|
|
||||||
<field
|
|
||||||
type="radio"
|
|
||||||
name="add_custom_import"
|
|
||||||
label="COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_CUSTOM_IMPORT_LABEL"
|
|
||||||
description="COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_CUSTOM_IMPORT_DESCRIPTION"
|
|
||||||
class="btn-group btn-group-yesno"
|
|
||||||
default="0"
|
|
||||||
required="true">
|
|
||||||
<!-- Option Set. -->
|
|
||||||
<option value="1">
|
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_YES</option>
|
|
||||||
<option value="0">
|
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_NO</option>
|
|
||||||
</field>
|
|
||||||
<!-- Add_php_getitem Field. Type: Radio. (joomla) -->
|
|
||||||
<field
|
|
||||||
type="radio"
|
|
||||||
name="add_php_getitem"
|
|
||||||
label="COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETITEM_LABEL"
|
|
||||||
class="btn-group btn-group-yesno"
|
|
||||||
default="0"
|
|
||||||
required="true">
|
|
||||||
<!-- Option Set. -->
|
|
||||||
<option value="1">
|
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_YES</option>
|
|
||||||
<option value="0">
|
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_NO</option>
|
|
||||||
</field>
|
|
||||||
<!-- Html_import_view Field. Type: Textarea. (joomla) -->
|
|
||||||
<field
|
|
||||||
type="textarea"
|
|
||||||
name="html_import_view"
|
|
||||||
label="COM_COMPONENTBUILDER_ADMIN_VIEW_HTML_IMPORT_VIEW_LABEL"
|
|
||||||
rows="30"
|
|
||||||
cols="15"
|
|
||||||
description="COM_COMPONENTBUILDER_ADMIN_VIEW_HTML_IMPORT_VIEW_DESCRIPTION"
|
|
||||||
class="text_area span12"
|
|
||||||
filter="raw"
|
|
||||||
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_HTML_IMPORT_VIEW_HINT"
|
|
||||||
required="true"
|
|
||||||
/>
|
|
||||||
<!-- Php_getitem Field. Type: Editor. (joomla) -->
|
|
||||||
<field
|
|
||||||
type="editor"
|
|
||||||
name="php_getitem"
|
|
||||||
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEM_LABEL"
|
|
||||||
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEM_DESCRIPTION"
|
|
||||||
width="100%"
|
|
||||||
height="450px"
|
|
||||||
cols="15"
|
|
||||||
rows="30"
|
|
||||||
buttons="no"
|
|
||||||
syntax="php"
|
|
||||||
editor="codemirror|none"
|
|
||||||
filter="raw"
|
|
||||||
validate="code"
|
|
||||||
/>
|
|
||||||
<!-- Php_import_headers Field. Type: Textarea. (joomla) -->
|
|
||||||
<field
|
|
||||||
type="textarea"
|
|
||||||
name="php_import_headers"
|
|
||||||
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_HEADERS_LABEL"
|
|
||||||
rows="30"
|
|
||||||
cols="15"
|
|
||||||
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_HEADERS_DESCRIPTION"
|
|
||||||
class="text_area span12"
|
|
||||||
filter="raw"
|
|
||||||
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_HEADERS_HINT"
|
|
||||||
required="true"
|
|
||||||
/>
|
|
||||||
<!-- Add_php_getitems Field. Type: Radio. (joomla) -->
|
|
||||||
<field
|
|
||||||
type="radio"
|
|
||||||
name="add_php_getitems"
|
|
||||||
label="COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETITEMS_LABEL"
|
|
||||||
class="btn-group btn-group-yesno"
|
|
||||||
default="0"
|
|
||||||
required="true">
|
|
||||||
<!-- Option Set. -->
|
|
||||||
<option value="1">
|
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_YES</option>
|
|
||||||
<option value="0">
|
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_NO</option>
|
|
||||||
</field>
|
|
||||||
<!-- Php_import_save Field. Type: Textarea. (joomla) -->
|
|
||||||
<field
|
|
||||||
type="textarea"
|
|
||||||
name="php_import_save"
|
|
||||||
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_SAVE_LABEL"
|
|
||||||
rows="30"
|
|
||||||
cols="15"
|
|
||||||
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_SAVE_DESCRIPTION"
|
|
||||||
class="text_area span12"
|
|
||||||
filter="raw"
|
|
||||||
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_SAVE_HINT"
|
|
||||||
required="true"
|
|
||||||
/>
|
|
||||||
<!-- Php_getitems Field. Type: Editor. (joomla) -->
|
|
||||||
<field
|
|
||||||
type="editor"
|
|
||||||
name="php_getitems"
|
|
||||||
label="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_LABEL"
|
|
||||||
description="COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_DESCRIPTION"
|
|
||||||
width="100%"
|
|
||||||
height="450px"
|
|
||||||
cols="15"
|
|
||||||
rows="30"
|
|
||||||
buttons="no"
|
|
||||||
syntax="php"
|
|
||||||
editor="codemirror|none"
|
|
||||||
filter="raw"
|
|
||||||
validate="code"
|
|
||||||
/>
|
|
||||||
<!-- Guid Field. Type: Text. (joomla) -->
|
|
||||||
<field
|
|
||||||
type="text"
|
|
||||||
name="guid"
|
|
||||||
label="COM_COMPONENTBUILDER_ADMIN_VIEW_GUID_LABEL"
|
|
||||||
size="40"
|
|
||||||
maxlength="40"
|
|
||||||
description="COM_COMPONENTBUILDER_ADMIN_VIEW_GUID_DESCRIPTION"
|
|
||||||
class="text_area"
|
|
||||||
readonly="true"
|
|
||||||
filter="CMD"
|
|
||||||
validate="guid"
|
|
||||||
hint="COM_COMPONENTBUILDER_ADMIN_VIEW_GUID_HINT"
|
|
||||||
/>
|
|
||||||
<!-- Add_php_getitems_after_all Field. Type: Radio. (joomla) -->
|
|
||||||
<field
|
|
||||||
type="radio"
|
|
||||||
name="add_php_getitems_after_all"
|
|
||||||
label="COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETITEMS_AFTER_ALL_LABEL"
|
|
||||||
class="btn-group btn-group-yesno"
|
|
||||||
default="0"
|
|
||||||
required="true">
|
|
||||||
<!-- Option Set. -->
|
|
||||||
<option value="1">
|
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_YES</option>
|
|
||||||
<option value="0">
|
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_NO</option>
|
|
||||||
</field>
|
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<!-- Access Control Fields. -->
|
<!-- Access Control Fields. -->
|
||||||
|
@ -135,6 +135,20 @@
|
|||||||
<option value="modules">
|
<option value="modules">
|
||||||
COM_COMPONENTBUILDER_CLASS_EXTENDS_MODULES</option>
|
COM_COMPONENTBUILDER_CLASS_EXTENDS_MODULES</option>
|
||||||
</field>
|
</field>
|
||||||
|
<!-- Guid Field. Type: Text. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="text"
|
||||||
|
name="guid"
|
||||||
|
label="COM_COMPONENTBUILDER_CLASS_EXTENDS_GUID_LABEL"
|
||||||
|
size="40"
|
||||||
|
maxlength="40"
|
||||||
|
description="COM_COMPONENTBUILDER_CLASS_EXTENDS_GUID_DESCRIPTION"
|
||||||
|
class="text_area"
|
||||||
|
readonly="true"
|
||||||
|
filter="CMD"
|
||||||
|
validate="guid"
|
||||||
|
hint="COM_COMPONENTBUILDER_CLASS_EXTENDS_GUID_HINT"
|
||||||
|
/>
|
||||||
<!-- Head Field. Type: Editor. (joomla) -->
|
<!-- Head Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="editor"
|
type="editor"
|
||||||
|
@ -104,7 +104,6 @@
|
|||||||
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_JOOMLA_COMPONENT_LABEL"
|
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_JOOMLA_COMPONENT_LABEL"
|
||||||
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_JOOMLA_COMPONENT_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_JOOMLA_COMPONENT_DESCRIPTION"
|
||||||
class="list_class"
|
class="list_class"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
|
||||||
multiple="false"
|
multiple="false"
|
||||||
required="true"
|
required="true"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
@ -144,7 +143,6 @@
|
|||||||
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ADMINVIEW_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_ADMINVIEW_DESCRIPTION"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
layout="joomla.form.field.list-fancy-select"
|
||||||
multiple="false"
|
multiple="false"
|
||||||
default=""
|
|
||||||
required="true"
|
required="true"
|
||||||
button="false"
|
button="false"
|
||||||
/>
|
/>
|
||||||
|
@ -104,7 +104,6 @@
|
|||||||
label="COM_COMPONENTBUILDER_COMPONENT_CONFIG_JOOMLA_COMPONENT_LABEL"
|
label="COM_COMPONENTBUILDER_COMPONENT_CONFIG_JOOMLA_COMPONENT_LABEL"
|
||||||
description="COM_COMPONENTBUILDER_COMPONENT_CONFIG_JOOMLA_COMPONENT_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_COMPONENT_CONFIG_JOOMLA_COMPONENT_DESCRIPTION"
|
||||||
class="list_class"
|
class="list_class"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
|
||||||
multiple="false"
|
multiple="false"
|
||||||
required="true"
|
required="true"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
|
@ -104,7 +104,6 @@
|
|||||||
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_JOOMLA_COMPONENT_LABEL"
|
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_JOOMLA_COMPONENT_LABEL"
|
||||||
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_JOOMLA_COMPONENT_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_JOOMLA_COMPONENT_DESCRIPTION"
|
||||||
class="list_class"
|
class="list_class"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
|
||||||
multiple="false"
|
multiple="false"
|
||||||
required="true"
|
required="true"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
|
@ -104,7 +104,6 @@
|
|||||||
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_JOOMLA_COMPONENT_LABEL"
|
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_JOOMLA_COMPONENT_LABEL"
|
||||||
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_JOOMLA_COMPONENT_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_JOOMLA_COMPONENT_DESCRIPTION"
|
||||||
class="list_class"
|
class="list_class"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
|
||||||
multiple="false"
|
multiple="false"
|
||||||
required="true"
|
required="true"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
@ -142,7 +141,6 @@
|
|||||||
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CUSTOMADMINVIEW_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_CUSTOMADMINVIEW_DESCRIPTION"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
layout="joomla.form.field.list-fancy-select"
|
||||||
multiple="false"
|
multiple="false"
|
||||||
default=""
|
|
||||||
required="true"
|
required="true"
|
||||||
button="false"
|
button="false"
|
||||||
/>
|
/>
|
||||||
|
@ -104,7 +104,6 @@
|
|||||||
label="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_JOOMLA_COMPONENT_LABEL"
|
label="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_JOOMLA_COMPONENT_LABEL"
|
||||||
description="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_JOOMLA_COMPONENT_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_JOOMLA_COMPONENT_DESCRIPTION"
|
||||||
class="list_class"
|
class="list_class"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
|
||||||
multiple="false"
|
multiple="false"
|
||||||
required="true"
|
required="true"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
@ -174,7 +173,6 @@
|
|||||||
label="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_HTML_LABEL"
|
label="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_HTML_LABEL"
|
||||||
rows="20"
|
rows="20"
|
||||||
cols="30"
|
cols="30"
|
||||||
default=""
|
|
||||||
class="text_area tab_html"
|
class="text_area tab_html"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
hint="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_HTML_HINT"
|
hint="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_HTML_HINT"
|
||||||
|
@ -104,7 +104,6 @@
|
|||||||
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_JOOMLA_COMPONENT_LABEL"
|
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_JOOMLA_COMPONENT_LABEL"
|
||||||
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_JOOMLA_COMPONENT_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_JOOMLA_COMPONENT_DESCRIPTION"
|
||||||
class="list_class"
|
class="list_class"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
|
||||||
multiple="false"
|
multiple="false"
|
||||||
required="true"
|
required="true"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
|
@ -104,7 +104,6 @@
|
|||||||
label="COM_COMPONENTBUILDER_COMPONENT_MODULES_JOOMLA_COMPONENT_LABEL"
|
label="COM_COMPONENTBUILDER_COMPONENT_MODULES_JOOMLA_COMPONENT_LABEL"
|
||||||
description="COM_COMPONENTBUILDER_COMPONENT_MODULES_JOOMLA_COMPONENT_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_COMPONENT_MODULES_JOOMLA_COMPONENT_DESCRIPTION"
|
||||||
class="list_class"
|
class="list_class"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
|
||||||
multiple="false"
|
multiple="false"
|
||||||
required="true"
|
required="true"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
|
@ -104,7 +104,6 @@
|
|||||||
label="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_JOOMLA_COMPONENT_LABEL"
|
label="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_JOOMLA_COMPONENT_LABEL"
|
||||||
description="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_JOOMLA_COMPONENT_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_JOOMLA_COMPONENT_DESCRIPTION"
|
||||||
class="list_class"
|
class="list_class"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
|
||||||
multiple="false"
|
multiple="false"
|
||||||
required="true"
|
required="true"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
@ -187,7 +186,6 @@
|
|||||||
label="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_IDS_LABEL"
|
label="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_IDS_LABEL"
|
||||||
rows="20"
|
rows="20"
|
||||||
cols="40"
|
cols="40"
|
||||||
default=""
|
|
||||||
description="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_IDS_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_IDS_DESCRIPTION"
|
||||||
class="text_area ids_selection"
|
class="text_area ids_selection"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
|
@ -104,7 +104,6 @@
|
|||||||
label="COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_JOOMLA_COMPONENT_LABEL"
|
label="COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_JOOMLA_COMPONENT_LABEL"
|
||||||
description="COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_JOOMLA_COMPONENT_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_JOOMLA_COMPONENT_DESCRIPTION"
|
||||||
class="list_class"
|
class="list_class"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
|
||||||
multiple="false"
|
multiple="false"
|
||||||
required="true"
|
required="true"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
|
@ -104,7 +104,6 @@
|
|||||||
label="COM_COMPONENTBUILDER_COMPONENT_PLUGINS_JOOMLA_COMPONENT_LABEL"
|
label="COM_COMPONENTBUILDER_COMPONENT_PLUGINS_JOOMLA_COMPONENT_LABEL"
|
||||||
description="COM_COMPONENTBUILDER_COMPONENT_PLUGINS_JOOMLA_COMPONENT_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_COMPONENT_PLUGINS_JOOMLA_COMPONENT_DESCRIPTION"
|
||||||
class="list_class"
|
class="list_class"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
|
||||||
multiple="false"
|
multiple="false"
|
||||||
required="true"
|
required="true"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
|
@ -104,7 +104,6 @@
|
|||||||
label="COM_COMPONENTBUILDER_COMPONENT_ROUTER_JOOMLA_COMPONENT_LABEL"
|
label="COM_COMPONENTBUILDER_COMPONENT_ROUTER_JOOMLA_COMPONENT_LABEL"
|
||||||
description="COM_COMPONENTBUILDER_COMPONENT_ROUTER_JOOMLA_COMPONENT_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_COMPONENT_ROUTER_JOOMLA_COMPONENT_DESCRIPTION"
|
||||||
class="list_class"
|
class="list_class"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
|
||||||
multiple="false"
|
multiple="false"
|
||||||
required="true"
|
required="true"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
|
@ -104,7 +104,6 @@
|
|||||||
label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_JOOMLA_COMPONENT_LABEL"
|
label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_JOOMLA_COMPONENT_LABEL"
|
||||||
description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_JOOMLA_COMPONENT_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_JOOMLA_COMPONENT_DESCRIPTION"
|
||||||
class="list_class"
|
class="list_class"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
|
||||||
multiple="false"
|
multiple="false"
|
||||||
required="true"
|
required="true"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
|
@ -104,7 +104,6 @@
|
|||||||
label="COM_COMPONENTBUILDER_COMPONENT_UPDATES_JOOMLA_COMPONENT_LABEL"
|
label="COM_COMPONENTBUILDER_COMPONENT_UPDATES_JOOMLA_COMPONENT_LABEL"
|
||||||
description="COM_COMPONENTBUILDER_COMPONENT_UPDATES_JOOMLA_COMPONENT_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_COMPONENT_UPDATES_JOOMLA_COMPONENT_DESCRIPTION"
|
||||||
class="list_class"
|
class="list_class"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
|
||||||
multiple="false"
|
multiple="false"
|
||||||
required="true"
|
required="true"
|
||||||
readonly="true"
|
readonly="true"
|
||||||
@ -159,7 +158,6 @@
|
|||||||
label="COM_COMPONENTBUILDER_COMPONENT_UPDATES_MYSQL_LABEL"
|
label="COM_COMPONENTBUILDER_COMPONENT_UPDATES_MYSQL_LABEL"
|
||||||
rows="30"
|
rows="30"
|
||||||
cols="15"
|
cols="15"
|
||||||
default=""
|
|
||||||
description="COM_COMPONENTBUILDER_COMPONENT_UPDATES_MYSQL_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_COMPONENT_UPDATES_MYSQL_DESCRIPTION"
|
||||||
class="text_area mysql_update"
|
class="text_area mysql_update"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
|
@ -151,7 +151,6 @@
|
|||||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MAIN_GET_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_MAIN_GET_DESCRIPTION"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
layout="joomla.form.field.list-fancy-select"
|
||||||
multiple="false"
|
multiple="false"
|
||||||
default=""
|
|
||||||
required="true"
|
required="true"
|
||||||
button="true"
|
button="true"
|
||||||
/>
|
/>
|
||||||
@ -611,7 +610,6 @@
|
|||||||
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DYNAMIC_GET_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DYNAMIC_GET_DESCRIPTION"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
layout="joomla.form.field.list-fancy-select"
|
||||||
multiple="false"
|
multiple="false"
|
||||||
default=""
|
|
||||||
required="false"
|
required="false"
|
||||||
/>
|
/>
|
||||||
<!-- Php_document Field. Type: Editor. (joomla) -->
|
<!-- Php_document Field. Type: Editor. (joomla) -->
|
||||||
|
@ -97,17 +97,19 @@
|
|||||||
default="componentbuilder custom_code"
|
default="componentbuilder custom_code"
|
||||||
/>
|
/>
|
||||||
<!-- Dynamic Fields. -->
|
<!-- Dynamic Fields. -->
|
||||||
<!-- Component Field. Type: Joomlacomponent. (custom) -->
|
<!-- System_name Field. Type: Text. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="joomlacomponent"
|
type="text"
|
||||||
name="component"
|
name="system_name"
|
||||||
label="COM_COMPONENTBUILDER_CUSTOM_CODE_COMPONENT_LABEL"
|
label="COM_COMPONENTBUILDER_CUSTOM_CODE_SYSTEM_NAME_LABEL"
|
||||||
class="list_class"
|
size="10"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
maxlength="50"
|
||||||
multiple="false"
|
default=""
|
||||||
default="0"
|
description="COM_COMPONENTBUILDER_CUSTOM_CODE_SYSTEM_NAME_DESCRIPTION"
|
||||||
required="true"
|
class="text_area"
|
||||||
button="true"
|
filter="STRING"
|
||||||
|
message="COM_COMPONENTBUILDER_CUSTOM_CODE_SYSTEM_NAME_MESSAGE"
|
||||||
|
hint="COM_COMPONENTBUILDER_CUSTOM_CODE_SYSTEM_NAME_HINT"
|
||||||
/>
|
/>
|
||||||
<!-- Path Field. Type: Text. (joomla) -->
|
<!-- Path Field. Type: Text. (joomla) -->
|
||||||
<field
|
<field
|
||||||
@ -195,20 +197,6 @@
|
|||||||
class="input-large-text"
|
class="input-large-text"
|
||||||
required="true"
|
required="true"
|
||||||
/>
|
/>
|
||||||
<!-- System_name Field. Type: Text. (joomla) -->
|
|
||||||
<field
|
|
||||||
type="text"
|
|
||||||
name="system_name"
|
|
||||||
label="COM_COMPONENTBUILDER_CUSTOM_CODE_SYSTEM_NAME_LABEL"
|
|
||||||
size="10"
|
|
||||||
maxlength="50"
|
|
||||||
default=""
|
|
||||||
description="COM_COMPONENTBUILDER_CUSTOM_CODE_SYSTEM_NAME_DESCRIPTION"
|
|
||||||
class="text_area"
|
|
||||||
filter="STRING"
|
|
||||||
message="COM_COMPONENTBUILDER_CUSTOM_CODE_SYSTEM_NAME_MESSAGE"
|
|
||||||
hint="COM_COMPONENTBUILDER_CUSTOM_CODE_SYSTEM_NAME_HINT"
|
|
||||||
/>
|
|
||||||
<!-- Note_placeholders_explained Field. Type: Note. A None Database Field. (joomla) -->
|
<!-- Note_placeholders_explained Field. Type: Note. A None Database Field. (joomla) -->
|
||||||
<field type="note" name="note_placeholders_explained" label="COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_PLACEHOLDERS_EXPLAINED_LABEL" description="COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_PLACEHOLDERS_EXPLAINED_DESCRIPTION" heading="h4" class="note_placeholders_explained" />
|
<field type="note" name="note_placeholders_explained" label="COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_PLACEHOLDERS_EXPLAINED_LABEL" description="COM_COMPONENTBUILDER_CUSTOM_CODE_NOTE_PLACEHOLDERS_EXPLAINED_DESCRIPTION" heading="h4" class="note_placeholders_explained" />
|
||||||
<!-- Code Field. Type: Editor. (joomla) -->
|
<!-- Code Field. Type: Editor. (joomla) -->
|
||||||
@ -287,6 +275,18 @@
|
|||||||
message="COM_COMPONENTBUILDER_CUSTOM_CODE_HASHTARGET_MESSAGE"
|
message="COM_COMPONENTBUILDER_CUSTOM_CODE_HASHTARGET_MESSAGE"
|
||||||
hint="COM_COMPONENTBUILDER_CUSTOM_CODE_HASHTARGET_HINT"
|
hint="COM_COMPONENTBUILDER_CUSTOM_CODE_HASHTARGET_HINT"
|
||||||
/>
|
/>
|
||||||
|
<!-- Component Field. Type: Joomlacomponent. (custom) -->
|
||||||
|
<field
|
||||||
|
type="joomlacomponent"
|
||||||
|
name="component"
|
||||||
|
label="COM_COMPONENTBUILDER_CUSTOM_CODE_COMPONENT_LABEL"
|
||||||
|
class="list_class"
|
||||||
|
layout="joomla.form.field.list-fancy-select"
|
||||||
|
multiple="false"
|
||||||
|
default="0"
|
||||||
|
required="true"
|
||||||
|
button="true"
|
||||||
|
/>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<!-- Access Control Fields. -->
|
<!-- Access Control Fields. -->
|
||||||
|
@ -340,7 +340,6 @@
|
|||||||
description="COM_COMPONENTBUILDER_DYNAMIC_GET_VIEW_TABLE_MAIN_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_DYNAMIC_GET_VIEW_TABLE_MAIN_DESCRIPTION"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
layout="joomla.form.field.list-fancy-select"
|
||||||
multiple="false"
|
multiple="false"
|
||||||
default=""
|
|
||||||
required="true"
|
required="true"
|
||||||
/>
|
/>
|
||||||
<!-- Add_php_getlistquery Field. Type: Radio. (joomla) -->
|
<!-- Add_php_getlistquery Field. Type: Radio. (joomla) -->
|
||||||
@ -1243,7 +1242,6 @@
|
|||||||
label="COM_COMPONENTBUILDER_DYNAMIC_GET_VIEW_TABLE_LABEL"
|
label="COM_COMPONENTBUILDER_DYNAMIC_GET_VIEW_TABLE_LABEL"
|
||||||
description="COM_COMPONENTBUILDER_DYNAMIC_GET_VIEW_TABLE_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_DYNAMIC_GET_VIEW_TABLE_DESCRIPTION"
|
||||||
multiple="false"
|
multiple="false"
|
||||||
default=""
|
|
||||||
required="true"
|
required="true"
|
||||||
button="false"
|
button="false"
|
||||||
/>
|
/>
|
||||||
|
@ -121,7 +121,6 @@
|
|||||||
description="COM_COMPONENTBUILDER_FIELD_FIELDTYPE_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_FIELD_FIELDTYPE_DESCRIPTION"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
layout="joomla.form.field.list-fancy-select"
|
||||||
multiple="false"
|
multiple="false"
|
||||||
default=""
|
|
||||||
required="true"
|
required="true"
|
||||||
button="true"
|
button="true"
|
||||||
/>
|
/>
|
||||||
|
@ -332,7 +332,6 @@
|
|||||||
label="COM_COMPONENTBUILDER_FIELDTYPE_EXAMPLE_LABEL"
|
label="COM_COMPONENTBUILDER_FIELDTYPE_EXAMPLE_LABEL"
|
||||||
rows="2"
|
rows="2"
|
||||||
cols="15"
|
cols="15"
|
||||||
default=""
|
|
||||||
description="COM_COMPONENTBUILDER_FIELDTYPE_EXAMPLE_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_FIELDTYPE_EXAMPLE_DESCRIPTION"
|
||||||
message="COM_COMPONENTBUILDER_FIELDTYPE_EXAMPLE_MESSAGE"
|
message="COM_COMPONENTBUILDER_FIELDTYPE_EXAMPLE_MESSAGE"
|
||||||
class="text_area span12"
|
class="text_area span12"
|
||||||
|
@ -60,13 +60,6 @@
|
|||||||
multiple="false"
|
multiple="false"
|
||||||
class="js-select-submit-on-change"
|
class="js-select-submit-on-change"
|
||||||
/>
|
/>
|
||||||
<field
|
|
||||||
type="adminviewsfilteraddcustomimport"
|
|
||||||
name="add_custom_import"
|
|
||||||
label="COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_CUSTOM_IMPORT_LABEL"
|
|
||||||
multiple="false"
|
|
||||||
class="js-select-submit-on-change"
|
|
||||||
/>
|
|
||||||
<input type="hidden" name="form_submited" value="1"/>
|
<input type="hidden" name="form_submited" value="1"/>
|
||||||
</fields>
|
</fields>
|
||||||
|
|
||||||
@ -76,7 +69,7 @@
|
|||||||
type="list"
|
type="list"
|
||||||
label="JGLOBAL_SORT_BY"
|
label="JGLOBAL_SORT_BY"
|
||||||
class="js-select-submit-on-change"
|
class="js-select-submit-on-change"
|
||||||
default="a.id desc"
|
default=" desc"
|
||||||
validate="options"
|
validate="options"
|
||||||
>
|
>
|
||||||
<option value="">JGLOBAL_SORT_BY</option>
|
<option value="">JGLOBAL_SORT_BY</option>
|
||||||
|
@ -53,7 +53,7 @@
|
|||||||
type="list"
|
type="list"
|
||||||
label="JGLOBAL_SORT_BY"
|
label="JGLOBAL_SORT_BY"
|
||||||
class="js-select-submit-on-change"
|
class="js-select-submit-on-change"
|
||||||
default="a.id desc"
|
default=" desc"
|
||||||
validate="options"
|
validate="options"
|
||||||
>
|
>
|
||||||
<option value="">JGLOBAL_SORT_BY</option>
|
<option value="">JGLOBAL_SORT_BY</option>
|
||||||
|
@ -30,13 +30,6 @@
|
|||||||
class="js-select-submit-on-change"
|
class="js-select-submit-on-change"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
layout="joomla.form.field.list-fancy-select"
|
||||||
/>
|
/>
|
||||||
<field
|
|
||||||
type="joomlacomponent"
|
|
||||||
name="component"
|
|
||||||
label="COM_COMPONENTBUILDER_CUSTOM_CODE_COMPONENT_LABEL"
|
|
||||||
multiple="false"
|
|
||||||
class="js-select-submit-on-change"
|
|
||||||
/>
|
|
||||||
<field
|
<field
|
||||||
type="customcodesfiltertarget"
|
type="customcodesfiltertarget"
|
||||||
name="target"
|
name="target"
|
||||||
@ -75,8 +68,6 @@
|
|||||||
<option value="a.ordering DESC">JGRID_HEADING_ORDERING_DESC</option>
|
<option value="a.ordering DESC">JGRID_HEADING_ORDERING_DESC</option>
|
||||||
<option value="a.published ASC">JSTATUS_ASC</option>
|
<option value="a.published ASC">JSTATUS_ASC</option>
|
||||||
<option value="a.published DESC">JSTATUS_DESC</option>
|
<option value="a.published DESC">JSTATUS_DESC</option>
|
||||||
<option value="g.system_name ASC">COM_COMPONENTBUILDER_FILTER_COMPONENT_ASCENDING</option>
|
|
||||||
<option value="g.system_name DESC">COM_COMPONENTBUILDER_FILTER_COMPONENT_DESCENDING</option>
|
|
||||||
<option value="a.path ASC">COM_COMPONENTBUILDER_FILTER_FILE_PATH_ASCENDING</option>
|
<option value="a.path ASC">COM_COMPONENTBUILDER_FILTER_FILE_PATH_ASCENDING</option>
|
||||||
<option value="a.path DESC">COM_COMPONENTBUILDER_FILTER_FILE_PATH_DESCENDING</option>
|
<option value="a.path DESC">COM_COMPONENTBUILDER_FILTER_FILE_PATH_DESCENDING</option>
|
||||||
<option value="a.target ASC">COM_COMPONENTBUILDER_FILTER_TARGET_ASCENDING</option>
|
<option value="a.target ASC">COM_COMPONENTBUILDER_FILTER_TARGET_ASCENDING</option>
|
||||||
|
@ -53,7 +53,7 @@
|
|||||||
type="list"
|
type="list"
|
||||||
label="JGLOBAL_SORT_BY"
|
label="JGLOBAL_SORT_BY"
|
||||||
class="js-select-submit-on-change"
|
class="js-select-submit-on-change"
|
||||||
default="a.id desc"
|
default=" desc"
|
||||||
validate="options"
|
validate="options"
|
||||||
>
|
>
|
||||||
<option value="">JGLOBAL_SORT_BY</option>
|
<option value="">JGLOBAL_SORT_BY</option>
|
||||||
|
@ -105,7 +105,6 @@
|
|||||||
class="list_class span12"
|
class="list_class span12"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
layout="joomla.form.field.list-fancy-select"
|
||||||
multiple="false"
|
multiple="false"
|
||||||
default="0"
|
|
||||||
readonly="true"
|
readonly="true"
|
||||||
/>
|
/>
|
||||||
<!-- Note_constant_paths Field. Type: Note. A None Database Field. (joomla) -->
|
<!-- Note_constant_paths Field. Type: Note. A None Database Field. (joomla) -->
|
||||||
|
@ -105,7 +105,6 @@
|
|||||||
class="list_class span12"
|
class="list_class span12"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
layout="joomla.form.field.list-fancy-select"
|
||||||
multiple="false"
|
multiple="false"
|
||||||
default="0"
|
|
||||||
readonly="true"
|
readonly="true"
|
||||||
/>
|
/>
|
||||||
<!-- Version_update Field. Type: Subform. (joomla) -->
|
<!-- Version_update Field. Type: Subform. (joomla) -->
|
||||||
@ -143,7 +142,6 @@
|
|||||||
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_MYSQL_LABEL"
|
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_MYSQL_LABEL"
|
||||||
rows="30"
|
rows="30"
|
||||||
cols="15"
|
cols="15"
|
||||||
default=""
|
|
||||||
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_MYSQL_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_MYSQL_DESCRIPTION"
|
||||||
class="text_area mysql_update"
|
class="text_area mysql_update"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
|
@ -125,6 +125,20 @@
|
|||||||
required="true"
|
required="true"
|
||||||
button="true"
|
button="true"
|
||||||
/>
|
/>
|
||||||
|
<!-- Guid Field. Type: Text. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="text"
|
||||||
|
name="guid"
|
||||||
|
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_GROUP_GUID_LABEL"
|
||||||
|
size="40"
|
||||||
|
maxlength="40"
|
||||||
|
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_GROUP_GUID_DESCRIPTION"
|
||||||
|
class="text_area"
|
||||||
|
readonly="true"
|
||||||
|
filter="CMD"
|
||||||
|
validate="guid"
|
||||||
|
hint="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_GROUP_GUID_HINT"
|
||||||
|
/>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<!-- Access Control Fields. -->
|
<!-- Access Control Fields. -->
|
||||||
|
@ -143,7 +143,6 @@
|
|||||||
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_MYSQL_LABEL"
|
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_MYSQL_LABEL"
|
||||||
rows="30"
|
rows="30"
|
||||||
cols="15"
|
cols="15"
|
||||||
default=""
|
|
||||||
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_MYSQL_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_MYSQL_DESCRIPTION"
|
||||||
class="text_area mysql_update"
|
class="text_area mysql_update"
|
||||||
filter="raw"
|
filter="raw"
|
||||||
|
@ -137,7 +137,6 @@
|
|||||||
description="COM_COMPONENTBUILDER_LAYOUT_DYNAMIC_GET_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_LAYOUT_DYNAMIC_GET_DESCRIPTION"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
layout="joomla.form.field.list-fancy-select"
|
||||||
multiple="false"
|
multiple="false"
|
||||||
default="0"
|
|
||||||
required="false"
|
required="false"
|
||||||
button="true"
|
button="true"
|
||||||
/>
|
/>
|
||||||
@ -153,6 +152,20 @@
|
|||||||
required="false"
|
required="false"
|
||||||
button="true"
|
button="true"
|
||||||
/>
|
/>
|
||||||
|
<!-- Guid Field. Type: Text. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="text"
|
||||||
|
name="guid"
|
||||||
|
label="COM_COMPONENTBUILDER_LAYOUT_GUID_LABEL"
|
||||||
|
size="40"
|
||||||
|
maxlength="40"
|
||||||
|
description="COM_COMPONENTBUILDER_LAYOUT_GUID_DESCRIPTION"
|
||||||
|
class="text_area"
|
||||||
|
readonly="true"
|
||||||
|
filter="CMD"
|
||||||
|
validate="guid"
|
||||||
|
hint="COM_COMPONENTBUILDER_LAYOUT_GUID_HINT"
|
||||||
|
/>
|
||||||
<!-- Php_view Field. Type: Editor. (joomla) -->
|
<!-- Php_view Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="editor"
|
type="editor"
|
||||||
|
@ -166,7 +166,6 @@
|
|||||||
label="COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_LABEL"
|
label="COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_LABEL"
|
||||||
rows="15"
|
rows="15"
|
||||||
cols="5"
|
cols="5"
|
||||||
default=""
|
|
||||||
description="COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_DESCRIPTION"
|
||||||
class="input-xxlarge span12"
|
class="input-xxlarge span12"
|
||||||
hint="COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_HINT"
|
hint="COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_HINT"
|
||||||
|
@ -151,7 +151,6 @@
|
|||||||
description="COM_COMPONENTBUILDER_SITE_VIEW_MAIN_GET_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_SITE_VIEW_MAIN_GET_DESCRIPTION"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
layout="joomla.form.field.list-fancy-select"
|
||||||
multiple="false"
|
multiple="false"
|
||||||
default=""
|
|
||||||
required="true"
|
required="true"
|
||||||
button="true"
|
button="true"
|
||||||
/>
|
/>
|
||||||
@ -449,7 +448,6 @@
|
|||||||
description="COM_COMPONENTBUILDER_SITE_VIEW_DYNAMIC_GET_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_SITE_VIEW_DYNAMIC_GET_DESCRIPTION"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
layout="joomla.form.field.list-fancy-select"
|
||||||
multiple="false"
|
multiple="false"
|
||||||
default=""
|
|
||||||
required="false"
|
required="false"
|
||||||
/>
|
/>
|
||||||
<!-- Add_php_ajax Field. Type: Radio. (joomla) -->
|
<!-- Add_php_ajax Field. Type: Radio. (joomla) -->
|
||||||
|
@ -138,7 +138,6 @@
|
|||||||
class="list_class"
|
class="list_class"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
layout="joomla.form.field.list-fancy-select"
|
||||||
multiple="false"
|
multiple="false"
|
||||||
default="0"
|
|
||||||
required="true"
|
required="true"
|
||||||
/>
|
/>
|
||||||
<!-- Heading Field. Type: Text. (joomla) -->
|
<!-- Heading Field. Type: Text. (joomla) -->
|
||||||
|
@ -129,6 +129,20 @@
|
|||||||
message="COM_COMPONENTBUILDER_SNIPPET_TYPE_DESCRIPTION_MESSAGE"
|
message="COM_COMPONENTBUILDER_SNIPPET_TYPE_DESCRIPTION_MESSAGE"
|
||||||
hint="COM_COMPONENTBUILDER_SNIPPET_TYPE_DESCRIPTION_HINT"
|
hint="COM_COMPONENTBUILDER_SNIPPET_TYPE_DESCRIPTION_HINT"
|
||||||
/>
|
/>
|
||||||
|
<!-- Guid Field. Type: Text. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="text"
|
||||||
|
name="guid"
|
||||||
|
label="COM_COMPONENTBUILDER_SNIPPET_TYPE_GUID_LABEL"
|
||||||
|
size="40"
|
||||||
|
maxlength="40"
|
||||||
|
description="COM_COMPONENTBUILDER_SNIPPET_TYPE_GUID_DESCRIPTION"
|
||||||
|
class="text_area"
|
||||||
|
readonly="true"
|
||||||
|
filter="CMD"
|
||||||
|
validate="guid"
|
||||||
|
hint="COM_COMPONENTBUILDER_SNIPPET_TYPE_GUID_HINT"
|
||||||
|
/>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<!-- Access Control Fields. -->
|
<!-- Access Control Fields. -->
|
||||||
|
@ -137,10 +137,23 @@
|
|||||||
description="COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_GET_DESCRIPTION"
|
description="COM_COMPONENTBUILDER_TEMPLATE_DYNAMIC_GET_DESCRIPTION"
|
||||||
layout="joomla.form.field.list-fancy-select"
|
layout="joomla.form.field.list-fancy-select"
|
||||||
multiple="false"
|
multiple="false"
|
||||||
default="0"
|
|
||||||
required="false"
|
required="false"
|
||||||
button="true"
|
button="true"
|
||||||
/>
|
/>
|
||||||
|
<!-- Guid Field. Type: Text. (joomla) -->
|
||||||
|
<field
|
||||||
|
type="text"
|
||||||
|
name="guid"
|
||||||
|
label="COM_COMPONENTBUILDER_TEMPLATE_GUID_LABEL"
|
||||||
|
size="40"
|
||||||
|
maxlength="40"
|
||||||
|
description="COM_COMPONENTBUILDER_TEMPLATE_GUID_DESCRIPTION"
|
||||||
|
class="text_area"
|
||||||
|
readonly="true"
|
||||||
|
filter="CMD"
|
||||||
|
validate="guid"
|
||||||
|
hint="COM_COMPONENTBUILDER_TEMPLATE_GUID_HINT"
|
||||||
|
/>
|
||||||
<!-- Php_view Field. Type: Editor. (joomla) -->
|
<!-- Php_view Field. Type: Editor. (joomla) -->
|
||||||
<field
|
<field
|
||||||
type="editor"
|
type="editor"
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,53 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* @package Joomla.Component.Builder
|
|
||||||
*
|
|
||||||
* @created 30th April, 2015
|
|
||||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
|
||||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
|
||||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
|
||||||
defined('_JEXEC') or die;
|
|
||||||
|
|
||||||
// get the form
|
|
||||||
$form = $displayData->getForm();
|
|
||||||
|
|
||||||
// get the layout fields override method name (from layout path/ID)
|
|
||||||
$layout_path_array = explode('.', $this->getLayoutId());
|
|
||||||
// Since we cannot pass the layout and tab names as parameters to the model method
|
|
||||||
// this name combination of tab and layout in the method name is the only work around
|
|
||||||
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
|
||||||
// example of layout name: details_left.php
|
|
||||||
// example of method name: getFields_details_left()
|
|
||||||
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
|
||||||
|
|
||||||
// get the fields
|
|
||||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
|
||||||
'note_beginner_import',
|
|
||||||
'note_advanced_import',
|
|
||||||
'add_custom_import',
|
|
||||||
'php_import_display',
|
|
||||||
'html_import_view',
|
|
||||||
'php_import',
|
|
||||||
'php_import_headers',
|
|
||||||
'php_import_setdata',
|
|
||||||
'php_import_save',
|
|
||||||
'php_import_ext'
|
|
||||||
);
|
|
||||||
|
|
||||||
$hiddenFields = $displayData->get('hidden_fields') ?: [];
|
|
||||||
|
|
||||||
?>
|
|
||||||
<?php if ($fields && count((array) $fields)) :?>
|
|
||||||
<div class="form-vertical">
|
|
||||||
<?php foreach($fields as $field): ?>
|
|
||||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
|
||||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
</div>
|
|
||||||
<?php endif; ?>
|
|
@ -26,6 +26,7 @@ $fields_tab_layout = 'fields_' . $layout_path_array[1];
|
|||||||
|
|
||||||
// get the fields
|
// get the fields
|
||||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
|
'guid',
|
||||||
'title',
|
'title',
|
||||||
'created',
|
'created',
|
||||||
'created_by',
|
'created_by',
|
||||||
|
@ -15,12 +15,13 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
use VDM\Joomla\Utilities\StringHelper;
|
use VDM\Joomla\Utilities\StringHelper;
|
||||||
use VDM\Joomla\Utilities\ArrayHelper;
|
use VDM\Joomla\Utilities\ArrayHelper;
|
||||||
|
use Joomla\CMS\User\UserFactoryInterface;
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die;
|
defined('_JEXEC') or die;
|
||||||
|
|
||||||
// set the defaults
|
// set the defaults
|
||||||
$items = $displayData->vxsfields;
|
$items = $displayData->vxlfields;
|
||||||
$user = Factory::getApplication()->getIdentity();
|
$user = Factory::getApplication()->getIdentity();
|
||||||
$id = $displayData->item->id;
|
$id = $displayData->item->id;
|
||||||
// set the edit URL
|
// set the edit URL
|
||||||
@ -96,8 +97,8 @@ $can = ComponentbuilderHelper::getActions('field');
|
|||||||
<?php
|
<?php
|
||||||
$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0;
|
$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0;
|
||||||
$userChkOut = Factory::getContainer()->
|
$userChkOut = Factory::getContainer()->
|
||||||
get(\Joomla\CMS\User\UserFactoryInterface::class)->
|
get(UserFactoryInterface::class)->
|
||||||
loadUserById($item->checked_out);
|
loadUserById($item->checked_out ?? 0);
|
||||||
$canDo = ComponentbuilderHelper::getActions('field',$item,'fields');
|
$canDo = ComponentbuilderHelper::getActions('field',$item,'fields');
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -23,8 +23,8 @@ defined('JPATH_BASE') or die;
|
|||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="well well-small">
|
<div id="noticeboard">
|
||||||
<h2 class="module-title nav-header"><?= Text::_('COM_COMPONENTBUILDER_JCB_PRO_NOTICE_BOARD') ?></h2>
|
<?php echo LayoutHelper::render('mastodon', $displayData ?? []); ?>
|
||||||
<div class="proboard-md"><small><?= Text::_('COM_COMPONENTBUILDER_THE_PRO_BOARD_IS_LOADING') ?><span class="loading-dots">.</span></small></div>
|
</div>
|
||||||
<div style="text-align:right;"><small><a href="https://vdm.bz/get-jcb-pro-membership" target="_blank" style="color:gray">JCB PRO</a></small></div>
|
<?php echo LayoutHelper::render('socialnetworking', null); ?>
|
||||||
</div>
|
<div class="p-md-3"><?php echo ComponentbuilderHelper::getDynamicContent('banner', '728-90'); ?></div>
|
@ -1,37 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* @package Joomla.Component.Builder
|
|
||||||
*
|
|
||||||
* @created 30th April, 2015
|
|
||||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
|
||||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
|
||||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
use Joomla\CMS\Factory;
|
|
||||||
use Joomla\CMS\Language\Text;
|
|
||||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
|
||||||
use Joomla\CMS\Layout\LayoutHelper;
|
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
|
||||||
|
|
||||||
// No direct access to this file
|
|
||||||
defined('JPATH_BASE') or die;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
|
||||||
<div id="<?php echo $displayData['id']; ?>">
|
|
||||||
<?php echo Html::_('bootstrap.startTabSet', $displayData['id'] . '_tab', array('active' => $displayData['active'] . '-noticeboard')); ?>
|
|
||||||
<?php echo Html::_('bootstrap.addTab', $displayData['id'] . '_tab', 'vdm-noticeboard', Text::_('COM_COMPONENTBUILDER_VDM_BOARD', true)); ?>
|
|
||||||
<?php echo LayoutHelper::render('jcbnoticeboardvdm', null); ?>
|
|
||||||
<div class="p-md-3"><?php echo ComponentbuilderHelper::getDynamicContent('banner', '728-90'); ?></div>
|
|
||||||
<?php echo Html::_('bootstrap.endTab'); ?>
|
|
||||||
<?php echo Html::_('bootstrap.addTab', $displayData['id'] . '_tab', 'pro-noticeboard', Text::_('COM_COMPONENTBUILDER_JCB_PRO_BOARD', true)); ?>
|
|
||||||
<?php echo LayoutHelper::render('jcbnoticeboardpro', null); ?>
|
|
||||||
<div class="p-md-3"><?php echo ComponentbuilderHelper::getDynamicContent('banner', '728-90'); ?></div>
|
|
||||||
<?php echo Html::_('bootstrap.endTab'); ?>
|
|
||||||
<?php echo Html::_('bootstrap.endTabSet'); ?>
|
|
||||||
</div>
|
|
@ -1,30 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* @package Joomla.Component.Builder
|
|
||||||
*
|
|
||||||
* @created 30th April, 2015
|
|
||||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
|
||||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
|
||||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
|
||||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
use Joomla\CMS\Factory;
|
|
||||||
use Joomla\CMS\Language\Text;
|
|
||||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
|
||||||
use Joomla\CMS\Layout\LayoutHelper;
|
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
|
||||||
|
|
||||||
// No direct access to this file
|
|
||||||
defined('JPATH_BASE') or die;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
|
||||||
<div class="well well-small">
|
|
||||||
<h2 class="module-title nav-header"><?= Text::_('COM_COMPONENTBUILDER_VDM_NOTICE_BOARD') ?><span class="vdm-new-notice" style="display:none; color:red;"> (<?= Text::_('COM_COMPONENTBUILDER_NEW_NOTICE') ?>)</span></h2>
|
|
||||||
<div class="noticeboard-md"><small><?= Text::_('COM_COMPONENTBUILDER_THE_NOTICE_BOARD_IS_LOADING') ?><span class="loading-dots">.</span></small></div>
|
|
||||||
<div style="text-align:right;"><small><a href="https://github.com/Llewellynvdm" target="_blank" style="color:gray"><<ewe>>yn</a></small></div>
|
|
||||||
</div>
|
|
@ -116,9 +116,25 @@ $support_button = $button_names[random_int(0, 32)];
|
|||||||
?>
|
?>
|
||||||
<?php echo $support_message; ?>
|
<?php echo $support_message; ?>
|
||||||
<br /><br />
|
<br /><br />
|
||||||
<img src="https://opencollective.com/joomla-component-builder/tiers/badge.svg" />
|
<div style="display: flex; flex-wrap: wrap; gap: 10px;">
|
||||||
|
<a href="https://opencollective.com/joomla-component-builder/contribute/donation-15820/checkout?interval=month&amount=40&contributeAs=me" title="Support Joomla Component Builder">
|
||||||
|
<img src="https://opencollective.com/joomla-component-builder/tiers/badge.svg" alt="Joomla Component Builder Badge" />
|
||||||
|
</a>
|
||||||
|
<a href="https://status.vdm.dev/status/jcb" title="JCB Powers Uptime">
|
||||||
|
<img src="https://status.vdm.dev/api/badge/25/uptime?labelPrefix=JCB+Powers+" alt="JCB Powers Uptime">
|
||||||
|
</a>
|
||||||
|
<a href="https://git.vdm.dev/joomla/pkg-component-builder/src/branch/5.x" title="Joomla 5 Compatible">
|
||||||
|
<img src="https://img.shields.io/badge/Joomla-5.x%20Compatible-green.svg" alt="Joomla 5 Compatible">
|
||||||
|
</a>
|
||||||
|
<a href="https://git.vdm.dev/joomla/Component-Builder/src/branch/5.x/LICENSE.txt" title="GPLv3 License">
|
||||||
|
<img src="https://img.shields.io/badge/License-GPLv2-blue.svg" alt="GPLv3 License">
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/vdm-io/Joomla-Component-Builder/stargazers" title="GitHub Stars">
|
||||||
|
<img src="https://img.shields.io/github/stars/vdm-io/Joomla-Component-Builder.svg?style=flat&label=Star" alt="GitHub Stars">
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
<br /><br />
|
<br /><br />
|
||||||
<a class="btn btn-mini btn-success" href="https://opencollective.com/joomla-component-builder/donate?interval=month&amount=20" title="<?php echo $support_titles; ?>" trage="_blank">
|
<a class="btn btn-mini btn-outline-dark" style="width: 100%;" href="https://opencollective.com/joomla-component-builder/contribute/donation-15820/checkout?interval=month&amount=40&contributeAs=me" title="<?php echo $support_titles; ?>" target="_blank">
|
||||||
<?php echo $support_button; ?>
|
<?php echo $support_button; ?>
|
||||||
</a>
|
</a>
|
||||||
<br />
|
<br />
|
||||||
|
@ -26,6 +26,7 @@ $fields_tab_layout = 'fields_' . $layout_path_array[1];
|
|||||||
|
|
||||||
// get the fields
|
// get the fields
|
||||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
|
'guid',
|
||||||
'title',
|
'title',
|
||||||
'created',
|
'created',
|
||||||
'created_by',
|
'created_by',
|
||||||
|
@ -26,6 +26,7 @@ $fields_tab_layout = 'fields_' . $layout_path_array[1];
|
|||||||
|
|
||||||
// get the fields
|
// get the fields
|
||||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
|
'guid',
|
||||||
'title',
|
'title',
|
||||||
'created',
|
'created',
|
||||||
'created_by',
|
'created_by',
|
||||||
|
111
admin/layouts/mastodon.php
Normal file
111
admin/layouts/mastodon.php
Normal file
@ -0,0 +1,111 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @package Joomla.Component.Builder
|
||||||
|
*
|
||||||
|
* @created 30th April, 2015
|
||||||
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||||
|
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||||
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
use Joomla\CMS\Factory;
|
||||||
|
use Joomla\CMS\Language\Text;
|
||||||
|
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||||
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
|
||||||
|
// No direct access to this file
|
||||||
|
defined('JPATH_BASE') or die;
|
||||||
|
|
||||||
|
// Extract all keys from $displayData as individual variables.
|
||||||
|
extract($displayData ?? []);
|
||||||
|
|
||||||
|
// Default fallback values
|
||||||
|
$defaultValues = [
|
||||||
|
[ // Llewellyn
|
||||||
|
'account' => '112766899254600077',
|
||||||
|
'instance' => 'https://joomla.social',
|
||||||
|
'invite_url' => 'https://joomla.social/invite/gzAvC48K',
|
||||||
|
'invite_heading' => Text::_("COM_COMPONENTBUILDER_LLEWELLYNS_JOOMLA_SOCIAL_FEED"),
|
||||||
|
'invite_title' => Text::_("COM_COMPONENTBUILDER_JOIN_JCBS_LEAD_DEVELOPER_ON_JOOMLA_SOCIAL_A_MASTODON_INSTANCE")
|
||||||
|
// ], // removed since the feed is inactive at this time. if active, we can add it back in.
|
||||||
|
// [ // Joomla
|
||||||
|
// 'account' => '112755435087541569',
|
||||||
|
// 'instance' => 'https://joomla.social',
|
||||||
|
// 'invite_url' => 'https://joomla.social/invite/PCXktw8g',
|
||||||
|
// 'invite_heading' => Text::_("COM_COMPONENTBUILDER_JOOMLA_SOCIAL_FEED"),
|
||||||
|
// 'invite_title' => Text::_("COM_COMPONENTBUILDER_JOIN_JOOMLA_SOCIAL_A_MASTODON_INSTANCE")
|
||||||
|
]
|
||||||
|
];
|
||||||
|
|
||||||
|
// List of default accounts
|
||||||
|
$defaultAccounts ??= $defaultValues;
|
||||||
|
|
||||||
|
// function to retrieve active account
|
||||||
|
$getActiveAccount = function ($accounts, array $defaults): object {
|
||||||
|
if (!empty($accounts) && is_array($accounts)) {
|
||||||
|
// Select a random account and return it as an object
|
||||||
|
return (object) $accounts[array_rand($accounts)];
|
||||||
|
}
|
||||||
|
// Return defaults as an object if no accounts are available
|
||||||
|
return (object) $defaults;
|
||||||
|
};
|
||||||
|
|
||||||
|
// Get the active account
|
||||||
|
$activeAccount = $getActiveAccount($defaultAccounts, $defaultValues[0]);
|
||||||
|
|
||||||
|
// Assign values
|
||||||
|
|
||||||
|
// The 'id' parameter, defaulting to mastodon-feed.
|
||||||
|
$id ??= 'mastodon-feed';
|
||||||
|
|
||||||
|
// The button 'id' parameter, defaulting to refresh-feed.
|
||||||
|
$button_id ??= 'refresh-feed';
|
||||||
|
|
||||||
|
// The number of post to load
|
||||||
|
$posts ??= 5;
|
||||||
|
|
||||||
|
// The URL of the Mastodon instance to use; defaults to the instance of the selected account.
|
||||||
|
$instance ??= $activeAccount->instance;
|
||||||
|
|
||||||
|
// The unique account ID for the selected Mastodon account; defaults to the ID of the selected account.
|
||||||
|
$account ??= $activeAccount->account;
|
||||||
|
|
||||||
|
// The invitation URL for the Mastodon instance, used to invite others to join; defaults to the invite URL of the selected account.
|
||||||
|
$invite_url ??= $activeAccount->invite_url;
|
||||||
|
|
||||||
|
// The heading displayed for the invitation; defaults to the invite heading of the selected account.
|
||||||
|
$invite_heading ??= $activeAccount->invite_heading;
|
||||||
|
|
||||||
|
// The title displayed for the invitation; defaults to the invite title of the selected account.
|
||||||
|
$invite_title ??= $activeAccount->invite_title;
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
<div class="well well-small mastadon-display-block">
|
||||||
|
<h2>
|
||||||
|
<a
|
||||||
|
href="<?php echo $invite_url; ?>"
|
||||||
|
title="<?php echo $invite_title; ?>">
|
||||||
|
<?php echo $invite_heading; ?>
|
||||||
|
</a>
|
||||||
|
<a
|
||||||
|
type="button"
|
||||||
|
id="<?php echo $button_id; ?>"
|
||||||
|
href="#"
|
||||||
|
title="<?php echo Text::_('COM_COMPONENTBUILDER_REFRESH_FEED'); ?>">
|
||||||
|
<i class="icon-loop"></i>
|
||||||
|
</a>
|
||||||
|
</h2>
|
||||||
|
<div id="<?php echo $id; ?>"
|
||||||
|
data-instance="<?php echo $instance; ?>"
|
||||||
|
data-account-id="<?php echo $account; ?>"
|
||||||
|
data-post-count="<?php echo $posts; ?>">
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
new MastodonFeed("<?php echo $id; ?>", "<?php echo $button_id; ?>");
|
||||||
|
</script>
|
||||||
|
</div>
|
@ -26,6 +26,7 @@ $fields_tab_layout = 'fields_' . $layout_path_array[1];
|
|||||||
|
|
||||||
// get the fields
|
// get the fields
|
||||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
|
'guid',
|
||||||
'title',
|
'title',
|
||||||
'created',
|
'created',
|
||||||
'created_by',
|
'created_by',
|
||||||
|
70
admin/layouts/socialnetworking.php
Normal file
70
admin/layouts/socialnetworking.php
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @package Joomla.Component.Builder
|
||||||
|
*
|
||||||
|
* @created 30th April, 2015
|
||||||
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||||
|
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||||
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
use Joomla\CMS\Factory;
|
||||||
|
use Joomla\CMS\Language\Text;
|
||||||
|
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||||
|
use Joomla\CMS\Layout\LayoutHelper;
|
||||||
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
|
|
||||||
|
// No direct access to this file
|
||||||
|
defined('JPATH_BASE') or die;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
<div id="llewellyns-social-icons" class="float-end social-icons">
|
||||||
|
<a href="https://volunteers.joomla.org/joomlers/1396-llewellyn-van-der-merwe" class="text-decoration-none me-2" data-description="<?php echo Text::_('COM_COMPONENTBUILDER_JOIN_LLEWELLYN_ON_THE_JOOMLA_VOLUNTEER_PORTAL_SHAPING_THE_FUTURE_TOGETHER'); ?>">
|
||||||
|
<i class="fa fa-joomla"></i>
|
||||||
|
</a>
|
||||||
|
<a href="https://git.vdm.dev/octoleo" class="text-decoration-none me-2" data-description="--quiet">
|
||||||
|
<i class="fa fa-linux"></i>
|
||||||
|
</a>
|
||||||
|
<a href="https://git.vdm.dev/Llewellyn" class="text-decoration-none me-2" data-description="<?php echo Text::_('COM_COMPONENTBUILDER_COLLABORATE_AND_INNOVATE_WITH_LLEWELLYN_ON_GIT_BUILDING_A_BETTER_CODE_FUTURE'); ?>">
|
||||||
|
<i class="fa fa-code"></i>
|
||||||
|
</a>
|
||||||
|
<a href="https://t.me/Joomla_component_builder" class="text-decoration-none me-2" data-description="<?php echo Text::_('COM_COMPONENTBUILDER_JOIN_LLEWELLYN_AND_THE_COMMUNITY_ON_TELEGRAM_BUILDING_JOOMLA_COMPONENTS_TOGETHER'); ?>">
|
||||||
|
<i class="fa-brands fa-telegram"></i>
|
||||||
|
</a>
|
||||||
|
<a href="https://joomla.social/@llewellyn" class="text-decoration-none me-2" data-description="<?php echo Text::_('COM_COMPONENTBUILDER_CONNECT_AND_ENGAGE_WITH_LLEWELLYN_ON_JOOMLA_SOCIAL_EMPOWERING_COMMUNITIES_ONE_POST_AT_A_TIME'); ?>">
|
||||||
|
<i class="fa-brands fa-mastodon"></i>
|
||||||
|
</a>
|
||||||
|
<a href="https://x.com/llewellynvdm" class="text-decoration-none me-2" data-description="<?php echo Text::_('COM_COMPONENTBUILDER_JOIN_THE_CONVERSATION_WITH_LLEWELLYN_ON_X_WHERE_IDEAS_TAKE_FLIGHT'); ?>">
|
||||||
|
<i class="fa-brands fa-x-twitter"></i>
|
||||||
|
</a>
|
||||||
|
<a href="https://github.com/Llewellynvdm" class="text-decoration-none me-2" data-description="<?php echo Text::_('COM_COMPONENTBUILDER_BUILD_INNOVATE_AND_THRIVE_WITH_LLEWELLYN_ON_GITHUB_TURNING_IDEAS_INTO_IMPACT'); ?>">
|
||||||
|
<i class="fa fa-github"></i>
|
||||||
|
</a>
|
||||||
|
<a href="https://www.youtube.com/@OctoYou" class="text-decoration-none me-2" data-description="<?php echo Text::_('COM_COMPONENTBUILDER_EXPLORE_LEARN_AND_CREATE_WITH_LLEWELLYN_ON_YOUTUBE_YOUR_GATEWAY_TO_INSPIRATION'); ?>">
|
||||||
|
<i class="fa fa-youtube"></i>
|
||||||
|
</a>
|
||||||
|
<a href="https://n8n.io/creators/octoleo" class="text-decoration-none me-2" data-description="<?php echo Text::_('COM_COMPONENTBUILDER_EFFORTLESS_AUTOMATION_AND_IMPACTFUL_WORKFLOWS_WITH_LLEWELLYN_ON_NEIGHTN'); ?>">
|
||||||
|
<i class="fa fa-code-fork"></i>
|
||||||
|
</a>
|
||||||
|
<a href="https://hub.docker.com/u/llewellyn" class="text-decoration-none me-2" data-description="<?php echo Text::_('COM_COMPONENTBUILDER_LLEWELLYN_ON_DOCKER_CONTAINERIZE_YOUR_CREATIVITY'); ?>">
|
||||||
|
<i class="fa-brands fa-docker"></i>
|
||||||
|
</a>
|
||||||
|
<a href="https://opencollective.com/joomla-component-builder" class="text-decoration-none me-2" data-description="<?php echo Text::_('COM_COMPONENTBUILDER_DONATE_TOWARDS_JCB_HELP_LLEWELLYN_FINANCIALLY_SO_HE_CAN_CONTINUE_DEVELOPING_THIS_GREAT_TOOL'); ?>">
|
||||||
|
<i class="fa-solid fa-circle-dollar-to-slot"></i>
|
||||||
|
</a>
|
||||||
|
<a href="https://git.vdm.dev/Llewellyn/gpg" class="text-decoration-none" data-description="<?php echo Text::_("COM_COMPONENTBUILDER_UNLOCK_TRUST_AND_SECURITY_WITH_LLEWELLYNS_GPG_KEY_YOUR_GATEWAY_TO_VERIFIED_CONNECTIONS"); ?>">
|
||||||
|
<i class="fa-solid fa-fingerprint"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<br>
|
||||||
|
<div id="llewellyns-social-icon-details" class="float-end social-icon-details"></div>
|
||||||
|
<script>
|
||||||
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
|
new IconWaveAnimator("llewellyns-social-icons", "llewellyns-social-icon-details");
|
||||||
|
});
|
||||||
|
</script>
|
@ -35,6 +35,9 @@ $name ??= false;
|
|||||||
// The 'table_class' parameter, defaulting to 'uk-table' if not set or is null.
|
// The 'table_class' parameter, defaulting to 'uk-table' if not set or is null.
|
||||||
$table_class ??= 'uk-table';
|
$table_class ??= 'uk-table';
|
||||||
|
|
||||||
|
// The 'table_other_class' parameter, defaulting to '' if not set or is null.
|
||||||
|
$table_other_class = !empty($table_other_class ?? '') ? ' ' . $table_other_class : '';
|
||||||
|
|
||||||
// The 'table_container_class' parameter, defaulting to 'uk-overflow-auto' if not set or is null.
|
// The 'table_container_class' parameter, defaulting to 'uk-overflow-auto' if not set or is null.
|
||||||
$table_container_class ??= 'uk-overflow-auto';
|
$table_container_class ??= 'uk-overflow-auto';
|
||||||
|
|
||||||
@ -42,11 +45,30 @@ $table_container_class ??= 'uk-overflow-auto';
|
|||||||
$headers ??= [Text::_('COM_COMPONENTBUILDER_NO'), Text::_('COM_COMPONENTBUILDER_HEADERS'), Text::_('COM_COMPONENTBUILDER_FOUND')];
|
$headers ??= [Text::_('COM_COMPONENTBUILDER_NO'), Text::_('COM_COMPONENTBUILDER_HEADERS'), Text::_('COM_COMPONENTBUILDER_FOUND')];
|
||||||
|
|
||||||
// The 'items' parameter, defaulting to 6 if not set or is null.
|
// The 'items' parameter, defaulting to 6 if not set or is null.
|
||||||
$items ??= 6;
|
$items ??= 6;
|
||||||
|
|
||||||
|
// The 'default_items_number' parameter, defaulting to 0 if not set or is null.
|
||||||
|
$default_items_number ??= 0;
|
||||||
|
|
||||||
|
// tweak to add empty rows
|
||||||
|
$items_number = 0;
|
||||||
|
if (is_array($items))
|
||||||
|
{
|
||||||
|
$items_number = count((array) $items);
|
||||||
|
}
|
||||||
|
elseif (is_numeric($items))
|
||||||
|
{
|
||||||
|
$items_number = (int) $items;
|
||||||
|
}
|
||||||
|
$add_items = 0;
|
||||||
|
if ($default_items_number > $items_number)
|
||||||
|
{
|
||||||
|
$add_items = round($default_items_number - $items_number);
|
||||||
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<div class="<?php echo $$table_container_class; ?>">
|
<div class="<?php echo $table_container_class; ?>">
|
||||||
<table id="<?php echo $table_id; ?>" class="<?php echo $table_class; ?>">
|
<table id="<?php echo $table_id; ?>" class="<?php echo $table_class; ?><?php echo $table_other_class; ?>">
|
||||||
<thead>
|
<thead>
|
||||||
<?php if (is_array($headers)): ?>
|
<?php if (is_array($headers)): ?>
|
||||||
<?php if ($name): ?>
|
<?php if ($name): ?>
|
||||||
@ -80,6 +102,9 @@ $items ??= 6;
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<?php echo LayoutHelper::render('rows', ['headers' => $headers, 'items' => $items]); ?>
|
<?php echo LayoutHelper::render('rows', ['headers' => $headers, 'items' => $items]); ?>
|
||||||
|
<?php if ($add_items > 0): ?>
|
||||||
|
<?php echo LayoutHelper::render('rows', ['headers' => $headers, 'items' => $add_items]); ?>
|
||||||
|
<?php endif; ?>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -26,6 +26,7 @@ $fields_tab_layout = 'fields_' . $layout_path_array[1];
|
|||||||
|
|
||||||
// get the fields
|
// get the fields
|
||||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||||
|
'guid',
|
||||||
'title',
|
'title',
|
||||||
'created',
|
'created',
|
||||||
'created_by',
|
'created_by',
|
||||||
|
@ -34,16 +34,16 @@ defined('JPATH_BASE') or die;
|
|||||||
document.adminForm.elements['checkall-toggle'].checked=1;
|
document.adminForm.elements['checkall-toggle'].checked=1;
|
||||||
Joomla.checkAll(document.adminForm.elements['checkall-toggle']);
|
Joomla.checkAll(document.adminForm.elements['checkall-toggle']);
|
||||||
// check to confirm the deletion
|
// check to confirm the deletion
|
||||||
if(confirm('<?= Text::_("COM_COMPONENTBUILDER_ARE_YOU_SURE_YOU_WANT_TO_DELETE_CONFIRMING_WILL_PERMANENTLY_DELETE_THE_SELECTED_ITEMS") ?>')) {
|
if(confirm('<?php echo Text::_("COM_COMPONENTBUILDER_ARE_YOU_SURE_YOU_WANT_TO_DELETE_CONFIRMING_WILL_PERMANENTLY_DELETE_THE_SELECTED_ITEMS") ?>')) {
|
||||||
Joomla.submitbutton('<?= $displayData->get("name") ?>.delete');
|
Joomla.submitbutton('<?php echo $displayData->getName(); ?>.delete');
|
||||||
} else {
|
} else {
|
||||||
document.adminForm.elements['checkall-toggle'].checked=0;
|
document.adminForm.elements['checkall-toggle'].checked=0;
|
||||||
Joomla.checkAll(document.adminForm.elements['checkall-toggle']);
|
Joomla.checkAll(document.adminForm.elements['checkall-toggle']);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// confirm deletion of those selected
|
// confirm deletion of those selected
|
||||||
if (confirm('<?= Text::_("COM_COMPONENTBUILDER_ARE_YOU_SURE_YOU_WANT_TO_DELETE_CONFIRMING_WILL_PERMANENTLY_DELETE_THE_SELECTED_ITEMS") ?>')) {
|
if (confirm('<?php echo Text::_("COM_COMPONENTBUILDER_ARE_YOU_SURE_YOU_WANT_TO_DELETE_CONFIRMING_WILL_PERMANENTLY_DELETE_THE_SELECTED_ITEMS") ?>')) {
|
||||||
Joomla.submitbutton('<?= $displayData->get("name") ?>.delete');
|
Joomla.submitbutton('<?php echo $displayData->getName(); ?>.delete');
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
@ -59,23 +59,23 @@ defined('JPATH_BASE') or die;
|
|||||||
<?php if (empty($displayData->items)): ?>
|
<?php if (empty($displayData->items)): ?>
|
||||||
<h4 class="alert-heading">
|
<h4 class="alert-heading">
|
||||||
<span class="icon-trash"></span>
|
<span class="icon-trash"></span>
|
||||||
<?= Text::_("COM_COMPONENTBUILDER_TRASH_AREA") ?>
|
<?php echo Text::_("COM_COMPONENTBUILDER_TRASH_AREA") ?>
|
||||||
</h4>
|
</h4>
|
||||||
<p><?= Text::_("COM_COMPONENTBUILDER_YOU_ARE_CURRENTLY_VIEWING_THE_TRASH_AREA_AND_YOU_DONT_HAVE_ANY_ITEMS_IN_TRASH_AT_THE_MOMENT") ?></p>
|
<p><?php echo Text::_("COM_COMPONENTBUILDER_YOU_ARE_CURRENTLY_VIEWING_THE_TRASH_AREA_AND_YOU_DONT_HAVE_ANY_ITEMS_IN_TRASH_AT_THE_MOMENT") ?></p>
|
||||||
<?php else: ?>
|
<?php else: ?>
|
||||||
<h4 class="alert-heading">
|
<h4 class="alert-heading">
|
||||||
<span class="icon-trash"></span>
|
<span class="icon-trash"></span>
|
||||||
<?= Text::_("COM_COMPONENTBUILDER_TRASHED_ITEMS") ?>
|
<?php echo Text::_("COM_COMPONENTBUILDER_TRASHED_ITEMS") ?>
|
||||||
</h4>
|
</h4>
|
||||||
<p><?= Text::_("COM_COMPONENTBUILDER_YOU_ARE_CURRENTLY_VIEWING_THE_TRASHED_ITEMS") ?></p>
|
<p><?php echo Text::_("COM_COMPONENTBUILDER_YOU_ARE_CURRENTLY_VIEWING_THE_TRASHED_ITEMS") ?></p>
|
||||||
<button onclick="emptyTrash();" class="btn btn-small btn-danger">
|
<button onclick="emptyTrash();" class="btn btn-small btn-danger">
|
||||||
<span class="icon-delete" aria-hidden="true"></span>
|
<span class="icon-delete" aria-hidden="true"></span>
|
||||||
<?= Text::_("COM_COMPONENTBUILDER_EMPTY_TRASH") ?>
|
<?php echo Text::_("COM_COMPONENTBUILDER_EMPTY_TRASH") ?>
|
||||||
</button>
|
</button>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<button onclick="exitTrash();" class="btn btn-small">
|
<button onclick="exitTrash();" class="btn btn-small">
|
||||||
<span class="icon-back" aria-hidden="true"></span>
|
<span class="icon-back" aria-hidden="true"></span>
|
||||||
<?= Text::_("COM_COMPONENTBUILDER_EXIT_TRASH") ?>
|
<?php echo Text::_("COM_COMPONENTBUILDER_EXIT_TRASH") ?>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
File diff suppressed because one or more lines are too long
1
admin/sql/updates/mysql/4.0.3.sql
Normal file
1
admin/sql/updates/mysql/4.0.3.sql
Normal file
@ -0,0 +1 @@
|
|||||||
|
|
@ -177,13 +177,22 @@ class Admin_custom_tabsController extends FormController
|
|||||||
*/
|
*/
|
||||||
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
||||||
{
|
{
|
||||||
// get the referral options (old method use return instead see parent)
|
// get int-defaults (to int new items with default values dynamically)
|
||||||
|
$init_defaults = $this->input->get('init_defaults', null, 'STRING');
|
||||||
|
|
||||||
|
// get the referral options (old method use init_defaults or return instead see parent)
|
||||||
$ref = $this->input->get('ref', 0, 'string');
|
$ref = $this->input->get('ref', 0, 'string');
|
||||||
$refid = $this->input->get('refid', 0, 'int');
|
$refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
// get redirect info.
|
// get redirect info.
|
||||||
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
||||||
|
|
||||||
|
// set int-defaults
|
||||||
|
if (!empty($init_defaults))
|
||||||
|
{
|
||||||
|
$append = '&init_defaults='. (string) $init_defaults . $append;
|
||||||
|
}
|
||||||
|
|
||||||
// set the referral options
|
// set the referral options
|
||||||
if ($refid && $ref)
|
if ($refid && $ref)
|
||||||
{
|
{
|
||||||
|
@ -177,13 +177,22 @@ class Admin_fieldsController extends FormController
|
|||||||
*/
|
*/
|
||||||
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
||||||
{
|
{
|
||||||
// get the referral options (old method use return instead see parent)
|
// get int-defaults (to int new items with default values dynamically)
|
||||||
|
$init_defaults = $this->input->get('init_defaults', null, 'STRING');
|
||||||
|
|
||||||
|
// get the referral options (old method use init_defaults or return instead see parent)
|
||||||
$ref = $this->input->get('ref', 0, 'string');
|
$ref = $this->input->get('ref', 0, 'string');
|
||||||
$refid = $this->input->get('refid', 0, 'int');
|
$refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
// get redirect info.
|
// get redirect info.
|
||||||
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
||||||
|
|
||||||
|
// set int-defaults
|
||||||
|
if (!empty($init_defaults))
|
||||||
|
{
|
||||||
|
$append = '&init_defaults='. (string) $init_defaults . $append;
|
||||||
|
}
|
||||||
|
|
||||||
// set the referral options
|
// set the referral options
|
||||||
if ($refid && $ref)
|
if ($refid && $ref)
|
||||||
{
|
{
|
||||||
|
@ -177,13 +177,22 @@ class Admin_fields_conditionsController extends FormController
|
|||||||
*/
|
*/
|
||||||
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
||||||
{
|
{
|
||||||
// get the referral options (old method use return instead see parent)
|
// get int-defaults (to int new items with default values dynamically)
|
||||||
|
$init_defaults = $this->input->get('init_defaults', null, 'STRING');
|
||||||
|
|
||||||
|
// get the referral options (old method use init_defaults or return instead see parent)
|
||||||
$ref = $this->input->get('ref', 0, 'string');
|
$ref = $this->input->get('ref', 0, 'string');
|
||||||
$refid = $this->input->get('refid', 0, 'int');
|
$refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
// get redirect info.
|
// get redirect info.
|
||||||
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
||||||
|
|
||||||
|
// set int-defaults
|
||||||
|
if (!empty($init_defaults))
|
||||||
|
{
|
||||||
|
$append = '&init_defaults='. (string) $init_defaults . $append;
|
||||||
|
}
|
||||||
|
|
||||||
// set the referral options
|
// set the referral options
|
||||||
if ($refid && $ref)
|
if ($refid && $ref)
|
||||||
{
|
{
|
||||||
|
@ -177,13 +177,22 @@ class Admin_fields_relationsController extends FormController
|
|||||||
*/
|
*/
|
||||||
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
||||||
{
|
{
|
||||||
// get the referral options (old method use return instead see parent)
|
// get int-defaults (to int new items with default values dynamically)
|
||||||
|
$init_defaults = $this->input->get('init_defaults', null, 'STRING');
|
||||||
|
|
||||||
|
// get the referral options (old method use init_defaults or return instead see parent)
|
||||||
$ref = $this->input->get('ref', 0, 'string');
|
$ref = $this->input->get('ref', 0, 'string');
|
||||||
$refid = $this->input->get('refid', 0, 'int');
|
$refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
// get redirect info.
|
// get redirect info.
|
||||||
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
||||||
|
|
||||||
|
// set int-defaults
|
||||||
|
if (!empty($init_defaults))
|
||||||
|
{
|
||||||
|
$append = '&init_defaults='. (string) $init_defaults . $append;
|
||||||
|
}
|
||||||
|
|
||||||
// set the referral options
|
// set the referral options
|
||||||
if ($refid && $ref)
|
if ($refid && $ref)
|
||||||
{
|
{
|
||||||
|
@ -24,7 +24,8 @@ use Joomla\CMS\Router\Route;
|
|||||||
use Joomla\CMS\Session\Session;
|
use Joomla\CMS\Session\Session;
|
||||||
use Joomla\CMS\Uri\Uri;
|
use Joomla\CMS\Uri\Uri;
|
||||||
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
||||||
use VDM\Joomla\Utilities\GetHelper;
|
use VDM\Joomla\Data\Factory as DataFactory;
|
||||||
|
use VDM\Joomla\Utilities\GuidHelper;
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
\defined('_JEXEC') or die;
|
\defined('_JEXEC') or die;
|
||||||
@ -178,13 +179,22 @@ class Admin_viewController extends FormController
|
|||||||
*/
|
*/
|
||||||
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
||||||
{
|
{
|
||||||
// get the referral options (old method use return instead see parent)
|
// get int-defaults (to int new items with default values dynamically)
|
||||||
|
$init_defaults = $this->input->get('init_defaults', null, 'STRING');
|
||||||
|
|
||||||
|
// get the referral options (old method use init_defaults or return instead see parent)
|
||||||
$ref = $this->input->get('ref', 0, 'string');
|
$ref = $this->input->get('ref', 0, 'string');
|
||||||
$refid = $this->input->get('refid', 0, 'int');
|
$refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
// get redirect info.
|
// get redirect info.
|
||||||
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
||||||
|
|
||||||
|
// set int-defaults
|
||||||
|
if (!empty($init_defaults))
|
||||||
|
{
|
||||||
|
$append = '&init_defaults='. (string) $init_defaults . $append;
|
||||||
|
}
|
||||||
|
|
||||||
// set the referral options
|
// set the referral options
|
||||||
if ($refid && $ref)
|
if ($refid && $ref)
|
||||||
{
|
{
|
||||||
@ -355,29 +365,53 @@ class Admin_viewController extends FormController
|
|||||||
*/
|
*/
|
||||||
protected function postSaveHook(BaseDatabaseModel $model, $validData = [])
|
protected function postSaveHook(BaseDatabaseModel $model, $validData = [])
|
||||||
{
|
{
|
||||||
|
// linked tables to update
|
||||||
|
$_tables_array = [
|
||||||
|
'admin_fields' => 'admin_view',
|
||||||
|
'admin_fields_conditions' => 'admin_view',
|
||||||
|
'admin_fields_relations' => 'admin_view',
|
||||||
|
'admin_custom_tabs' => 'admin_view'
|
||||||
|
];
|
||||||
|
|
||||||
// get the state object (Joomla\CMS\Object\CMSObject)
|
// get the state object (Joomla\CMS\Object\CMSObject)
|
||||||
$state = $model->get('state');
|
$state = $model->get('state');
|
||||||
|
|
||||||
// if we save2copy we need to also copy linked tables found!
|
// if we save2copy we need to also copy linked tables found!
|
||||||
if ($state->task === 'save2copy' && $state->{'admin_view.new'})
|
if (!empty($_tables_array) && $state->task === 'save2copy' && $state->{'admin_view.new'})
|
||||||
{
|
{
|
||||||
// get new ID
|
// get new GUID
|
||||||
$newID = $state->{'admin_view.id'};
|
$new_guid = DataFactory::_('Load')->value(
|
||||||
// get old ID
|
['a.guid' => 'guid'], // select
|
||||||
$oldID = $this->input->get('id', 0, 'INT');
|
['a' => 'admin_view'], // tables
|
||||||
// linked tables to update
|
['a.id' => $state->{'admin_view.id'}] // where
|
||||||
$_tablesArray = array(
|
|
||||||
'admin_fields',
|
|
||||||
'admin_fields_conditions',
|
|
||||||
'admin_fields_relations',
|
|
||||||
'admin_custom_tabs'
|
|
||||||
);
|
);
|
||||||
foreach($_tablesArray as $_updateTable)
|
|
||||||
|
// get old GUID
|
||||||
|
$old_guid = $validData['guid'] ?? $this->input->get('guid', null, 'STRING') ?? DataFactory::_('Load')->value(
|
||||||
|
['a.guid' => 'guid'], // select
|
||||||
|
['a' => 'admin_view'], // tables
|
||||||
|
['a.id' => $validData['id'] ?? $this->input->get('id', 0, 'INT')] // where
|
||||||
|
);
|
||||||
|
|
||||||
|
// we only continue if we have valid GUIDs
|
||||||
|
if (!GuidHelper::valid($new_guid) || !GuidHelper::valid($old_guid))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach($_tables_array as $_update_table => $_field_name)
|
||||||
{
|
{
|
||||||
// get the linked ID
|
// get the linked ID
|
||||||
if ($_value = GetHelper::var($_updateTable, $oldID, 'admin_view', 'id'))
|
$_item_id = DataFactory::_('Load')->value(
|
||||||
|
['a.id' => 'id'], // select
|
||||||
|
['a' => $_update_table], // tables
|
||||||
|
['a.' . $_field_name => $old_guid] // where
|
||||||
|
);
|
||||||
|
|
||||||
|
if ($_item_id !== null)
|
||||||
{
|
{
|
||||||
// copy fields to new admin view
|
// copy fields to new admin view
|
||||||
ComponentbuilderHelper::copyItem(/*id->*/ $_value, /*table->*/ $_updateTable, /*change->*/ array('admin_view' => $newID));
|
ComponentbuilderHelper::copyItem(/*id->*/ $_item_id, /*table->*/ $_update_table, /*change->*/ [$_field_name => $new_guid]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -49,8 +49,6 @@ class AjaxController extends BaseController
|
|||||||
$this->app->setHeader('Content-Disposition','attachment;filename="getajax.json"');
|
$this->app->setHeader('Content-Disposition','attachment;filename="getajax.json"');
|
||||||
$this->app->setHeader('Access-Control-Allow-Origin', '*');
|
$this->app->setHeader('Access-Control-Allow-Origin', '*');
|
||||||
// load the tasks
|
// load the tasks
|
||||||
$this->registerTask('isNew', 'ajax');
|
|
||||||
$this->registerTask('isRead', 'ajax');
|
|
||||||
$this->registerTask('getComponentDetails', 'ajax');
|
$this->registerTask('getComponentDetails', 'ajax');
|
||||||
$this->registerTask('getCronPath', 'ajax');
|
$this->registerTask('getCronPath', 'ajax');
|
||||||
$this->registerTask('getWiki', 'ajax');
|
$this->registerTask('getWiki', 'ajax');
|
||||||
@ -80,6 +78,9 @@ class AjaxController extends BaseController
|
|||||||
$this->registerTask('getEditCustomCodeButtons', 'ajax');
|
$this->registerTask('getEditCustomCodeButtons', 'ajax');
|
||||||
$this->registerTask('placedin', 'ajax');
|
$this->registerTask('placedin', 'ajax');
|
||||||
$this->registerTask('checkPlaceholderName', 'ajax');
|
$this->registerTask('checkPlaceholderName', 'ajax');
|
||||||
|
$this->registerTask('snippetDetails', 'ajax');
|
||||||
|
$this->registerTask('setSnippetGithub', 'ajax');
|
||||||
|
$this->registerTask('getSnippets', 'ajax');
|
||||||
$this->registerTask('getExistingValidationRuleCode', 'ajax');
|
$this->registerTask('getExistingValidationRuleCode', 'ajax');
|
||||||
$this->registerTask('getValidationRulesTable', 'ajax');
|
$this->registerTask('getValidationRulesTable', 'ajax');
|
||||||
$this->registerTask('checkRuleName', 'ajax');
|
$this->registerTask('checkRuleName', 'ajax');
|
||||||
@ -91,9 +92,6 @@ class AjaxController extends BaseController
|
|||||||
$this->registerTask('getSearchValue', 'ajax');
|
$this->registerTask('getSearchValue', 'ajax');
|
||||||
$this->registerTask('getReplaceValue', 'ajax');
|
$this->registerTask('getReplaceValue', 'ajax');
|
||||||
$this->registerTask('setValue', 'ajax');
|
$this->registerTask('setValue', 'ajax');
|
||||||
$this->registerTask('snippetDetails', 'ajax');
|
|
||||||
$this->registerTask('setSnippetGithub', 'ajax');
|
|
||||||
$this->registerTask('getSnippets', 'ajax');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -120,108 +118,10 @@ class AjaxController extends BaseController
|
|||||||
$task = $this->getTask();
|
$task = $this->getTask();
|
||||||
switch($task)
|
switch($task)
|
||||||
{
|
{
|
||||||
case 'isNew':
|
|
||||||
try
|
|
||||||
{
|
|
||||||
$noticeValue = $jinput->get('notice', NULL, 'STRING');
|
|
||||||
if($noticeValue && $user->id != 0)
|
|
||||||
{
|
|
||||||
$ajaxModule = $this->getModel('ajax', 'Administrator');
|
|
||||||
if ($ajaxModule)
|
|
||||||
{
|
|
||||||
$result = $ajaxModule->isNew($noticeValue);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result = ['error' => 'There was an error! [149]'];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result = ['error' => 'There was an error! [149]'];
|
|
||||||
}
|
|
||||||
if($callback)
|
|
||||||
{
|
|
||||||
echo $callback . "(".json_encode($result).");";
|
|
||||||
}
|
|
||||||
elseif($returnRaw)
|
|
||||||
{
|
|
||||||
echo json_encode($result);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
echo "(".json_encode($result).");";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch(\Exception $e)
|
|
||||||
{
|
|
||||||
if($callback)
|
|
||||||
{
|
|
||||||
echo $callback."(".json_encode($e).");";
|
|
||||||
}
|
|
||||||
elseif($returnRaw)
|
|
||||||
{
|
|
||||||
echo json_encode($e);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
echo "(".json_encode($e).");";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 'isRead':
|
|
||||||
try
|
|
||||||
{
|
|
||||||
$noticeValue = $jinput->get('notice', NULL, 'STRING');
|
|
||||||
if($noticeValue && $user->id != 0)
|
|
||||||
{
|
|
||||||
$ajaxModule = $this->getModel('ajax', 'Administrator');
|
|
||||||
if ($ajaxModule)
|
|
||||||
{
|
|
||||||
$result = $ajaxModule->isRead($noticeValue);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result = ['error' => 'There was an error! [149]'];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result = ['error' => 'There was an error! [149]'];
|
|
||||||
}
|
|
||||||
if($callback)
|
|
||||||
{
|
|
||||||
echo $callback . "(".json_encode($result).");";
|
|
||||||
}
|
|
||||||
elseif($returnRaw)
|
|
||||||
{
|
|
||||||
echo json_encode($result);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
echo "(".json_encode($result).");";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch(\Exception $e)
|
|
||||||
{
|
|
||||||
if($callback)
|
|
||||||
{
|
|
||||||
echo $callback."(".json_encode($e).");";
|
|
||||||
}
|
|
||||||
elseif($returnRaw)
|
|
||||||
{
|
|
||||||
echo json_encode($e);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
echo "(".json_encode($e).");";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 'getComponentDetails':
|
case 'getComponentDetails':
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$idValue = $jinput->get('id', NULL, 'INT');
|
$idValue = $jinput->get('id', NULL, 'STRING');
|
||||||
if($idValue && $user->id != 0)
|
if($idValue && $user->id != 0)
|
||||||
{
|
{
|
||||||
$ajaxModule = $this->getModel('ajax', 'Administrator');
|
$ajaxModule = $this->getModel('ajax', 'Administrator');
|
||||||
@ -565,7 +465,7 @@ class AjaxController extends BaseController
|
|||||||
case 'getClassCode':
|
case 'getClassCode':
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$idValue = $jinput->get('id', NULL, 'INT');
|
$idValue = $jinput->get('id', NULL, 'STRING');
|
||||||
$typeValue = $jinput->get('type', NULL, 'WORD');
|
$typeValue = $jinput->get('type', NULL, 'WORD');
|
||||||
if($idValue && $user->id != 0 && $typeValue)
|
if($idValue && $user->id != 0 && $typeValue)
|
||||||
{
|
{
|
||||||
@ -615,7 +515,7 @@ class AjaxController extends BaseController
|
|||||||
case 'getClassCodeIds':
|
case 'getClassCodeIds':
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$idValue = $jinput->get('id', NULL, 'INT');
|
$idValue = $jinput->get('id', NULL, 'STRING');
|
||||||
$typeValue = $jinput->get('type', NULL, 'WORD');
|
$typeValue = $jinput->get('type', NULL, 'WORD');
|
||||||
$keyValue = $jinput->get('key', 1, 'INT');
|
$keyValue = $jinput->get('key', 1, 'INT');
|
||||||
if($idValue && $user->id != 0 && $typeValue)
|
if($idValue && $user->id != 0 && $typeValue)
|
||||||
@ -666,7 +566,7 @@ class AjaxController extends BaseController
|
|||||||
case 'getClassHeaderCode':
|
case 'getClassHeaderCode':
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$idValue = $jinput->get('id', NULL, 'INT');
|
$idValue = $jinput->get('id', NULL, 'STRING');
|
||||||
$typeValue = $jinput->get('type', NULL, 'WORD');
|
$typeValue = $jinput->get('type', NULL, 'WORD');
|
||||||
if($idValue && $user->id != 0 && $typeValue)
|
if($idValue && $user->id != 0 && $typeValue)
|
||||||
{
|
{
|
||||||
@ -765,7 +665,7 @@ class AjaxController extends BaseController
|
|||||||
case 'fieldSelectOptions':
|
case 'fieldSelectOptions':
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$idValue = $jinput->get('id', NULL, 'INT');
|
$idValue = $jinput->get('id', NULL, 'STRING');
|
||||||
if($idValue && $user->id != 0)
|
if($idValue && $user->id != 0)
|
||||||
{
|
{
|
||||||
$ajaxModule = $this->getModel('ajax', 'Administrator');
|
$ajaxModule = $this->getModel('ajax', 'Administrator');
|
||||||
@ -1308,7 +1208,7 @@ class AjaxController extends BaseController
|
|||||||
case 'viewTableColumns':
|
case 'viewTableColumns':
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$idValue = $jinput->get('id', NULL, 'INT');
|
$idValue = $jinput->get('id', NULL, 'STRING');
|
||||||
$asValue = $jinput->get('as', NULL, 'WORD');
|
$asValue = $jinput->get('as', NULL, 'WORD');
|
||||||
$typeValue = $jinput->get('type', NULL, 'INT');
|
$typeValue = $jinput->get('type', NULL, 'INT');
|
||||||
if($idValue && $user->id != 0 && $asValue && $typeValue)
|
if($idValue && $user->id != 0 && $asValue && $typeValue)
|
||||||
@ -1359,7 +1259,7 @@ class AjaxController extends BaseController
|
|||||||
case 'getDynamicValues':
|
case 'getDynamicValues':
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$idValue = $jinput->get('id', NULL, 'INT');
|
$idValue = $jinput->get('id', NULL, 'STRING');
|
||||||
$viewValue = $jinput->get('view', NULL, 'WORD');
|
$viewValue = $jinput->get('view', NULL, 'WORD');
|
||||||
if($idValue && $user->id != 0 && $viewValue)
|
if($idValue && $user->id != 0 && $viewValue)
|
||||||
{
|
{
|
||||||
@ -1461,8 +1361,8 @@ class AjaxController extends BaseController
|
|||||||
{
|
{
|
||||||
$functioNameValue = $jinput->get('functioName', NULL, 'WORD');
|
$functioNameValue = $jinput->get('functioName', NULL, 'WORD');
|
||||||
$idValue = $jinput->get('id', NULL, 'INT');
|
$idValue = $jinput->get('id', NULL, 'INT');
|
||||||
$targetValue = $jinput->get('target', NULL, 'WORD');
|
$targetValue = $jinput->get('target', NULL, 'ALNUM');
|
||||||
if($functioNameValue && $user->id != 0 && $idValue && $targetValue)
|
if($functioNameValue && $user->id != 0 && $idValue)
|
||||||
{
|
{
|
||||||
$ajaxModule = $this->getModel('ajax', 'Administrator');
|
$ajaxModule = $this->getModel('ajax', 'Administrator');
|
||||||
if ($ajaxModule)
|
if ($ajaxModule)
|
||||||
@ -1561,8 +1461,8 @@ class AjaxController extends BaseController
|
|||||||
{
|
{
|
||||||
$placeholderValue = $jinput->get('placeholder', NULL, 'WORD');
|
$placeholderValue = $jinput->get('placeholder', NULL, 'WORD');
|
||||||
$idValue = $jinput->get('id', NULL, 'INT');
|
$idValue = $jinput->get('id', NULL, 'INT');
|
||||||
$targetValue = $jinput->get('target', NULL, 'WORD');
|
$targetValue = $jinput->get('target', NULL, 'ALNUM');
|
||||||
if($placeholderValue && $user->id != 0 && $idValue && $targetValue)
|
if($placeholderValue && $user->id != 0 && $idValue)
|
||||||
{
|
{
|
||||||
$ajaxModule = $this->getModel('ajax', 'Administrator');
|
$ajaxModule = $this->getModel('ajax', 'Administrator');
|
||||||
if ($ajaxModule)
|
if ($ajaxModule)
|
||||||
@ -1657,6 +1557,154 @@ class AjaxController extends BaseController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case 'snippetDetails':
|
||||||
|
try
|
||||||
|
{
|
||||||
|
$idValue = $jinput->get('id', NULL, 'STRING');
|
||||||
|
if($idValue && $user->id != 0)
|
||||||
|
{
|
||||||
|
$ajaxModule = $this->getModel('ajax', 'Administrator');
|
||||||
|
if ($ajaxModule)
|
||||||
|
{
|
||||||
|
$result = $ajaxModule->getSnippetDetails($idValue);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$result = ['error' => 'There was an error! [149]'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$result = ['error' => 'There was an error! [149]'];
|
||||||
|
}
|
||||||
|
if($callback)
|
||||||
|
{
|
||||||
|
echo $callback . "(".json_encode($result).");";
|
||||||
|
}
|
||||||
|
elseif($returnRaw)
|
||||||
|
{
|
||||||
|
echo json_encode($result);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
echo "(".json_encode($result).");";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(\Exception $e)
|
||||||
|
{
|
||||||
|
if($callback)
|
||||||
|
{
|
||||||
|
echo $callback."(".json_encode($e).");";
|
||||||
|
}
|
||||||
|
elseif($returnRaw)
|
||||||
|
{
|
||||||
|
echo json_encode($e);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
echo "(".json_encode($e).");";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 'setSnippetGithub':
|
||||||
|
try
|
||||||
|
{
|
||||||
|
$pathValue = $jinput->get('path', NULL, 'STRING');
|
||||||
|
$statusValue = $jinput->get('status', NULL, 'WORD');
|
||||||
|
if($pathValue && $user->id != 0 && $statusValue)
|
||||||
|
{
|
||||||
|
$ajaxModule = $this->getModel('ajax', 'Administrator');
|
||||||
|
if ($ajaxModule)
|
||||||
|
{
|
||||||
|
$result = $ajaxModule->setSnippetGithub($pathValue, $statusValue);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$result = ['error' => 'There was an error! [149]'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$result = ['error' => 'There was an error! [149]'];
|
||||||
|
}
|
||||||
|
if($callback)
|
||||||
|
{
|
||||||
|
echo $callback . "(".json_encode($result).");";
|
||||||
|
}
|
||||||
|
elseif($returnRaw)
|
||||||
|
{
|
||||||
|
echo json_encode($result);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
echo "(".json_encode($result).");";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(\Exception $e)
|
||||||
|
{
|
||||||
|
if($callback)
|
||||||
|
{
|
||||||
|
echo $callback."(".json_encode($e).");";
|
||||||
|
}
|
||||||
|
elseif($returnRaw)
|
||||||
|
{
|
||||||
|
echo json_encode($e);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
echo "(".json_encode($e).");";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 'getSnippets':
|
||||||
|
try
|
||||||
|
{
|
||||||
|
$librariesValue = $jinput->get('libraries', NULL, 'STRING');
|
||||||
|
if($librariesValue && $user->id != 0)
|
||||||
|
{
|
||||||
|
$ajaxModule = $this->getModel('ajax', 'Administrator');
|
||||||
|
if ($ajaxModule)
|
||||||
|
{
|
||||||
|
$result = $ajaxModule->getSnippets($librariesValue);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$result = ['error' => 'There was an error! [149]'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$result = ['error' => 'There was an error! [149]'];
|
||||||
|
}
|
||||||
|
if($callback)
|
||||||
|
{
|
||||||
|
echo $callback . "(".json_encode($result).");";
|
||||||
|
}
|
||||||
|
elseif($returnRaw)
|
||||||
|
{
|
||||||
|
echo json_encode($result);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
echo "(".json_encode($result).");";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch(\Exception $e)
|
||||||
|
{
|
||||||
|
if($callback)
|
||||||
|
{
|
||||||
|
echo $callback."(".json_encode($e).");";
|
||||||
|
}
|
||||||
|
elseif($returnRaw)
|
||||||
|
{
|
||||||
|
echo json_encode($e);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
echo "(".json_encode($e).");";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
case 'getExistingValidationRuleCode':
|
case 'getExistingValidationRuleCode':
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -1808,7 +1856,7 @@ class AjaxController extends BaseController
|
|||||||
case 'fieldTypeProperties':
|
case 'fieldTypeProperties':
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$idValue = $jinput->get('id', NULL, 'INT');
|
$idValue = $jinput->get('id', NULL, 'STRING');
|
||||||
if($idValue)
|
if($idValue)
|
||||||
{
|
{
|
||||||
$ajaxModule = $this->getModel('ajax', 'Administrator');
|
$ajaxModule = $this->getModel('ajax', 'Administrator');
|
||||||
@ -1907,7 +1955,7 @@ class AjaxController extends BaseController
|
|||||||
case 'getCodeGlueOptions':
|
case 'getCodeGlueOptions':
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$listfieldValue = $jinput->get('listfield', NULL, 'INT');
|
$listfieldValue = $jinput->get('listfield', NULL, 'STRING');
|
||||||
$joinfieldsValue = $jinput->get('joinfields', NULL, 'STRING');
|
$joinfieldsValue = $jinput->get('joinfields', NULL, 'STRING');
|
||||||
$typeValue = $jinput->get('type', NULL, 'INT');
|
$typeValue = $jinput->get('type', NULL, 'INT');
|
||||||
$areaValue = $jinput->get('area', NULL, 'INT');
|
$areaValue = $jinput->get('area', NULL, 'INT');
|
||||||
@ -2231,154 +2279,6 @@ class AjaxController extends BaseController
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'snippetDetails':
|
|
||||||
try
|
|
||||||
{
|
|
||||||
$idValue = $jinput->get('id', NULL, 'INT');
|
|
||||||
if($idValue && $user->id != 0)
|
|
||||||
{
|
|
||||||
$ajaxModule = $this->getModel('ajax', 'Administrator');
|
|
||||||
if ($ajaxModule)
|
|
||||||
{
|
|
||||||
$result = $ajaxModule->getSnippetDetails($idValue);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result = ['error' => 'There was an error! [149]'];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result = ['error' => 'There was an error! [149]'];
|
|
||||||
}
|
|
||||||
if($callback)
|
|
||||||
{
|
|
||||||
echo $callback . "(".json_encode($result).");";
|
|
||||||
}
|
|
||||||
elseif($returnRaw)
|
|
||||||
{
|
|
||||||
echo json_encode($result);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
echo "(".json_encode($result).");";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch(\Exception $e)
|
|
||||||
{
|
|
||||||
if($callback)
|
|
||||||
{
|
|
||||||
echo $callback."(".json_encode($e).");";
|
|
||||||
}
|
|
||||||
elseif($returnRaw)
|
|
||||||
{
|
|
||||||
echo json_encode($e);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
echo "(".json_encode($e).");";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 'setSnippetGithub':
|
|
||||||
try
|
|
||||||
{
|
|
||||||
$pathValue = $jinput->get('path', NULL, 'STRING');
|
|
||||||
$statusValue = $jinput->get('status', NULL, 'WORD');
|
|
||||||
if($pathValue && $user->id != 0 && $statusValue)
|
|
||||||
{
|
|
||||||
$ajaxModule = $this->getModel('ajax', 'Administrator');
|
|
||||||
if ($ajaxModule)
|
|
||||||
{
|
|
||||||
$result = $ajaxModule->setSnippetGithub($pathValue, $statusValue);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result = ['error' => 'There was an error! [149]'];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result = ['error' => 'There was an error! [149]'];
|
|
||||||
}
|
|
||||||
if($callback)
|
|
||||||
{
|
|
||||||
echo $callback . "(".json_encode($result).");";
|
|
||||||
}
|
|
||||||
elseif($returnRaw)
|
|
||||||
{
|
|
||||||
echo json_encode($result);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
echo "(".json_encode($result).");";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch(\Exception $e)
|
|
||||||
{
|
|
||||||
if($callback)
|
|
||||||
{
|
|
||||||
echo $callback."(".json_encode($e).");";
|
|
||||||
}
|
|
||||||
elseif($returnRaw)
|
|
||||||
{
|
|
||||||
echo json_encode($e);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
echo "(".json_encode($e).");";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
case 'getSnippets':
|
|
||||||
try
|
|
||||||
{
|
|
||||||
$librariesValue = $jinput->get('libraries', NULL, 'STRING');
|
|
||||||
if($librariesValue && $user->id != 0)
|
|
||||||
{
|
|
||||||
$ajaxModule = $this->getModel('ajax', 'Administrator');
|
|
||||||
if ($ajaxModule)
|
|
||||||
{
|
|
||||||
$result = $ajaxModule->getSnippets($librariesValue);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result = ['error' => 'There was an error! [149]'];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$result = ['error' => 'There was an error! [149]'];
|
|
||||||
}
|
|
||||||
if($callback)
|
|
||||||
{
|
|
||||||
echo $callback . "(".json_encode($result).");";
|
|
||||||
}
|
|
||||||
elseif($returnRaw)
|
|
||||||
{
|
|
||||||
echo json_encode($result);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
echo "(".json_encode($result).");";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
catch(\Exception $e)
|
|
||||||
{
|
|
||||||
if($callback)
|
|
||||||
{
|
|
||||||
echo $callback."(".json_encode($e).");";
|
|
||||||
}
|
|
||||||
elseif($returnRaw)
|
|
||||||
{
|
|
||||||
echo json_encode($e);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
echo "(".json_encode($e).");";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -177,13 +177,22 @@ class Class_extendsController extends FormController
|
|||||||
*/
|
*/
|
||||||
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
||||||
{
|
{
|
||||||
// get the referral options (old method use return instead see parent)
|
// get int-defaults (to int new items with default values dynamically)
|
||||||
|
$init_defaults = $this->input->get('init_defaults', null, 'STRING');
|
||||||
|
|
||||||
|
// get the referral options (old method use init_defaults or return instead see parent)
|
||||||
$ref = $this->input->get('ref', 0, 'string');
|
$ref = $this->input->get('ref', 0, 'string');
|
||||||
$refid = $this->input->get('refid', 0, 'int');
|
$refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
// get redirect info.
|
// get redirect info.
|
||||||
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
||||||
|
|
||||||
|
// set int-defaults
|
||||||
|
if (!empty($init_defaults))
|
||||||
|
{
|
||||||
|
$append = '&init_defaults='. (string) $init_defaults . $append;
|
||||||
|
}
|
||||||
|
|
||||||
// set the referral options
|
// set the referral options
|
||||||
if ($refid && $ref)
|
if ($refid && $ref)
|
||||||
{
|
{
|
||||||
|
@ -177,13 +177,22 @@ class Class_methodController extends FormController
|
|||||||
*/
|
*/
|
||||||
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
||||||
{
|
{
|
||||||
// get the referral options (old method use return instead see parent)
|
// get int-defaults (to int new items with default values dynamically)
|
||||||
|
$init_defaults = $this->input->get('init_defaults', null, 'STRING');
|
||||||
|
|
||||||
|
// get the referral options (old method use init_defaults or return instead see parent)
|
||||||
$ref = $this->input->get('ref', 0, 'string');
|
$ref = $this->input->get('ref', 0, 'string');
|
||||||
$refid = $this->input->get('refid', 0, 'int');
|
$refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
// get redirect info.
|
// get redirect info.
|
||||||
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
||||||
|
|
||||||
|
// set int-defaults
|
||||||
|
if (!empty($init_defaults))
|
||||||
|
{
|
||||||
|
$append = '&init_defaults='. (string) $init_defaults . $append;
|
||||||
|
}
|
||||||
|
|
||||||
// set the referral options
|
// set the referral options
|
||||||
if ($refid && $ref)
|
if ($refid && $ref)
|
||||||
{
|
{
|
||||||
|
@ -177,13 +177,22 @@ class Class_propertyController extends FormController
|
|||||||
*/
|
*/
|
||||||
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
||||||
{
|
{
|
||||||
// get the referral options (old method use return instead see parent)
|
// get int-defaults (to int new items with default values dynamically)
|
||||||
|
$init_defaults = $this->input->get('init_defaults', null, 'STRING');
|
||||||
|
|
||||||
|
// get the referral options (old method use init_defaults or return instead see parent)
|
||||||
$ref = $this->input->get('ref', 0, 'string');
|
$ref = $this->input->get('ref', 0, 'string');
|
||||||
$refid = $this->input->get('refid', 0, 'int');
|
$refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
// get redirect info.
|
// get redirect info.
|
||||||
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
||||||
|
|
||||||
|
// set int-defaults
|
||||||
|
if (!empty($init_defaults))
|
||||||
|
{
|
||||||
|
$append = '&init_defaults='. (string) $init_defaults . $append;
|
||||||
|
}
|
||||||
|
|
||||||
// set the referral options
|
// set the referral options
|
||||||
if ($refid && $ref)
|
if ($refid && $ref)
|
||||||
{
|
{
|
||||||
|
@ -20,6 +20,8 @@ use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper;
|
|||||||
use VDM\Joomla\Componentbuilder\Compiler\Factory as CFactory;
|
use VDM\Joomla\Componentbuilder\Compiler\Factory as CFactory;
|
||||||
use Joomla\CMS\Version;
|
use Joomla\CMS\Version;
|
||||||
use VDM\Joomla\Componentbuilder\File\Factory as FileFactory;
|
use VDM\Joomla\Componentbuilder\File\Factory as FileFactory;
|
||||||
|
use VDM\Joomla\Componentbuilder\Import\Factory as ImportFactory;
|
||||||
|
use VDM\Joomla\Abstraction\Console\Import;
|
||||||
use VDM\Joomla\Utilities\ArrayHelper as UtilitiesArrayHelper;
|
use VDM\Joomla\Utilities\ArrayHelper as UtilitiesArrayHelper;
|
||||||
use VDM\Joomla\Utilities\StringHelper;
|
use VDM\Joomla\Utilities\StringHelper;
|
||||||
use Joomla\CMS\Uri\Uri;
|
use Joomla\CMS\Uri\Uri;
|
||||||
@ -73,6 +75,10 @@ class CompilerController extends AdminController
|
|||||||
/**
|
/**
|
||||||
* Adding this so that the upload factory gets build for Super Powers
|
* Adding this so that the upload factory gets build for Super Powers
|
||||||
* FileFactory
|
* FileFactory
|
||||||
|
* Adding this so that the import factory gets build for Super Powers
|
||||||
|
* ImportFactory
|
||||||
|
* Adding this so that the import cli gets build for Super Powers
|
||||||
|
* Import
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -546,13 +552,16 @@ class CompilerController extends AdminController
|
|||||||
* Clear tmp folder
|
* Clear tmp folder
|
||||||
*
|
*
|
||||||
* @return true on success
|
* @return true on success
|
||||||
|
* @since 3.0.0
|
||||||
*/
|
*/
|
||||||
public function clearTmp()
|
public function clearTmp()
|
||||||
{
|
{
|
||||||
// Check for request forgeries
|
// Check for request forgeries
|
||||||
Session::checkToken() or \jexit(Text::_('JINVALID_TOKEN'));
|
Session::checkToken() or \jexit(Text::_('JINVALID_TOKEN'));
|
||||||
|
|
||||||
// check if user has the right
|
// check if user has the right
|
||||||
$user = Factory::getUser();
|
$user = Factory::getUser();
|
||||||
|
|
||||||
// set page redirect
|
// set page redirect
|
||||||
$redirect_url = Route::_('index.php?option=com_componentbuilder&view=compiler', false);
|
$redirect_url = Route::_('index.php?option=com_componentbuilder&view=compiler', false);
|
||||||
$message = Text::_('COM_COMPONENTBUILDER_COULD_NOT_CLEAR_THE_TMP_FOLDER');
|
$message = Text::_('COM_COMPONENTBUILDER_COULD_NOT_CLEAR_THE_TMP_FOLDER');
|
||||||
@ -580,40 +589,5 @@ class CompilerController extends AdminController
|
|||||||
}
|
}
|
||||||
$this->setRedirect($redirect_url, $message, 'error');
|
$this->setRedirect($redirect_url, $message, 'error');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Run the Translator
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function runTranslator()
|
|
||||||
{
|
|
||||||
// Check for request forgeries
|
|
||||||
Session::checkToken() or \jexit(Text::_('JINVALID_TOKEN'));
|
|
||||||
// check if user has the right
|
|
||||||
$user = Factory::getUser();
|
|
||||||
// set page redirect
|
|
||||||
$redirect_url = Route::_('index.php?option=com_componentbuilder&view=compiler', false);
|
|
||||||
// set massage
|
|
||||||
$message = Text::_('COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_RUN_THE_TRANSLATOR_MODULE');
|
|
||||||
// check if this user has the right to run expansion
|
|
||||||
if($user->authorise('compiler.run_translator', 'com_componentbuilder'))
|
|
||||||
{
|
|
||||||
// set massage
|
|
||||||
$message = Text::_('COM_COMPONENTBUILDER_TRANSLATION_FAILED_SINCE_THERE_ARE_NO_COMPONENTS_LINKED_WITH_TRANSLATION_TOOLS');
|
|
||||||
// run translator via API
|
|
||||||
$result = ComponentbuilderHelper::getFileContents(Uri::root() . 'index.php?option=com_componentbuilder&task=api.translator');
|
|
||||||
// is there a message returned
|
|
||||||
if (!is_numeric($result) && StringHelper::check($result))
|
|
||||||
{
|
|
||||||
$this->setRedirect($redirect_url, $result);
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$this->setRedirect($redirect_url, $message, 'error');
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -177,13 +177,22 @@ class Component_admin_viewsController extends FormController
|
|||||||
*/
|
*/
|
||||||
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
||||||
{
|
{
|
||||||
// get the referral options (old method use return instead see parent)
|
// get int-defaults (to int new items with default values dynamically)
|
||||||
|
$init_defaults = $this->input->get('init_defaults', null, 'STRING');
|
||||||
|
|
||||||
|
// get the referral options (old method use init_defaults or return instead see parent)
|
||||||
$ref = $this->input->get('ref', 0, 'string');
|
$ref = $this->input->get('ref', 0, 'string');
|
||||||
$refid = $this->input->get('refid', 0, 'int');
|
$refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
// get redirect info.
|
// get redirect info.
|
||||||
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
||||||
|
|
||||||
|
// set int-defaults
|
||||||
|
if (!empty($init_defaults))
|
||||||
|
{
|
||||||
|
$append = '&init_defaults='. (string) $init_defaults . $append;
|
||||||
|
}
|
||||||
|
|
||||||
// set the referral options
|
// set the referral options
|
||||||
if ($refid && $ref)
|
if ($refid && $ref)
|
||||||
{
|
{
|
||||||
|
@ -177,13 +177,22 @@ class Component_configController extends FormController
|
|||||||
*/
|
*/
|
||||||
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
||||||
{
|
{
|
||||||
// get the referral options (old method use return instead see parent)
|
// get int-defaults (to int new items with default values dynamically)
|
||||||
|
$init_defaults = $this->input->get('init_defaults', null, 'STRING');
|
||||||
|
|
||||||
|
// get the referral options (old method use init_defaults or return instead see parent)
|
||||||
$ref = $this->input->get('ref', 0, 'string');
|
$ref = $this->input->get('ref', 0, 'string');
|
||||||
$refid = $this->input->get('refid', 0, 'int');
|
$refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
// get redirect info.
|
// get redirect info.
|
||||||
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
||||||
|
|
||||||
|
// set int-defaults
|
||||||
|
if (!empty($init_defaults))
|
||||||
|
{
|
||||||
|
$append = '&init_defaults='. (string) $init_defaults . $append;
|
||||||
|
}
|
||||||
|
|
||||||
// set the referral options
|
// set the referral options
|
||||||
if ($refid && $ref)
|
if ($refid && $ref)
|
||||||
{
|
{
|
||||||
|
@ -177,13 +177,22 @@ class Component_custom_admin_menusController extends FormController
|
|||||||
*/
|
*/
|
||||||
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
||||||
{
|
{
|
||||||
// get the referral options (old method use return instead see parent)
|
// get int-defaults (to int new items with default values dynamically)
|
||||||
|
$init_defaults = $this->input->get('init_defaults', null, 'STRING');
|
||||||
|
|
||||||
|
// get the referral options (old method use init_defaults or return instead see parent)
|
||||||
$ref = $this->input->get('ref', 0, 'string');
|
$ref = $this->input->get('ref', 0, 'string');
|
||||||
$refid = $this->input->get('refid', 0, 'int');
|
$refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
// get redirect info.
|
// get redirect info.
|
||||||
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
||||||
|
|
||||||
|
// set int-defaults
|
||||||
|
if (!empty($init_defaults))
|
||||||
|
{
|
||||||
|
$append = '&init_defaults='. (string) $init_defaults . $append;
|
||||||
|
}
|
||||||
|
|
||||||
// set the referral options
|
// set the referral options
|
||||||
if ($refid && $ref)
|
if ($refid && $ref)
|
||||||
{
|
{
|
||||||
|
@ -177,13 +177,22 @@ class Component_custom_admin_viewsController extends FormController
|
|||||||
*/
|
*/
|
||||||
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
||||||
{
|
{
|
||||||
// get the referral options (old method use return instead see parent)
|
// get int-defaults (to int new items with default values dynamically)
|
||||||
|
$init_defaults = $this->input->get('init_defaults', null, 'STRING');
|
||||||
|
|
||||||
|
// get the referral options (old method use init_defaults or return instead see parent)
|
||||||
$ref = $this->input->get('ref', 0, 'string');
|
$ref = $this->input->get('ref', 0, 'string');
|
||||||
$refid = $this->input->get('refid', 0, 'int');
|
$refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
// get redirect info.
|
// get redirect info.
|
||||||
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
||||||
|
|
||||||
|
// set int-defaults
|
||||||
|
if (!empty($init_defaults))
|
||||||
|
{
|
||||||
|
$append = '&init_defaults='. (string) $init_defaults . $append;
|
||||||
|
}
|
||||||
|
|
||||||
// set the referral options
|
// set the referral options
|
||||||
if ($refid && $ref)
|
if ($refid && $ref)
|
||||||
{
|
{
|
||||||
|
@ -177,13 +177,22 @@ class Component_dashboardController extends FormController
|
|||||||
*/
|
*/
|
||||||
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
||||||
{
|
{
|
||||||
// get the referral options (old method use return instead see parent)
|
// get int-defaults (to int new items with default values dynamically)
|
||||||
|
$init_defaults = $this->input->get('init_defaults', null, 'STRING');
|
||||||
|
|
||||||
|
// get the referral options (old method use init_defaults or return instead see parent)
|
||||||
$ref = $this->input->get('ref', 0, 'string');
|
$ref = $this->input->get('ref', 0, 'string');
|
||||||
$refid = $this->input->get('refid', 0, 'int');
|
$refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
// get redirect info.
|
// get redirect info.
|
||||||
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
||||||
|
|
||||||
|
// set int-defaults
|
||||||
|
if (!empty($init_defaults))
|
||||||
|
{
|
||||||
|
$append = '&init_defaults='. (string) $init_defaults . $append;
|
||||||
|
}
|
||||||
|
|
||||||
// set the referral options
|
// set the referral options
|
||||||
if ($refid && $ref)
|
if ($refid && $ref)
|
||||||
{
|
{
|
||||||
|
@ -177,13 +177,22 @@ class Component_files_foldersController extends FormController
|
|||||||
*/
|
*/
|
||||||
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
||||||
{
|
{
|
||||||
// get the referral options (old method use return instead see parent)
|
// get int-defaults (to int new items with default values dynamically)
|
||||||
|
$init_defaults = $this->input->get('init_defaults', null, 'STRING');
|
||||||
|
|
||||||
|
// get the referral options (old method use init_defaults or return instead see parent)
|
||||||
$ref = $this->input->get('ref', 0, 'string');
|
$ref = $this->input->get('ref', 0, 'string');
|
||||||
$refid = $this->input->get('refid', 0, 'int');
|
$refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
// get redirect info.
|
// get redirect info.
|
||||||
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
||||||
|
|
||||||
|
// set int-defaults
|
||||||
|
if (!empty($init_defaults))
|
||||||
|
{
|
||||||
|
$append = '&init_defaults='. (string) $init_defaults . $append;
|
||||||
|
}
|
||||||
|
|
||||||
// set the referral options
|
// set the referral options
|
||||||
if ($refid && $ref)
|
if ($refid && $ref)
|
||||||
{
|
{
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user