Bug fixes, error on compilation when using view date & version was fixed, headercheck file missing was fixed. Added swithces to controle custom import placeholders and if view version and date should be used
This commit is contained in:
10
script.php
10
script.php
@ -11,7 +11,7 @@
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.2.9
|
||||
@build 1st February, 2017
|
||||
@build 2nd February, 2017
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage script.php
|
||||
@ -1349,9 +1349,9 @@ class com_componentbuilderInstallerScript
|
||||
$component->type_title = 'Componentbuilder Component';
|
||||
$component->type_alias = 'com_componentbuilder.component';
|
||||
$component->table = '{"special": {"dbtable": "#__componentbuilder_component","key": "id","type": "Component","prefix": "componentbuilderTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}';
|
||||
$component->field_mappings = '{"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": "readme","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_code":"name_code","component_version":"component_version","short_description":"short_description","companyname":"companyname","author":"author","update_server_target":"update_server_target","add_php_helper_admin":"add_php_helper_admin","creatuserhelper":"creatuserhelper","add_sql":"add_sql","update_server_ftp":"update_server_ftp","css":"css","debug_linenr":"debug_linenr","add_php_helper_site":"add_php_helper_site","update_server":"update_server","description":"description","name":"name","bom":"bom","image":"image","addfootable":"addfootable","add_update_server":"add_update_server","add_php_helper_both":"add_php_helper_both","php_preflight_update":"php_preflight_update","add_admin_event":"add_admin_event","php_postflight_update":"php_postflight_update","add_site_event":"add_site_event","readme":"readme","add_php_dashboard_methods":"add_php_dashboard_methods","sales_server_ftp":"sales_server_ftp","php_preflight_install":"php_preflight_install","email":"email","php_postflight_install":"php_postflight_install","website":"website","php_method_uninstall":"php_method_uninstall","copyright":"copyright","not_required":"not_required","add_license":"add_license","buildcomp":"buildcomp","license_type":"license_type","whmcs_key":"whmcs_key","whmcs_url":"whmcs_url","adduikit":"adduikit","license":"license","add_css":"add_css","add_email_helper":"add_email_helper","php_helper_both":"php_helper_both","php_helper_admin":"php_helper_admin","php_admin_event":"php_admin_event","php_helper_site":"php_helper_site","php_site_event":"php_site_event","sql":"sql","php_dashboard_methods":"php_dashboard_methods","add_php_preflight_install":"add_php_preflight_install","add_php_preflight_update":"add_php_preflight_update","add_php_postflight_install":"add_php_postflight_install","add_php_postflight_update":"add_php_postflight_update","add_php_method_uninstall":"add_php_method_uninstall","addreadme":"addreadme","emptycontributors":"emptycontributors","add_sales_server":"add_sales_server","number":"number","buildcompsql":"buildcompsql"}}';
|
||||
$component->field_mappings = '{"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": "readme","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_code":"name_code","component_version":"component_version","short_description":"short_description","companyname":"companyname","author":"author","css":"css","add_php_helper_site":"add_php_helper_site","php_postflight_update":"php_postflight_update","update_server_ftp":"update_server_ftp","creatuserhelper":"creatuserhelper","add_php_helper_admin":"add_php_helper_admin","debug_linenr":"debug_linenr","add_sql":"add_sql","add_placeholders":"add_placeholders","php_preflight_update":"php_preflight_update","mvc_versiondate":"mvc_versiondate","update_server_target":"update_server_target","update_server":"update_server","description":"description","addfootable":"addfootable","bom":"bom","add_php_helper_both":"add_php_helper_both","image":"image","add_admin_event":"add_admin_event","add_update_server":"add_update_server","add_site_event":"add_site_event","readme":"readme","add_php_dashboard_methods":"add_php_dashboard_methods","sales_server_ftp":"sales_server_ftp","php_preflight_install":"php_preflight_install","name":"name","php_postflight_install":"php_postflight_install","php_method_uninstall":"php_method_uninstall","email":"email","not_required":"not_required","website":"website","buildcomp":"buildcomp","copyright":"copyright","add_license":"add_license","license_type":"license_type","whmcs_key":"whmcs_key","adduikit":"adduikit","whmcs_url":"whmcs_url","add_css":"add_css","license":"license","add_email_helper":"add_email_helper","php_helper_both":"php_helper_both","php_helper_admin":"php_helper_admin","php_admin_event":"php_admin_event","php_helper_site":"php_helper_site","php_site_event":"php_site_event","sql":"sql","php_dashboard_methods":"php_dashboard_methods","add_php_preflight_install":"add_php_preflight_install","add_php_preflight_update":"add_php_preflight_update","add_php_postflight_install":"add_php_postflight_install","add_php_postflight_update":"add_php_postflight_update","add_php_method_uninstall":"add_php_method_uninstall","addreadme":"addreadme","add_sales_server":"add_sales_server","emptycontributors":"emptycontributors","number":"number","buildcompsql":"buildcompsql"}}';
|
||||
$component->router = 'ComponentbuilderHelperRoute::getComponentRoute';
|
||||
$component->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/component.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","update_server_target","add_php_helper_admin","creatuserhelper","add_sql","debug_linenr","add_php_helper_site","addfootable","add_update_server","add_php_helper_both","add_admin_event","add_site_event","add_php_dashboard_methods","not_required","add_license","buildcomp","license_type","adduikit","add_css","add_email_helper","add_php_preflight_install","add_php_preflight_update","add_php_postflight_install","add_php_postflight_update","add_php_method_uninstall","addreadme","emptycontributors","add_sales_server","number"],"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"}]}';
|
||||
$component->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/component.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","add_php_helper_site","creatuserhelper","add_php_helper_admin","debug_linenr","add_sql","add_placeholders","mvc_versiondate","update_server_target","addfootable","add_php_helper_both","add_admin_event","add_update_server","add_site_event","add_php_dashboard_methods","not_required","buildcomp","add_license","license_type","adduikit","add_css","add_email_helper","add_php_preflight_install","add_php_preflight_update","add_php_postflight_install","add_php_postflight_update","add_php_method_uninstall","addreadme","add_sales_server","emptycontributors","number"],"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"}]}';
|
||||
|
||||
// Set the object into the content types table.
|
||||
$component_Inserted = $db->insertObject('#__content_types', $component);
|
||||
@ -1545,9 +1545,9 @@ class com_componentbuilderInstallerScript
|
||||
$component->type_title = 'Componentbuilder Component';
|
||||
$component->type_alias = 'com_componentbuilder.component';
|
||||
$component->table = '{"special": {"dbtable": "#__componentbuilder_component","key": "id","type": "Component","prefix": "componentbuilderTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}';
|
||||
$component->field_mappings = '{"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": "readme","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_code":"name_code","component_version":"component_version","short_description":"short_description","companyname":"companyname","author":"author","update_server_target":"update_server_target","add_php_helper_admin":"add_php_helper_admin","creatuserhelper":"creatuserhelper","add_sql":"add_sql","update_server_ftp":"update_server_ftp","css":"css","debug_linenr":"debug_linenr","add_php_helper_site":"add_php_helper_site","update_server":"update_server","description":"description","name":"name","bom":"bom","image":"image","addfootable":"addfootable","add_update_server":"add_update_server","add_php_helper_both":"add_php_helper_both","php_preflight_update":"php_preflight_update","add_admin_event":"add_admin_event","php_postflight_update":"php_postflight_update","add_site_event":"add_site_event","readme":"readme","add_php_dashboard_methods":"add_php_dashboard_methods","sales_server_ftp":"sales_server_ftp","php_preflight_install":"php_preflight_install","email":"email","php_postflight_install":"php_postflight_install","website":"website","php_method_uninstall":"php_method_uninstall","copyright":"copyright","not_required":"not_required","add_license":"add_license","buildcomp":"buildcomp","license_type":"license_type","whmcs_key":"whmcs_key","whmcs_url":"whmcs_url","adduikit":"adduikit","license":"license","add_css":"add_css","add_email_helper":"add_email_helper","php_helper_both":"php_helper_both","php_helper_admin":"php_helper_admin","php_admin_event":"php_admin_event","php_helper_site":"php_helper_site","php_site_event":"php_site_event","sql":"sql","php_dashboard_methods":"php_dashboard_methods","add_php_preflight_install":"add_php_preflight_install","add_php_preflight_update":"add_php_preflight_update","add_php_postflight_install":"add_php_postflight_install","add_php_postflight_update":"add_php_postflight_update","add_php_method_uninstall":"add_php_method_uninstall","addreadme":"addreadme","emptycontributors":"emptycontributors","add_sales_server":"add_sales_server","number":"number","buildcompsql":"buildcompsql"}}';
|
||||
$component->field_mappings = '{"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": "readme","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_code":"name_code","component_version":"component_version","short_description":"short_description","companyname":"companyname","author":"author","css":"css","add_php_helper_site":"add_php_helper_site","php_postflight_update":"php_postflight_update","update_server_ftp":"update_server_ftp","creatuserhelper":"creatuserhelper","add_php_helper_admin":"add_php_helper_admin","debug_linenr":"debug_linenr","add_sql":"add_sql","add_placeholders":"add_placeholders","php_preflight_update":"php_preflight_update","mvc_versiondate":"mvc_versiondate","update_server_target":"update_server_target","update_server":"update_server","description":"description","addfootable":"addfootable","bom":"bom","add_php_helper_both":"add_php_helper_both","image":"image","add_admin_event":"add_admin_event","add_update_server":"add_update_server","add_site_event":"add_site_event","readme":"readme","add_php_dashboard_methods":"add_php_dashboard_methods","sales_server_ftp":"sales_server_ftp","php_preflight_install":"php_preflight_install","name":"name","php_postflight_install":"php_postflight_install","php_method_uninstall":"php_method_uninstall","email":"email","not_required":"not_required","website":"website","buildcomp":"buildcomp","copyright":"copyright","add_license":"add_license","license_type":"license_type","whmcs_key":"whmcs_key","adduikit":"adduikit","whmcs_url":"whmcs_url","add_css":"add_css","license":"license","add_email_helper":"add_email_helper","php_helper_both":"php_helper_both","php_helper_admin":"php_helper_admin","php_admin_event":"php_admin_event","php_helper_site":"php_helper_site","php_site_event":"php_site_event","sql":"sql","php_dashboard_methods":"php_dashboard_methods","add_php_preflight_install":"add_php_preflight_install","add_php_preflight_update":"add_php_preflight_update","add_php_postflight_install":"add_php_postflight_install","add_php_postflight_update":"add_php_postflight_update","add_php_method_uninstall":"add_php_method_uninstall","addreadme":"addreadme","add_sales_server":"add_sales_server","emptycontributors":"emptycontributors","number":"number","buildcompsql":"buildcompsql"}}';
|
||||
$component->router = 'ComponentbuilderHelperRoute::getComponentRoute';
|
||||
$component->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/component.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","update_server_target","add_php_helper_admin","creatuserhelper","add_sql","debug_linenr","add_php_helper_site","addfootable","add_update_server","add_php_helper_both","add_admin_event","add_site_event","add_php_dashboard_methods","not_required","add_license","buildcomp","license_type","adduikit","add_css","add_email_helper","add_php_preflight_install","add_php_preflight_update","add_php_postflight_install","add_php_postflight_update","add_php_method_uninstall","addreadme","emptycontributors","add_sales_server","number"],"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"}]}';
|
||||
$component->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/component.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","add_php_helper_site","creatuserhelper","add_php_helper_admin","debug_linenr","add_sql","add_placeholders","mvc_versiondate","update_server_target","addfootable","add_php_helper_both","add_admin_event","add_update_server","add_site_event","add_php_dashboard_methods","not_required","buildcomp","add_license","license_type","adduikit","add_css","add_email_helper","add_php_preflight_install","add_php_preflight_update","add_php_postflight_install","add_php_postflight_update","add_php_method_uninstall","addreadme","add_sales_server","emptycontributors","number"],"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"}]}';
|
||||
|
||||
// Check if component type is already in content_type DB.
|
||||
$component_id = null;
|
||||
|
Reference in New Issue
Block a user