Description

This function prints a function's results within div tags.

Examples 


$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$ui_display = $cpanel->api1('UI','showresult', array('resultkey') ); // Call the function.

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $ui_display = $cpliveapi->api1('UI','showresult', ['resultkey'] ); # Call the function.

 

<cpanel Module="UI::showresult( $FORM('resultkey'))">
cpapi1 --user=username UI showresult $Cpanel::Form

<div>The contents of the result form data parameter</div>

   

Parameters

ParameterTypeDescriptionPossible valuesExample

resultkey

string

Required

The name of the function for which to display results.

 

A valid $Cpanel::Form value.

  • This value must match the $Cpanel::FORM value for the same name.
  • You must call the function with the same form variable name.
$Cpanel::Form

Form Data

ParameterTypeDescriptionPossible valuesExample
errorBooleanWhether to display div class errors or the function's results.
  • 1 — Display div class errors.
  • 0 — Display result of the function.
0
resultstringThe parameter to display in the output.A string value.The contents of the result form data parameter.
resultkeystring

The name of the function for which to display results.

A valid $Cpanel::Form value.$Cpanel::Form


Returns

This function returns the result form parameter, in div tags.