Function __global->_close_open_lists

Definitions

sources/comcode_compiler.php

  • Get HTML to close any open lists.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$list_indent integer No No required parameter N/A N/A The depth level of lists that we need to close
$list_type string No No required parameter ul a 1 N/A List-type code

Returns

  • The output needed to close the lists, and the new list indentation (always zero). Done like this so we can use 'list' to set both at once in the main parser.
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Get HTML to close any open lists.
 *
 * @param  integer $list_indent The depth level of lists that we need to close
 * @param  string $list_type List-type code
 * @set ul a 1
 * @return array The output needed to close the lists, and the new list indentation (always zero). Done like this so we can use 'list' to set both at once in the main parser.
 */

function _close_open_lists(int $list_indent, string $list_type) : array