@@ -2,36 +2,36 @@ |
||
| 2 | 2 | $module_name = 'mkt_dyntest'; |
| 3 | 3 | $listViewDefs [$module_name] = |
| 4 | 4 | array ( |
| 5 | - 'NAME' => |
|
| 6 | - array ( |
|
| 5 | + 'NAME' => |
|
| 6 | + array ( |
|
| 7 | 7 | 'width' => '32%', |
| 8 | 8 | 'label' => 'LBL_NAME', |
| 9 | 9 | 'default' => true, |
| 10 | 10 | 'link' => true, |
| 11 | - ), |
|
| 12 | - 'LEVEL1' => |
|
| 13 | - array ( |
|
| 11 | + ), |
|
| 12 | + 'LEVEL1' => |
|
| 13 | + array ( |
|
| 14 | 14 | 'type' => 'enum', |
| 15 | 15 | 'studio' => 'visible', |
| 16 | 16 | 'label' => 'LBL_LEVEL1', |
| 17 | 17 | 'width' => '10%', |
| 18 | 18 | 'default' => true, |
| 19 | - ), |
|
| 20 | - 'LEVEL2' => |
|
| 21 | - array ( |
|
| 19 | + ), |
|
| 20 | + 'LEVEL2' => |
|
| 21 | + array ( |
|
| 22 | 22 | 'type' => 'dynamicenum', |
| 23 | 23 | 'studio' => 'visible', |
| 24 | 24 | 'label' => 'LBL_LEVEL2', |
| 25 | 25 | 'width' => '10%', |
| 26 | 26 | 'default' => true, |
| 27 | - ), |
|
| 28 | - 'ASSIGNED_USER_NAME' => |
|
| 29 | - array ( |
|
| 27 | + ), |
|
| 28 | + 'ASSIGNED_USER_NAME' => |
|
| 29 | + array ( |
|
| 30 | 30 | 'width' => '9%', |
| 31 | 31 | 'label' => 'LBL_ASSIGNED_TO_NAME', |
| 32 | 32 | 'module' => 'Employees', |
| 33 | 33 | 'id' => 'ASSIGNED_USER_ID', |
| 34 | 34 | 'default' => true, |
| 35 | - ), |
|
| 35 | + ), |
|
| 36 | 36 | ); |
| 37 | 37 | ?> |
@@ -44,21 +44,21 @@ |
||
| 44 | 44 | * Window - Preferences - PHPeclipse - PHP - Code Templates |
| 45 | 45 | */ |
| 46 | 46 | $module_name = 'mkt_dyntest'; |
| 47 | - $searchdefs[$module_name] = array( |
|
| 48 | - 'templateMeta' => array( |
|
| 49 | - 'maxColumns' => '3', |
|
| 50 | - 'maxColumnsBasic' => '4', |
|
| 47 | + $searchdefs[$module_name] = array( |
|
| 48 | + 'templateMeta' => array( |
|
| 49 | + 'maxColumns' => '3', |
|
| 50 | + 'maxColumnsBasic' => '4', |
|
| 51 | 51 | 'widths' => array('label' => '10', 'field' => '30'), |
| 52 | - ), |
|
| 52 | + ), |
|
| 53 | 53 | 'layout' => array( |
| 54 | - 'basic_search' => array( |
|
| 55 | - 'name', |
|
| 56 | - array('name'=>'current_user_only', 'label'=>'LBL_CURRENT_USER_FILTER', 'type'=>'bool'), |
|
| 57 | - ), |
|
| 58 | - 'advanced_search' => array( |
|
| 59 | - 'name', |
|
| 60 | - array('name' => 'assigned_user_id', 'label' => 'LBL_ASSIGNED_TO', 'type' => 'enum', 'function' => array('name' => 'get_user_array', 'params' => array(false))), |
|
| 61 | - ), |
|
| 62 | - ), |
|
| 63 | - ); |
|
| 54 | + 'basic_search' => array( |
|
| 55 | + 'name', |
|
| 56 | + array('name'=>'current_user_only', 'label'=>'LBL_CURRENT_USER_FILTER', 'type'=>'bool'), |
|
| 57 | + ), |
|
| 58 | + 'advanced_search' => array( |
|
| 59 | + 'name', |
|
| 60 | + array('name' => 'assigned_user_id', 'label' => 'LBL_ASSIGNED_TO', 'type' => 'enum', 'function' => array('name' => 'get_user_array', 'params' => array(false))), |
|
| 61 | + ), |
|
| 62 | + ), |
|
| 63 | + ); |
|
| 64 | 64 | ?> |
@@ -44,20 +44,20 @@ |
||
| 44 | 44 | global $current_user; |
| 45 | 45 | |
| 46 | 46 | $dashletData['mkt_dyntestDashlet']['searchFields'] = array('date_entered' => array('default' => ''), |
| 47 | - 'date_modified' => array('default' => ''), |
|
| 48 | - 'assigned_user_id' => array('type' => 'assigned_user_name', |
|
| 49 | - 'default' => $current_user->name)); |
|
| 47 | + 'date_modified' => array('default' => ''), |
|
| 48 | + 'assigned_user_id' => array('type' => 'assigned_user_name', |
|
| 49 | + 'default' => $current_user->name)); |
|
| 50 | 50 | $dashletData['mkt_dyntestDashlet']['columns'] = array( 'name' => array('width' => '40', |
| 51 | - 'label' => 'LBL_LIST_NAME', |
|
| 52 | - 'link' => true, |
|
| 53 | - 'default' => true), |
|
| 54 | - 'date_entered' => array('width' => '15', |
|
| 55 | - 'label' => 'LBL_DATE_ENTERED', |
|
| 56 | - 'default' => true), |
|
| 57 | - 'date_modified' => array('width' => '15', |
|
| 58 | - 'label' => 'LBL_DATE_MODIFIED'), |
|
| 59 | - 'created_by' => array('width' => '8', |
|
| 51 | + 'label' => 'LBL_LIST_NAME', |
|
| 52 | + 'link' => true, |
|
| 53 | + 'default' => true), |
|
| 54 | + 'date_entered' => array('width' => '15', |
|
| 55 | + 'label' => 'LBL_DATE_ENTERED', |
|
| 56 | + 'default' => true), |
|
| 57 | + 'date_modified' => array('width' => '15', |
|
| 58 | + 'label' => 'LBL_DATE_MODIFIED'), |
|
| 59 | + 'created_by' => array('width' => '8', |
|
| 60 | 60 | 'label' => 'LBL_CREATED'), |
| 61 | - 'assigned_user_name' => array('width' => '8', |
|
| 62 | - 'label' => 'LBL_LIST_ASSIGNED_USER'), |
|
| 63 | - ); |
|
| 64 | 61 | \ No newline at end of file |
| 62 | + 'assigned_user_name' => array('width' => '8', |
|
| 63 | + 'label' => 'LBL_LIST_ASSIGNED_USER'), |
|
| 64 | + ); |
|
| 65 | 65 | \ No newline at end of file |
@@ -2,64 +2,64 @@ |
||
| 2 | 2 | $module_name = 'mkt_dyntest'; |
| 3 | 3 | $viewdefs [$module_name] = |
| 4 | 4 | array ( |
| 5 | - 'EditView' => |
|
| 6 | - array ( |
|
| 5 | + 'EditView' => |
|
| 6 | + array ( |
|
| 7 | 7 | 'templateMeta' => |
| 8 | 8 | array ( |
| 9 | - 'maxColumns' => '2', |
|
| 10 | - 'widths' => |
|
| 11 | - array ( |
|
| 9 | + 'maxColumns' => '2', |
|
| 10 | + 'widths' => |
|
| 11 | + array ( |
|
| 12 | 12 | 0 => |
| 13 | 13 | array ( |
| 14 | - 'label' => '10', |
|
| 15 | - 'field' => '30', |
|
| 14 | + 'label' => '10', |
|
| 15 | + 'field' => '30', |
|
| 16 | 16 | ), |
| 17 | 17 | 1 => |
| 18 | 18 | array ( |
| 19 | - 'label' => '10', |
|
| 20 | - 'field' => '30', |
|
| 19 | + 'label' => '10', |
|
| 20 | + 'field' => '30', |
|
| 21 | 21 | ), |
| 22 | - ), |
|
| 23 | - 'useTabs' => false, |
|
| 24 | - 'tabDefs' => |
|
| 25 | - array ( |
|
| 22 | + ), |
|
| 23 | + 'useTabs' => false, |
|
| 24 | + 'tabDefs' => |
|
| 25 | + array ( |
|
| 26 | 26 | 'DEFAULT' => |
| 27 | 27 | array ( |
| 28 | - 'newTab' => false, |
|
| 29 | - 'panelDefault' => 'expanded', |
|
| 28 | + 'newTab' => false, |
|
| 29 | + 'panelDefault' => 'expanded', |
|
| 30 | 30 | ), |
| 31 | - ), |
|
| 32 | - 'syncDetailEditViews' => true, |
|
| 31 | + ), |
|
| 32 | + 'syncDetailEditViews' => true, |
|
| 33 | 33 | ), |
| 34 | 34 | 'panels' => |
| 35 | 35 | array ( |
| 36 | - 'default' => |
|
| 37 | - array ( |
|
| 36 | + 'default' => |
|
| 37 | + array ( |
|
| 38 | 38 | 0 => |
| 39 | 39 | array ( |
| 40 | - 0 => 'name', |
|
| 40 | + 0 => 'name', |
|
| 41 | 41 | ), |
| 42 | 42 | 1 => |
| 43 | 43 | array ( |
| 44 | - 0 => |
|
| 45 | - array ( |
|
| 44 | + 0 => |
|
| 45 | + array ( |
|
| 46 | 46 | 'name' => 'level1', |
| 47 | 47 | 'studio' => 'visible', |
| 48 | 48 | 'label' => 'LBL_LEVEL1', |
| 49 | - ), |
|
| 50 | - 1 => |
|
| 51 | - array ( |
|
| 49 | + ), |
|
| 50 | + 1 => |
|
| 51 | + array ( |
|
| 52 | 52 | 'name' => 'level2', |
| 53 | 53 | 'studio' => 'visible', |
| 54 | 54 | 'label' => 'LBL_LEVEL2', |
| 55 | - ), |
|
| 55 | + ), |
|
| 56 | 56 | ), |
| 57 | 57 | 2 => |
| 58 | 58 | array ( |
| 59 | - 0 => 'description', |
|
| 59 | + 0 => 'description', |
|
| 60 | 60 | ), |
| 61 | - ), |
|
| 61 | + ), |
|
| 62 | + ), |
|
| 62 | 63 | ), |
| 63 | - ), |
|
| 64 | 64 | ); |
| 65 | 65 | ?> |
@@ -44,12 +44,12 @@ |
||
| 44 | 44 | * Window - Preferences - PHPeclipse - PHP - Code Templates |
| 45 | 45 | */ |
| 46 | 46 | $module_name = 'mkt_dyntest'; |
| 47 | - $metafiles[$module_name] = array( |
|
| 48 | - 'detailviewdefs' => 'modules/' . $module_name . '/metadata/detailviewdefs.php', |
|
| 49 | - 'editviewdefs' => 'modules/' . $module_name . '/metadata/editviewdefs.php', |
|
| 50 | - 'listviewdefs' => 'modules/' . $module_name . '/metadata/listviewdefs.php', |
|
| 51 | - 'searchdefs' => 'modules/' . $module_name . '/metadata/searchdefs.php', |
|
| 52 | - 'popupdefs' => 'modules/' . $module_name . '/metadata/popupdefs.php', |
|
| 53 | - 'searchfields' => 'modules/' . $module_name . '/metadata/SearchFields.php', |
|
| 54 | - ); |
|
| 47 | + $metafiles[$module_name] = array( |
|
| 48 | + 'detailviewdefs' => 'modules/' . $module_name . '/metadata/detailviewdefs.php', |
|
| 49 | + 'editviewdefs' => 'modules/' . $module_name . '/metadata/editviewdefs.php', |
|
| 50 | + 'listviewdefs' => 'modules/' . $module_name . '/metadata/listviewdefs.php', |
|
| 51 | + 'searchdefs' => 'modules/' . $module_name . '/metadata/searchdefs.php', |
|
| 52 | + 'popupdefs' => 'modules/' . $module_name . '/metadata/popupdefs.php', |
|
| 53 | + 'searchfields' => 'modules/' . $module_name . '/metadata/SearchFields.php', |
|
| 54 | + ); |
|
| 55 | 55 | ?> |
@@ -2,74 +2,74 @@ |
||
| 2 | 2 | $module_name = 'mkt_dyntest'; |
| 3 | 3 | $viewdefs [$module_name] = |
| 4 | 4 | array ( |
| 5 | - 'DetailView' => |
|
| 6 | - array ( |
|
| 5 | + 'DetailView' => |
|
| 6 | + array ( |
|
| 7 | 7 | 'templateMeta' => |
| 8 | 8 | array ( |
| 9 | - 'form' => |
|
| 10 | - array ( |
|
| 9 | + 'form' => |
|
| 10 | + array ( |
|
| 11 | 11 | 'buttons' => |
| 12 | 12 | array ( |
| 13 | - 0 => 'EDIT', |
|
| 14 | - 1 => 'DUPLICATE', |
|
| 15 | - 2 => 'DELETE', |
|
| 16 | - 3 => 'FIND_DUPLICATES', |
|
| 13 | + 0 => 'EDIT', |
|
| 14 | + 1 => 'DUPLICATE', |
|
| 15 | + 2 => 'DELETE', |
|
| 16 | + 3 => 'FIND_DUPLICATES', |
|
| 17 | + ), |
|
| 17 | 18 | ), |
| 18 | - ), |
|
| 19 | - 'maxColumns' => '2', |
|
| 20 | - 'widths' => |
|
| 21 | - array ( |
|
| 19 | + 'maxColumns' => '2', |
|
| 20 | + 'widths' => |
|
| 21 | + array ( |
|
| 22 | 22 | 0 => |
| 23 | 23 | array ( |
| 24 | - 'label' => '10', |
|
| 25 | - 'field' => '30', |
|
| 24 | + 'label' => '10', |
|
| 25 | + 'field' => '30', |
|
| 26 | 26 | ), |
| 27 | 27 | 1 => |
| 28 | 28 | array ( |
| 29 | - 'label' => '10', |
|
| 30 | - 'field' => '30', |
|
| 29 | + 'label' => '10', |
|
| 30 | + 'field' => '30', |
|
| 31 | + ), |
|
| 31 | 32 | ), |
| 32 | - ), |
|
| 33 | - 'useTabs' => false, |
|
| 34 | - 'tabDefs' => |
|
| 35 | - array ( |
|
| 33 | + 'useTabs' => false, |
|
| 34 | + 'tabDefs' => |
|
| 35 | + array ( |
|
| 36 | 36 | 'DEFAULT' => |
| 37 | 37 | array ( |
| 38 | - 'newTab' => false, |
|
| 39 | - 'panelDefault' => 'expanded', |
|
| 38 | + 'newTab' => false, |
|
| 39 | + 'panelDefault' => 'expanded', |
|
| 40 | + ), |
|
| 40 | 41 | ), |
| 41 | - ), |
|
| 42 | - 'syncDetailEditViews' => true, |
|
| 42 | + 'syncDetailEditViews' => true, |
|
| 43 | 43 | ), |
| 44 | 44 | 'panels' => |
| 45 | 45 | array ( |
| 46 | - 'default' => |
|
| 47 | - array ( |
|
| 46 | + 'default' => |
|
| 47 | + array ( |
|
| 48 | 48 | 0 => |
| 49 | 49 | array ( |
| 50 | - 0 => 'name', |
|
| 50 | + 0 => 'name', |
|
| 51 | 51 | ), |
| 52 | 52 | 1 => |
| 53 | 53 | array ( |
| 54 | - 0 => |
|
| 55 | - array ( |
|
| 54 | + 0 => |
|
| 55 | + array ( |
|
| 56 | 56 | 'name' => 'level1', |
| 57 | 57 | 'studio' => 'visible', |
| 58 | 58 | 'label' => 'LBL_LEVEL1', |
| 59 | - ), |
|
| 60 | - 1 => |
|
| 61 | - array ( |
|
| 59 | + ), |
|
| 60 | + 1 => |
|
| 61 | + array ( |
|
| 62 | 62 | 'name' => 'level2', |
| 63 | 63 | 'studio' => 'visible', |
| 64 | 64 | 'label' => 'LBL_LEVEL2', |
| 65 | - ), |
|
| 65 | + ), |
|
| 66 | 66 | ), |
| 67 | 67 | 2 => |
| 68 | 68 | array ( |
| 69 | - 0 => 'description', |
|
| 69 | + 0 => 'description', |
|
| 70 | 70 | ), |
| 71 | - ), |
|
| 71 | + ), |
|
| 72 | + ), |
|
| 72 | 73 | ), |
| 73 | - ), |
|
| 74 | 74 | ); |
| 75 | 75 | ?> |
@@ -41,36 +41,36 @@ |
||
| 41 | 41 | |
| 42 | 42 | $module_name='mkt_dyntest'; |
| 43 | 43 | $subpanel_layout = array( |
| 44 | - 'top_buttons' => array( |
|
| 45 | - array('widget_class' => 'SubPanelTopCreateButton'), |
|
| 46 | - array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => $module_name), |
|
| 47 | - ), |
|
| 44 | + 'top_buttons' => array( |
|
| 45 | + array('widget_class' => 'SubPanelTopCreateButton'), |
|
| 46 | + array('widget_class' => 'SubPanelTopSelectButton', 'popup_module' => $module_name), |
|
| 47 | + ), |
|
| 48 | 48 | |
| 49 | - 'where' => '', |
|
| 49 | + 'where' => '', |
|
| 50 | 50 | |
| 51 | - 'list_fields' => array( |
|
| 52 | - 'name'=>array( |
|
| 53 | - 'vname' => 'LBL_NAME', |
|
| 54 | - 'widget_class' => 'SubPanelDetailViewLink', |
|
| 55 | - 'width' => '45%', |
|
| 56 | - ), |
|
| 57 | - 'date_modified'=>array( |
|
| 58 | - 'vname' => 'LBL_DATE_MODIFIED', |
|
| 59 | - 'width' => '45%', |
|
| 60 | - ), |
|
| 61 | - 'edit_button'=>array( |
|
| 51 | + 'list_fields' => array( |
|
| 52 | + 'name'=>array( |
|
| 53 | + 'vname' => 'LBL_NAME', |
|
| 54 | + 'widget_class' => 'SubPanelDetailViewLink', |
|
| 55 | + 'width' => '45%', |
|
| 56 | + ), |
|
| 57 | + 'date_modified'=>array( |
|
| 58 | + 'vname' => 'LBL_DATE_MODIFIED', |
|
| 59 | + 'width' => '45%', |
|
| 60 | + ), |
|
| 61 | + 'edit_button'=>array( |
|
| 62 | 62 | 'vname' => 'LBL_EDIT_BUTTON', |
| 63 | - 'widget_class' => 'SubPanelEditButton', |
|
| 64 | - 'module' => $module_name, |
|
| 65 | - 'width' => '4%', |
|
| 66 | - ), |
|
| 67 | - 'remove_button'=>array( |
|
| 63 | + 'widget_class' => 'SubPanelEditButton', |
|
| 64 | + 'module' => $module_name, |
|
| 65 | + 'width' => '4%', |
|
| 66 | + ), |
|
| 67 | + 'remove_button'=>array( |
|
| 68 | 68 | 'vname' => 'LBL_REMOVE', |
| 69 | - 'widget_class' => 'SubPanelRemoveButton', |
|
| 70 | - 'module' => $module_name, |
|
| 71 | - 'width' => '5%', |
|
| 72 | - ), |
|
| 73 | - ), |
|
| 69 | + 'widget_class' => 'SubPanelRemoveButton', |
|
| 70 | + 'module' => $module_name, |
|
| 71 | + 'width' => '5%', |
|
| 72 | + ), |
|
| 73 | + ), |
|
| 74 | 74 | ); |
| 75 | 75 | |
| 76 | 76 | ?> |
| 77 | 77 | \ No newline at end of file |
@@ -42,14 +42,14 @@ |
||
| 42 | 42 | $object_name = 'mkt_dyntest'; |
| 43 | 43 | $_module_name = 'mkt_dyntest'; |
| 44 | 44 | $popupMeta = array('moduleMain' => $module_name, |
| 45 | - 'varName' => $object_name, |
|
| 46 | - 'orderBy' => $_module_name.'.name', |
|
| 47 | - 'whereClauses' => |
|
| 48 | - array('name' => $_module_name . '.name', |
|
| 49 | - ), |
|
| 50 | - 'searchInputs'=> array($_module_name. '_number', 'name', 'priority','status'), |
|
| 45 | + 'varName' => $object_name, |
|
| 46 | + 'orderBy' => $_module_name.'.name', |
|
| 47 | + 'whereClauses' => |
|
| 48 | + array('name' => $_module_name . '.name', |
|
| 49 | + ), |
|
| 50 | + 'searchInputs'=> array($_module_name. '_number', 'name', 'priority','status'), |
|
| 51 | 51 | |
| 52 | - ); |
|
| 52 | + ); |
|
| 53 | 53 | ?> |
| 54 | 54 | |
| 55 | 55 | |
| 56 | 56 | \ No newline at end of file |
@@ -45,41 +45,41 @@ |
||
| 45 | 45 | |
| 46 | 46 | |
| 47 | 47 | class mkt_dyntest_sugar extends Basic { |
| 48 | - var $new_schema = true; |
|
| 49 | - var $module_dir = 'mkt_dyntest'; |
|
| 50 | - var $object_name = 'mkt_dyntest'; |
|
| 51 | - var $table_name = 'mkt_dyntest'; |
|
| 52 | - var $importable = false; |
|
| 53 | - var $disable_row_level_security = true ; // to ensure that modules created and deployed under CE will continue to function under team security if the instance is upgraded to PRO |
|
| 48 | + var $new_schema = true; |
|
| 49 | + var $module_dir = 'mkt_dyntest'; |
|
| 50 | + var $object_name = 'mkt_dyntest'; |
|
| 51 | + var $table_name = 'mkt_dyntest'; |
|
| 52 | + var $importable = false; |
|
| 53 | + var $disable_row_level_security = true ; // to ensure that modules created and deployed under CE will continue to function under team security if the instance is upgraded to PRO |
|
| 54 | 54 | |
| 55 | - var $id; |
|
| 56 | - var $name; |
|
| 57 | - var $date_entered; |
|
| 58 | - var $date_modified; |
|
| 59 | - var $modified_user_id; |
|
| 60 | - var $modified_by_name; |
|
| 61 | - var $created_by; |
|
| 62 | - var $created_by_name; |
|
| 63 | - var $description; |
|
| 64 | - var $deleted; |
|
| 65 | - var $created_by_link; |
|
| 66 | - var $modified_user_link; |
|
| 67 | - var $assigned_user_id; |
|
| 68 | - var $assigned_user_name; |
|
| 69 | - var $assigned_user_link; |
|
| 70 | - var $level1; |
|
| 71 | - var $level2; |
|
| 55 | + var $id; |
|
| 56 | + var $name; |
|
| 57 | + var $date_entered; |
|
| 58 | + var $date_modified; |
|
| 59 | + var $modified_user_id; |
|
| 60 | + var $modified_by_name; |
|
| 61 | + var $created_by; |
|
| 62 | + var $created_by_name; |
|
| 63 | + var $description; |
|
| 64 | + var $deleted; |
|
| 65 | + var $created_by_link; |
|
| 66 | + var $modified_user_link; |
|
| 67 | + var $assigned_user_id; |
|
| 68 | + var $assigned_user_name; |
|
| 69 | + var $assigned_user_link; |
|
| 70 | + var $level1; |
|
| 71 | + var $level2; |
|
| 72 | 72 | |
| 73 | - function __construct(){ |
|
| 74 | - parent::__construct(); |
|
| 75 | - } |
|
| 73 | + function __construct(){ |
|
| 74 | + parent::__construct(); |
|
| 75 | + } |
|
| 76 | 76 | |
| 77 | - function bean_implements($interface){ |
|
| 78 | - switch($interface){ |
|
| 79 | - case 'ACL': return true; |
|
| 80 | - } |
|
| 81 | - return false; |
|
| 82 | - } |
|
| 77 | + function bean_implements($interface){ |
|
| 78 | + switch($interface){ |
|
| 79 | + case 'ACL': return true; |
|
| 80 | + } |
|
| 81 | + return false; |
|
| 82 | + } |
|
| 83 | 83 | |
| 84 | 84 | } |
| 85 | 85 | ?> |
| 86 | 86 | \ No newline at end of file |