Improved the compiler, added the option to add the update server file to the zipped package, fixed a few bugs.
This commit is contained in:
14
script.php
14
script.php
@ -10,8 +10,8 @@
|
||||
|_|
|
||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||
|
||||
@version 2.2.0
|
||||
@build 31st October, 2016
|
||||
@version 2.2.2
|
||||
@build 22nd November, 2016
|
||||
@created 30th April, 2015
|
||||
@package Component Builder
|
||||
@subpackage script.php
|
||||
@ -1263,9 +1263,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","php_helper_site":"php_helper_site","add_css":"add_css","debug_linenr":"debug_linenr","update_server":"update_server","description":"description","php_helper_admin":"php_helper_admin","bom":"bom","update_server_ftp":"update_server_ftp","image":"image","name":"name","add_update_server":"add_update_server","sql":"sql","adduikit":"adduikit","add_php_preflight_install":"add_php_preflight_install","add_email_helper":"add_email_helper","add_php_postflight_install":"add_php_postflight_install","php_admin_event":"php_admin_event","add_php_method_uninstall":"add_php_method_uninstall","php_site_event":"php_site_event","email":"email","php_dashboard_methods":"php_dashboard_methods","website":"website","add_php_preflight_update":"add_php_preflight_update","copyright":"copyright","add_php_postflight_update":"add_php_postflight_update","add_license":"add_license","addreadme":"addreadme","license_type":"license_type","add_sales_server":"add_sales_server","whmcs_key":"whmcs_key","whmcs_url":"whmcs_url","license":"license","creatuserhelper":"creatuserhelper","addfootable":"addfootable","css":"css","add_php_helper_admin":"add_php_helper_admin","add_admin_event":"add_admin_event","add_php_helper_site":"add_php_helper_site","add_site_event":"add_site_event","add_sql":"add_sql","add_php_dashboard_methods":"add_php_dashboard_methods","php_preflight_install":"php_preflight_install","php_preflight_update":"php_preflight_update","php_postflight_install":"php_postflight_install","php_postflight_update":"php_postflight_update","php_method_uninstall":"php_method_uninstall","readme":"readme","emptycontributors":"emptycontributors","not_required":"not_required","number":"number","sales_server_ftp":"sales_server_ftp"}}';
|
||||
$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","add_php_postflight_install":"add_php_postflight_install","php_helper_admin":"php_helper_admin","sql":"sql","update_server_ftp":"update_server_ftp","add_css":"add_css","php_helper_site":"php_helper_site","debug_linenr":"debug_linenr","add_php_preflight_install":"add_php_preflight_install","update_server":"update_server","update_server_target":"update_server_target","description":"description","bom":"bom","adduikit":"adduikit","image":"image","add_email_helper":"add_email_helper","add_update_server":"add_update_server","php_admin_event":"php_admin_event","add_php_method_uninstall":"add_php_method_uninstall","php_site_event":"php_site_event","php_dashboard_methods":"php_dashboard_methods","name":"name","add_php_preflight_update":"add_php_preflight_update","number":"number","add_php_postflight_update":"add_php_postflight_update","email":"email","addreadme":"addreadme","website":"website","add_sales_server":"add_sales_server","copyright":"copyright","emptycontributors":"emptycontributors","add_license":"add_license","license_type":"license_type","whmcs_key":"whmcs_key","creatuserhelper":"creatuserhelper","whmcs_url":"whmcs_url","addfootable":"addfootable","license":"license","css":"css","add_php_helper_admin":"add_php_helper_admin","add_admin_event":"add_admin_event","add_php_helper_site":"add_php_helper_site","add_site_event":"add_site_event","add_sql":"add_sql","add_php_dashboard_methods":"add_php_dashboard_methods","php_preflight_install":"php_preflight_install","php_preflight_update":"php_preflight_update","php_postflight_install":"php_postflight_install","php_postflight_update":"php_postflight_update","php_method_uninstall":"php_method_uninstall","readme":"readme","not_required":"not_required","sales_server_ftp":"sales_server_ftp"}}';
|
||||
$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","add_css","debug_linenr","add_update_server","adduikit","add_php_preflight_install","add_email_helper","add_php_postflight_install","add_php_method_uninstall","add_php_preflight_update","add_php_postflight_update","add_license","addreadme","license_type","add_sales_server","creatuserhelper","addfootable","add_php_helper_admin","add_admin_event","add_php_helper_site","add_site_event","add_sql","add_php_dashboard_methods","emptycontributors","not_required","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_postflight_install","add_css","debug_linenr","add_php_preflight_install","update_server_target","adduikit","add_email_helper","add_update_server","add_php_method_uninstall","add_php_preflight_update","number","add_php_postflight_update","addreadme","add_sales_server","emptycontributors","add_license","license_type","creatuserhelper","addfootable","add_php_helper_admin","add_admin_event","add_php_helper_site","add_site_event","add_sql","add_php_dashboard_methods","not_required"],"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);
|
||||
@ -1447,9 +1447,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","php_helper_site":"php_helper_site","add_css":"add_css","debug_linenr":"debug_linenr","update_server":"update_server","description":"description","php_helper_admin":"php_helper_admin","bom":"bom","update_server_ftp":"update_server_ftp","image":"image","name":"name","add_update_server":"add_update_server","sql":"sql","adduikit":"adduikit","add_php_preflight_install":"add_php_preflight_install","add_email_helper":"add_email_helper","add_php_postflight_install":"add_php_postflight_install","php_admin_event":"php_admin_event","add_php_method_uninstall":"add_php_method_uninstall","php_site_event":"php_site_event","email":"email","php_dashboard_methods":"php_dashboard_methods","website":"website","add_php_preflight_update":"add_php_preflight_update","copyright":"copyright","add_php_postflight_update":"add_php_postflight_update","add_license":"add_license","addreadme":"addreadme","license_type":"license_type","add_sales_server":"add_sales_server","whmcs_key":"whmcs_key","whmcs_url":"whmcs_url","license":"license","creatuserhelper":"creatuserhelper","addfootable":"addfootable","css":"css","add_php_helper_admin":"add_php_helper_admin","add_admin_event":"add_admin_event","add_php_helper_site":"add_php_helper_site","add_site_event":"add_site_event","add_sql":"add_sql","add_php_dashboard_methods":"add_php_dashboard_methods","php_preflight_install":"php_preflight_install","php_preflight_update":"php_preflight_update","php_postflight_install":"php_postflight_install","php_postflight_update":"php_postflight_update","php_method_uninstall":"php_method_uninstall","readme":"readme","emptycontributors":"emptycontributors","not_required":"not_required","number":"number","sales_server_ftp":"sales_server_ftp"}}';
|
||||
$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","add_php_postflight_install":"add_php_postflight_install","php_helper_admin":"php_helper_admin","sql":"sql","update_server_ftp":"update_server_ftp","add_css":"add_css","php_helper_site":"php_helper_site","debug_linenr":"debug_linenr","add_php_preflight_install":"add_php_preflight_install","update_server":"update_server","update_server_target":"update_server_target","description":"description","bom":"bom","adduikit":"adduikit","image":"image","add_email_helper":"add_email_helper","add_update_server":"add_update_server","php_admin_event":"php_admin_event","add_php_method_uninstall":"add_php_method_uninstall","php_site_event":"php_site_event","php_dashboard_methods":"php_dashboard_methods","name":"name","add_php_preflight_update":"add_php_preflight_update","number":"number","add_php_postflight_update":"add_php_postflight_update","email":"email","addreadme":"addreadme","website":"website","add_sales_server":"add_sales_server","copyright":"copyright","emptycontributors":"emptycontributors","add_license":"add_license","license_type":"license_type","whmcs_key":"whmcs_key","creatuserhelper":"creatuserhelper","whmcs_url":"whmcs_url","addfootable":"addfootable","license":"license","css":"css","add_php_helper_admin":"add_php_helper_admin","add_admin_event":"add_admin_event","add_php_helper_site":"add_php_helper_site","add_site_event":"add_site_event","add_sql":"add_sql","add_php_dashboard_methods":"add_php_dashboard_methods","php_preflight_install":"php_preflight_install","php_preflight_update":"php_preflight_update","php_postflight_install":"php_postflight_install","php_postflight_update":"php_postflight_update","php_method_uninstall":"php_method_uninstall","readme":"readme","not_required":"not_required","sales_server_ftp":"sales_server_ftp"}}';
|
||||
$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","add_css","debug_linenr","add_update_server","adduikit","add_php_preflight_install","add_email_helper","add_php_postflight_install","add_php_method_uninstall","add_php_preflight_update","add_php_postflight_update","add_license","addreadme","license_type","add_sales_server","creatuserhelper","addfootable","add_php_helper_admin","add_admin_event","add_php_helper_site","add_site_event","add_sql","add_php_dashboard_methods","emptycontributors","not_required","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_postflight_install","add_css","debug_linenr","add_php_preflight_install","update_server_target","adduikit","add_email_helper","add_update_server","add_php_method_uninstall","add_php_preflight_update","number","add_php_postflight_update","addreadme","add_sales_server","emptycontributors","add_license","license_type","creatuserhelper","addfootable","add_php_helper_admin","add_admin_event","add_php_helper_site","add_site_event","add_sql","add_php_dashboard_methods","not_required"],"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;
|
||||
@ -1823,7 +1823,7 @@ class com_componentbuilderInstallerScript
|
||||
echo '<a target="_blank" href="https://www.vdm.io/joomla-component-builder" title="Component Builder">
|
||||
<img src="components/com_componentbuilder/assets/images/component-300.jpg"/>
|
||||
</a>
|
||||
<h3>Upgrade to Version 2.2.0 Was Successful! Let us know if anything is not working as expected.</h3>';
|
||||
<h3>Upgrade to Version 2.2.2 Was Successful! Let us know if anything is not working as expected.</h3>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user