xo::db::CrClass instproc get_instances_from_db (public)

 <instance of xo::db::CrClass[i]> get_instances_from_db \
    [ -select_attributes select_attributes ] \
    [ -from_clause from_clause ] [ -where_clause where_clause ] \
    [ -orderby orderby ] [ -with_subtypes on|off ] \
    [ -folder_id folder_id ] [ -page_size page_size ] \
    [ -page_number page_number ] [ -base_table base_table ] \
    [ -initialize initialize ]

Defined in /var/www/openacs.org/packages/xotcl-core/tcl/cr-procs.tcl

Returns a set (ordered composite) of the answer tuples of an 'instance_select_query' with the same attributes. The tuples are instances of the class, on which the method was called.

Switches:
-select_attributes (optional)
-from_clause (optional)
-where_clause (optional)
-orderby (optional)
-with_subtypes (optional, boolean, defaults to "true")
-folder_id (optional)
-page_size (optional, defaults to "20")
-page_number (optional)
-base_table (optional, defaults to "cr_revisions")
-initialize (optional, defaults to "true")

Testcases:
xotcl_core_tutorial_4, create_form_with_form_instance
[ show source ]
Show another procedure: