Sha256: 561f93187e563bdcff15f9e86291059886a1a17c2b2641337d8b0f5f3425cd55

Contents?: true

Size: 687 Bytes

Versions: 7

Compression:

Stored size: 687 Bytes

Contents

class Courses < Entities
  attr_accessor :static

  def setup_data
    value_block :first_name
    value_str :first_name
    value_date :start
    value_date :end
    
    value_block :address
    value_str :street
    value_str :plz
    value_str :tel
    
    value_block :names
    value_entity_Persons_all :teacher, :drop, :first_name, proc { |p| p.credit and p.credit > 1000 }
    value_entity_Persons_empty_all :assistant, :drop, :first_name
    value_list_entity_persons :students, :login_name

    ConfigBases.add_observer(self)
  end

  def update(action, value, old)
    if action == :function_add
      Courses.search_all_.each{|c| c.tel = c.tel.to_s + '1'}
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
qooxview-1.9.1312 test/entities/course.rb
qooxview-1.9.13.pre.12 test/entities/course.rb
qooxview-1.9.13.pre.11 test/entities/course.rb
qooxview-1.9.13.pre.10 test/entities/course.rb
qooxview-1.9.11 test/entities/course.rb
qooxview-1.9.10 test/entities/course.rb
qooxview-1.9.9 test/entities/course.rb