Sha256: 563475cacd5014b982f1f62e7cfcf67798ad12c3bdb57ac076032d1214bc1f3b
Contents?: true
Size: 1.29 KB
Versions: 3
Compression:
Stored size: 1.29 KB
Contents
package <%= base_package %>.controllers.manager { import <%= base_package %>.controllers.manager.ResourcesManager; import <%= base_package %>.controllers.event.ResourceEvent; import <%= base_package %>.models.constant.ResourceResult; import <%= base_package %>.models.domain.<%= class_name %>; import org.restfulx.Rx; import org.restfulx.collections.ModelsCollection; public class <%= class_name %>Manager extends ResourcesManager { private var _current<%= class_name %>:<%= class_name %>; [Bindable] public function get current<%= class_name %>():<%= class_name %> { return _current<%= class_name %>; } public function set current<%= class_name %>(value:<%= class_name %>):void { _current<%= class_name %> = value; } private var _<%= class_name.pluralize.dcfirst %>:ModelsCollection; public function get <%= class_name.pluralize.dcfirst %>():ModelsCollection { return _<%= class_name.pluralize.dcfirst %>; } public function set <%= class_name.pluralize.dcfirst %>(value:ModelsCollection):void { _<%= class_name.pluralize.dcfirst %> = value; } public function <%= class_name %>Manager() { <%= class_name.pluralize.dcfirst %> = Rx.models.index(<%= class_name %>); setModel(current<%= class_name %>); resourceResultName = ResourceResult.<%= class_name.upcase %>; } } }
Version data entries
3 entries across 3 versions & 1 rubygems