Function __global->cns_validate_default_poll_options_xml

Definitions

sources/cns_polls_action3.php

  • Validate whether or not the XML markup passed in for default poll options is valid.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$xml LONG_TEXT No No Blank (empty string) N/A N/A The XML to validate

Returns

  • Error message if invalid (null: XML is valid)
  • Type: ?Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Validate whether or not the XML markup passed in for default poll options is valid.
 *
 * @param  LONG_TEXT $xml The XML to validate
 * @return ?Tempcode Error message if invalid (null: XML is valid)
 */

function cns_validate_default_poll_options_xml(string $xml = '') : ?object