
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 | |
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.
1.5.1-p1