Class: MyRendererHidden
- Inherits:
-
Object
- Object
- MyRendererHidden
- Includes:
- ManqodCommon
- Defined in:
- lib/FormHolder/Form/InputHolder/Hidden.rb
Overview
this file is part of manqod manqod is distributed under the CDDL licence the author of manqod is Dobai-Pataky Balint([email protected])
Constant Summary
Constants included from ManqodCommon
ManqodCommon::CRITICAL, ManqodCommon::DEBUG, ManqodCommon::ERROR, ManqodCommon::INFO, ManqodCommon::NORMAL, ManqodCommon::WARNING
Constants included from Eprint
Instance Attribute Summary collapse
-
#pc ⇒ Object
readonly
Returns the value of attribute pc.
Instance Method Summary collapse
-
#initialize(pc) ⇒ MyRendererHidden
constructor
A new instance of MyRendererHidden.
- #item ⇒ Object
- #method_missing(sym, *args) ⇒ Object
- #parentM ⇒ Object
- #parentselected ⇒ Object
- #text ⇒ Object
- #to_s ⇒ Object
- #update(new_value = item['default']) ⇒ Object
Methods included from ManqodCommon
#add_where, #admin, #admin_cache, #admin_qrow, #admin_rows, #backtrace_to_debug, #cache, #changed_ids_of_base, #client, #client_fields, #client_image_of_id, #client_qrow, #client_query, #client_rows, #eeval, #escape_string, #getBinding, #guess_base, #guess_table, #image_of_id, #lzero, #manqod_db, #measure, #myexec, #nick, #nick_id, #number_format, #qrow, #query, #reconnect_manqod_db, #rows, #run_events, #send_message, #sendmail, #set_manqod_db_uri, #set_nick
Methods included from Eprint
#ecode, #edebug, #eerror, #einfo, #enormal, #eprint, #ewarn, #gtk_set_edebug, #set_edebug, #tell_exception
Constructor Details
#initialize(pc) ⇒ MyRendererHidden
Returns a new instance of MyRendererHidden.
7 8 9 |
# File 'lib/FormHolder/Form/InputHolder/Hidden.rb', line 7 def initialize(pc) @pc=pc end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args) ⇒ Object
33 34 35 |
# File 'lib/FormHolder/Form/InputHolder/Hidden.rb', line 33 def method_missing(sym,*args) nil end |
Instance Attribute Details
#pc ⇒ Object (readonly)
Returns the value of attribute pc.
10 11 12 |
# File 'lib/FormHolder/Form/InputHolder/Hidden.rb', line 10 def pc @pc end |
Instance Method Details
#item ⇒ Object
12 13 14 |
# File 'lib/FormHolder/Form/InputHolder/Hidden.rb', line 12 def item pc.item end |
#parentM ⇒ Object
30 31 32 |
# File 'lib/FormHolder/Form/InputHolder/Hidden.rb', line 30 def parentM pc.parentM end |
#parentselected ⇒ Object
27 28 29 |
# File 'lib/FormHolder/Form/InputHolder/Hidden.rb', line 27 def parentselected pc.parentselected end |
#text ⇒ Object
16 17 18 |
# File 'lib/FormHolder/Form/InputHolder/Hidden.rb', line 16 def text item['default'].to_s end |
#to_s ⇒ Object
37 38 39 |
# File 'lib/FormHolder/Form/InputHolder/Hidden.rb', line 37 def to_s "Hidden(#{item["description"]})" end |
#update(new_value = item['default']) ⇒ Object
20 21 22 23 24 25 |
# File 'lib/FormHolder/Form/InputHolder/Hidden.rb', line 20 def update(new_value=item['default']) item['default']=new_value run_events(item['id'],'form_item-BeforeUpdate') pc.run_query run_events(item['id'],'form_item-AfterUpdate') end |