ListBlock Class Reference

Inheritance diagram for ListBlock:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 __construct ($args=NULL)
 render_header ()
 render_thead ()
 render_trow ($obj, $style='')
 render_tfoot ()
 render_tfoot_empty ()
 render_list (&$list=NULL)
 renderListCsv (&$list=NULL)
 renderListHtml (&$list=NULL)
 add_col (ListBlockCol $col)
 add_function (ListFunction $fn)
 getOrderByFromCookie ()
 initOrderQueryOption ($default=NULL)

Public Attributes

 $columns = array()
 $functions = array()
 $query_options = array()
 $row_count = 0
 $show_functions = false
 $show_pages = false
 $show_items = false
 $show_icons = false
 $show_footer = true
 $show_summary = true
 $summary
 $footer_links = array()
 $no_items_html = ''
 $groupings
 $active_grouping_key
 $group_by = 'status'
 $class

Detailed Description

provide front-end for rendering and manimpulating lists

usage:

    $list= new ListBloc('example');                 create instances
    $list->title="Open tasks";                      set title
    $list_tasks->add_col( new ListBlockCol(array(   add columns
        'key'=>'_select_col_',
    )));

    $list_tasks->add_function(new ListFunction(array( add functions
        'target'=>$PH->getPage('taskEdit')->id,
        'name'  =>'Edit',
        'id'    =>'taskEdit',
        'icon'  =>'edit',
        'context_menu'=>'submit',
    )));

    $list_tasks->render();                          # render default output (simple) or...

    ### complex rendering to calculate summary and make custom-style-assigments
    $list->render_header();
    $list->render_thead();

    $count_estimated=0;
    foreach($tasks as $t) {
        $count_estimated+=$t->estimated;
        $list_tasks->render_trow(&$t,$style);
    }
    $list->summary= count($tasks)." tasks with estimated $count_estimated hours of work";
    $list->render_tfoot();

      ListFunction
    most pages

Definition at line 1022 of file render_list.inc.php.


The documentation for this class was generated from the following file:
Generated on Sun Mar 4 17:19:55 2007 for streber by  doxygen 1.5.1-p1