Class: Statics
- Inherits:
-
Entities
- Object
- RPCQooxdooService
- Entities
- Statics
- Defined in:
- lib/qooxview/helpers/static.rb
Instance Attribute Summary
Attributes inherited from Entities
#blocks, #changed, #data, #data_class, #data_field_id, #data_instances, #is_loaded, #keys, #last_id, #loading, #name, #null_allowed, #save_after_create, #storage, #values
Instance Method Summary collapse
Methods inherited from Entities
delete_all_data, #get_block_fields, #get_data_instance, #get_field_names, #get_non_list_field_names, #get_value, has_entity?, #initialize, is_setup?, load, load_all, #match_by_id, method_missing, #method_missing, needs, reload, #respond_to?, save_all, service, #singular, #value_add, #value_add_, #value_block, #value_date, #value_entity, #value_int, #value_list_drop_, #value_str, #value_time, #whoami
Methods included from StorageHandler
#add_new_storage, #add_value_to_storage, #create, #create_key, #data_update, #delete_all, #delete_id, #field_args, #filter_by, #find, #find_by, #find_key_by, #first, #get_entry, #has_field?, #has_storage?, #last, #load, #match_by, #match_key, #matches_by, #migrate, #new_id, #replace_st, #save, #save_data, #search_all, #search_all_, #search_by, #search_by_all, #set_entry, #update_key
Methods inherited from RPCQooxdooService
add_prime_service, entities, #get_services, inherited, #initialize, migrate_all, needs, #needs_covered, services
Constructor Details
This class inherits a constructor from Entities
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Entities
Instance Method Details
#get(name) ⇒ Object
7 8 9 10 |
# File 'lib/qooxview/helpers/static.rb', line 7 def get(name) match_by_view_name(name) or create(:view_name => name, :data_str => '') end |
#get_hash(name) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/qooxview/helpers/static.rb', line 12 def get_hash(name) s = Statics.get(name) s.data_str.length == 0 and s.data_str = {} s.data_str end |
#setup_data ⇒ Object
2 3 4 5 |
# File 'lib/qooxview/helpers/static.rb', line 2 def setup_data value_str :view_name value_str :data_str end |