Function __global->_finish_comcode_table_row

Definitions

sources/comcode_compiler_tabular.php

  • Finish off a table cell (if currently open), a table row (if currently open and non-empty) and start a new row.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: N/A

Parameters

Name Type Default Set Range Description
$tabular_rows array required parameter N/A N/A Tabular rows (passed by reference)
$cells array required parameter N/A N/A Cells of current row (passed by reference)
$current_cell ?string required parameter N/A N/A Current cell contents (passed by reference) (null: no current cell)
$current_cell_header ?boolean required parameter N/A N/A Whether the current cell is a header cell (passed by reference) (null: no current cell)
$tabular_column_sizes array required parameter N/A N/A Sizes for the columns of each row (does not need to be all of them)
$source_member MEMBER required parameter N/A N/A The member the evaluation is running as. This is a security issue, and you should only run as an administrator if you have considered where the Comcode came from carefully
$as_admin boolean required parameter N/A N/A Whether to explicitly execute this with admin rights. There are a few rare situations where this should be done, for data you know didn't come from a member, but is being evaluated by one.
$pass_id ?string required parameter N/A N/A A special identifier that can identify this resource in a sea of our resources of this class; usually this can be ignored, but may be used to provide a binding between JavaScript in evaluated Comcode, and the surrounding environment (null: no explicit binding)
$db ?object required parameter N/A N/A The database connector to use (null: none; only do this for very simple Comcode)
$_flags integer 0 N/A N/A A bitmask of COMCODE_* flags
$highlight_bits array [] N/A N/A A list of words to highlight
$on_behalf_of_member ?MEMBER Null N/A N/A The member we are running on behalf of, with respect to how attachments are handled; we may use this members attachments that are already within this post, and our new attachments will be handed to this member (null: member evaluating)