class Object

Constants

ESCAPED_CHARS
ESCAPE_REGEX_WITH_HTML_ENTITIES

Public Instance Methods

hc() click to toggle source
# File lib/hengine/hconfiguration.rb, line 35
def hc()

    return HConfiguration.instance()

end
hdb(connectionName = "default") click to toggle source
# File lib/hdb/hdb.rb, line 352
def hdb(connectionName = "default")

  return HDB.HDB(connectionName)

end
hl() click to toggle source
# File lib/hengine/hlogger.rb, line 115
def hl 

  return hlogger

end
hlogger() click to toggle source
# File lib/hengine/hlogger.rb, line 109
def hlogger

  return hsd.value("hlogger")

end
hm() click to toggle source
# File lib/hengine/hmalloc.rb, line 261
def hm()

    return HMalloc.instance()

end
hpgsql() click to toggle source
# File lib/hsqlmanager/hpgsqldatabasemanager.rb, line 69
def hpgsql()

  return HPgSqlDatabaseManager.defaultPgSqlDatabaseManager()

end
hsd() click to toggle source
# File lib/hengine/hshareddata.rb, line 56
def hsd()

    return HSharedData.instance()

end
hsession() click to toggle source
# File lib/hengine/hsessiondata.rb, line 75
def hsession()

    return HSessionData.instance()

end
ht(word) click to toggle source
# File lib/hengine/htranslate.rb, line 35
def ht(word)

  return  HTranslate.instance().tr(word)

end
htag(name, properties) click to toggle source
# File lib/hwidgets/hwidget.rb, line 411
def htag(name, properties)

  return HWidget.new(name).set(properties).html()

end
htag2(name, properties) click to toggle source
# File lib/hwidgets/hwidget.rb, line 417
def htag2(name, properties)

  return HWidget.new(name).set(properties).setClosedTag(false).html()

end
html() click to toggle source
Calls superclass method
# File lib/hwidgets/hselecttag.rb, line 15
def html()
  
  self.reset()

  for i in (0..@items.count - 1) do
    item = @items[i]
    value = @values[i]
    option = HWidget.new("option").setInnerHTML(item.to_s).set(value: value)
    # value || item: se value e' diverso da nil usa value altrimenti item
    option.set(selected: nil) if ((value || item) == @selectedItem.to_s)
    self << option
  end

  return super()

end
hv() click to toggle source
# File lib/hengine/hviewloader.rb, line 94
def hv()

  return HViewLoader.instance()

end
puta(array, margin: 0) click to toggle source
# File lib/hmisc/hio.rb, line 6
def puta(array, margin: 0) 
  array.each do |value|
    puts " " * margin + "#{value}".green if value.class != Hash and value.class != Array
    puth(value, margin: margin + 3) if value.class == Hash
  end
end
puth(hash, margin: 0) click to toggle source
# File lib/hmisc/hio.rb, line 13
def puth(hash, margin: 0) 
  hash.each do |key, value|
    puts " " * margin + "#{key}:".hight_cyan 
    puts " " * (margin + 3) + "#{value}".hight_cyan if value.class != Hash and value.class != Array
    puta(value, margin: margin + 3) if value.class == Array
  end
end
setSelected(value) click to toggle source
# File lib/hwidgets/htextareatag.rb, line 16
def setSelected(value)
  set(value: value) 
end