Files

Class Index [+]

Quicksearch

UbiquoDesign::Connectors::Standard::UbiquoPagesController::InstanceMethods

Public Instance Methods

uhook_create_page() click to toggle source

create a new instance of page.

     # File vendor/plugins/ubiquo_design/lib/ubiquo_design/connectors/standard.rb, line 197
197:           def uhook_create_page
198:             p = ::Page.new(params[:page])
199:             p.save
200:             p
201:           end
uhook_destroy_page(page) click to toggle source

destroys a page isntance. returns a boolean that means if the destroy was done.

     # File vendor/plugins/ubiquo_design/lib/ubiquo_design/connectors/standard.rb, line 209
209:           def uhook_destroy_page(page)
210:             page.destroy
211:           end
uhook_find_private_pages(filters, order_by, sort_order) click to toggle source

Returns all private pages

     # File vendor/plugins/ubiquo_design/lib/ubiquo_design/connectors/standard.rb, line 187
187:           def uhook_find_private_pages(filters, order_by, sort_order)
188:             ::Page.drafts.filtered_search(filters, :order => order_by + " " + sort_order)
189:           end
uhook_new_page() click to toggle source

initializes a new instance of page.

     # File vendor/plugins/ubiquo_design/lib/ubiquo_design/connectors/standard.rb, line 192
192:           def uhook_new_page
193:             ::Page.new
194:           end
uhook_update_page(page) click to toggle source

updates a page instance. returns a boolean that means if update was done.

     # File vendor/plugins/ubiquo_design/lib/ubiquo_design/connectors/standard.rb, line 204
204:           def uhook_update_page(page)
205:             page.update_attributes(params[:page])
206:           end

Disabled; run with $DEBUG to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.