ultimix

- Main Page
- Data Structures
- Files
- Examples

- File List
- Globals

system_structure_view.js
Go to the documentation of this file.
1
6 if( !ultimix )
7 {
8 ultimix = {};
9 }
10
16 if( !ultimix.system_structure )
17 {
18 ultimix.system_structure = {};
19 }
20
30 ultimix.system_structure.set_default_options = function( ViewOptions )
31 {
32 if( !ViewOptions )
33 {
34 ViewOptions = {};
35 }
36
37 ViewOptions.meta = ViewOptions.meta ? ViewOptions.meta : 'meta_system_structure_list';
38 ViewOptions.package_name = ViewOptions.package_name ? ViewOptions.package_name :
39 'system_structure::system_structure_view';
40 ViewOptions.paging_require_form = ViewOptions.paging_require_form ? ViewOptions.paging_require_form : '0';
41 ViewOptions.add_hidden_fields = ViewOptions.add_hidden_fields ? ViewOptions.add_hidden_fields : '0';
42
43 return( ViewOptions );
44 }
45
55 ultimix.system_structure.get_list_form = function( Fuctions , ViewOptions )
56 {
57 if( !Fuctions )
58 {
59 Fuctions = {};
60 }
61
62 ViewOptions = ultimix.system_structure.set_default_options( ViewOptions );
63
64 ultimix.ajax_gate.direct_view( ViewOptions , Fuctions );
65 }
66
82 ultimix.system_structure.get_custom_list_form = function( Fuctions , Header , Item , Footer , ViewOptions )
83 {
84 ultimix.auto.get_custom_list_form( Fuctions , Header , Item , Footer , false , ViewOptions , 'ad_banner' );
85 }
86
96 ultimix.system_structure.delete = function( Id , DataSelector )
97 {
98 ultimix.auto.delete(
99 Id , DataSelector ,
100 {
101 'package_name' : 'system_structure::system_structure_controller' ,
102 'system_structure_context_action' : 'delete_record' ,
103 'system_structure_action' : 'delete_record' , 'system_structure_record_id' : Id ,
104 'meta' : 'meta_delete_system_structure'
105 }
106 );
107 }
108
120 ultimix.system_structure.record_view_form = function( Id , DataSelector )
121 {
122 ultimix.auto.record_view_form(
123 Id , DataSelector ,
124 {
125 'package_name' : 'system_structure::system_structure_view' ,
126 'system_structure_context_action' : 'record_view_form' ,
127 'system_structure_action' : 'record_view_form' , 'system_structure_record_id' : Id ,
128 'meta' : 'meta_record_view_system_structure_form'
129 }
130 );
131 }