| Class | DataGroup |
| In: |
vendor/plugins/services/lib/data_group.rb
|
| Parent: | ActiveRecord::Base |
Finds groupings by their type
# File vendor/plugins/services/lib/data_group.rb, line 8
8: def self.findGroupings(dataType, resultsToReturn = :all)
9: return self::find(resultsToReturn, :conditions => ["groupingtype = ?", dataType])
10: end
Finds groupings by type and their creator.
# File vendor/plugins/services/lib/data_group.rb, line 13
13: def self.findGroupingsByCreator(dataType, creator, resultsToReturn = :all)
14: return self::find(resultsToReturn, :conditions => ["groupingtype = ? AND creator = ?", dataType, creator])
15: end
Finds groupings by type and owner.
# File vendor/plugins/services/lib/data_group.rb, line 18
18: def self.findGroupingsByOwner(dataType, owner, resultsToReturn = :all)
19: return self::find(resultsToReturn, :conditions => ["groupingtype = ? AND owner = ?", dataType, owner])
20: end