Class: ODDB::View::LimitComposite

Inherits:
HtmlGrid::Composite show all
Defined in:
src/view/limit.rb

Constant Summary

COMPONENTS =
{
  [0,0]   => :query_limit,
  [0,1]   => 'query_limit_welcome',
  [0,2,0] => 'query_limit_new_user',
  [0,2,1] => :query_limit_more_info,
  [0,3]   => :query_limit_explain,
  [0,4,0] => 'ol_open',
  [0,4,1] => 'li_open',
  [0,4,2] => 'query_limit_download',
  [0,4,3] => :query_limit_download,
  [0,4,4] => 'li_close',
  [0,4,5] => 'li_open',
  [0,4,6] => 'query_limit_poweruser',
  [0,4,7] => 'li_close',
  [0,4,8] => 'ol_close',
  [0,5]   =>  LimitForm,
  [0,7]   => 'query_limit_login',
  [0,8]   =>  View::Admin::LoginForm,
  [0,10]  => 'query_limit_thanks0',
  [0,11,0]=> 'query_limit_thanks1',
  [0,11,1]=> :query_limit_email,
  [0,11,2]=> 'query_limit_thanks2',
}
CSS_MAP =
{
  [0,0] =>  'th',
  [0,1] =>  'list',
  [0,2] =>  'subheading bold',
  [0,3,1,2] =>  'list',
  [0,7] =>  'subheading bold',
  [0,10]  => 'subheading bold',
  [0,11]  => 'list',
}
CSS_CLASS =
'composite'
LEGACY_INTERFACE =
false

Instance Method Summary (collapse)

Methods inherited from HtmlGrid::Composite

event_link, #hash_insert_col, #hash_insert_row

Instance Method Details

- (Object) query_limit(model)



100
101
102
103
# File 'src/view/limit.rb', line 100

def query_limit(model)
  @lookandfeel.lookup(:query_limit, 
    @session.class.const_get(:QUERY_LIMIT))
end

- (Object) query_limit_download(model)



104
105
106
107
108
109
# File 'src/view/limit.rb', line 104

def query_limit_download(model)
  link = HtmlGrid::Link.new(:query_limit_download, 
    model, @session, self)
  link.value = link.href = @lookandfeel._event_url(:download_export)
  link
end

- (Object) query_limit_email(model)



110
111
112
113
114
115
# File 'src/view/limit.rb', line 110

def query_limit_email(model)
  link = HtmlGrid::Link.new(:ywesee_contact_email, 
    model, @session, self)
  link.href = @lookandfeel.lookup(:ywesee_contact_href)
  link
end

- (Object) query_limit_explain(model)



116
117
118
119
# File 'src/view/limit.rb', line 116

def query_limit_explain(model)
  @lookandfeel.lookup(:query_limit_explain, @session.remote_ip,
    @session.class.const_get(:QUERY_LIMIT))
end

- (Object) query_limit_more_info(model)



120
121
122
123
124
125
# File 'src/view/limit.rb', line 120

def query_limit_more_info(model)
  link = HtmlGrid::Link.new(:query_limit_more_info, 
    model, @session, self)
  link.href = "http://www.ywesee.com/pmwiki.php?n=Main.WekoBlog"
  link
end