API docs     >     Extensions     >     CblockListviewExtension

CblockListviewExtension->getListColumns

Description

getListColumns ( )
Prototype function which returns the columns which should be rendered in the Cblock List

Returns

array
Array of Columns
  1. Array(
  2.     [COLUMNS] => Array(                     array Array of n columns (all defined by Extension)
  3.         [0] => Array(
  4.             [TITLE] => 'Name'               string Column title
  5.             [RESIZEABLE] => 1               int 1 if column is resizable, 0 if not
  6.             [WIDTH] => 300                  int Column width in pixels
  7.             [MINWIDTH] => 300               int Minimum column width in pixels
  8.             [SORT] => 1                     int 1 if default sort column, 0 if not
  9.             [SORTFUNC] => 'sort_NAME'       string Name of callback function for column sorting
  10.         )
  11.         [1] => Array(
  12.             [TITLE] => 'User'               string Column title
  13.             [RESIZEABLE] => 1               int 1 if column is resizable, 0 if not
  14.             [WIDTH] => 125                  int Column width in pixels
  15.             [MINWIDTH] => 125               int Minimum column width in pixels
  16.             [SORTFUNC] => 'sort_USER'       string Name of callback function for column sorting
  17.         )
  18.         [2] => Array(
  19.             [TITLE] => 'Date'               string Column title
  20.             [RESIZEABLE] => 0               int 1 if column is resizable, 0 if not
  21.             [WIDTH] => 125                  int Column width in pixels
  22.             [MINWIDTH] => 125               int Minimum column width in pixels
  23.             [SORTFUNC] => 'sort_DATE'       string Name of callback function for column sorting
  24.         )
  25.         ...
  26.     )
  27.     [ORDERBY] => 'NAME'                     string Name of default sort column
  28. )