sdleiF | |
string fieldsep | field separatorThe character used for separating columns |
string fillchar | fill characterThe characted used for padding the columns contents |
string header RO | headerContains the field names with the same formatting applied (i.e. with fill and separators) |
snoitcnuF | |
function addColumn(int field_index, int column_width)doesn't return a value | addColumnLow level call, adds a single column. "prepare" is better. |
function clear()doesn't return a value | clearRemove all existing column definitions. |
function format(object)returns string | formatReturns the formatted string taking data from the supplied object. |
function prepare(object, string column_descriptions)doesn't return a value | prepareAdds a number of columns, described as FIELD_NAME/WIDTH, columns are separated by "," (comma). Existing column definitions are not removed. Usually you will need to call "clear()" before "prepare". |