Added PHP (script - before publish) & PHP (script - after publish)

with some fixes to the compiler
This commit is contained in:
2016-09-07 23:20:58 +02:00
parent f8d5145af9
commit b8311078ac
368 changed files with 3397 additions and 2947 deletions

View File

@ -111,11 +111,13 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_view` (
`add_javascript_views_file` TINYINT(1) NOT NULL DEFAULT '0',
`add_javascript_views_footer` TINYINT(1) NOT NULL DEFAULT '0',
`add_php_after_delete` TINYINT(1) NOT NULL DEFAULT '0',
`add_php_after_publish` TINYINT(1) NOT NULL DEFAULT '0',
`add_php_ajax` TINYINT(1) NOT NULL DEFAULT '0',
`add_php_allowedit` TINYINT(1) NOT NULL DEFAULT '0',
`add_php_batchcopy` TINYINT(1) NOT NULL DEFAULT '0',
`add_php_batchmove` TINYINT(1) NOT NULL DEFAULT '0',
`add_php_before_delete` TINYINT(1) NOT NULL DEFAULT '0',
`add_php_before_publish` TINYINT(1) NOT NULL DEFAULT '0',
`add_php_document` TINYINT(1) NOT NULL DEFAULT '0',
`add_php_getitem` TINYINT(1) NOT NULL DEFAULT '0',
`add_php_getitems` TINYINT(1) NOT NULL DEFAULT '0',
@ -146,11 +148,13 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_view` (
`name_single` CHAR(64) NOT NULL DEFAULT '',
`not_required` INT(1) NOT NULL DEFAULT '0',
`php_after_delete` MEDIUMTEXT NOT NULL,
`php_after_publish` MEDIUMTEXT NOT NULL,
`php_ajaxmethod` MEDIUMTEXT NOT NULL,
`php_allowedit` MEDIUMTEXT NOT NULL,
`php_batchcopy` MEDIUMTEXT NOT NULL,
`php_batchmove` MEDIUMTEXT NOT NULL,
`php_before_delete` MEDIUMTEXT NOT NULL,
`php_before_publish` MEDIUMTEXT NOT NULL,
`php_document` MEDIUMTEXT NOT NULL,
`php_getitem` MEDIUMTEXT NOT NULL,
`php_getitems` MEDIUMTEXT NOT NULL,
@ -190,7 +194,6 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_view` (
KEY `idx_type` (`type`),
KEY `idx_add_fadein` (`add_fadein`),
KEY `idx_source` (`source`),
KEY `idx_add_php_getitems` (`add_php_getitems`),
KEY `idx_add_css_view` (`add_css_view`),
KEY `idx_add_php_getitems_after_all` (`add_php_getitems_after_all`),
KEY `idx_add_php_getlistquery` (`add_php_getlistquery`),
@ -202,15 +205,18 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_view` (
KEY `idx_add_php_batchcopy` (`add_php_batchcopy`),
KEY `idx_add_javascript_view_footer` (`add_javascript_view_footer`),
KEY `idx_add_php_batchmove` (`add_php_batchmove`),
KEY `idx_add_php_before_delete` (`add_php_before_delete`),
KEY `idx_add_php_before_publish` (`add_php_before_publish`),
KEY `idx_add_javascript_views_file` (`add_javascript_views_file`),
KEY `idx_add_php_after_publish` (`add_php_after_publish`),
KEY `idx_add_php_before_delete` (`add_php_before_delete`),
KEY `idx_add_javascript_views_footer` (`add_javascript_views_footer`),
KEY `idx_add_php_after_delete` (`add_php_after_delete`),
KEY `idx_add_php_document` (`add_php_document`),
KEY `idx_add_javascript_views_footer` (`add_javascript_views_footer`),
KEY `idx_add_sql` (`add_sql`),
KEY `idx_add_php_ajax` (`add_php_ajax`),
KEY `idx_add_sql` (`add_sql`),
KEY `idx_add_php_getitem` (`add_php_getitem`),
KEY `idx_add_custom_import` (`add_custom_import`),
KEY `idx_add_php_getitem` (`add_php_getitem`)
KEY `idx_add_php_getitems` (`add_php_getitems`)
) ENGINE=MyISAM AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `#__componentbuilder_custom_admin_view` (