public static function printOutput($title, $objectName, $objectId = null, $request = null, $response = null, $errorMessage = null)
    {
        if (PHP_SAPI == 'cli') {
            self::$printResultCounter++;
            printf("\n+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n");
            printf("(%d) %s", self::$printResultCounter, strtoupper($title));
            printf("\n-------------------------------------------------------------\n\n");
            if ($objectId) {
                printf("Object with ID: %s \n", $objectId);
            }
            printf("-------------------------------------------------------------\n");
            printf("\tREQUEST:\n");
            self::printConsoleObject($request);
            printf("\n\n\tRESPONSE:\n");
            self::printConsoleObject($response, $errorMessage);
            printf("\n-------------------------------------------------------------\n\n");
        } else {
            if (self::$printResultCounter == 0) {
                include "header.html";
                echo '
                  <div class="row header"><div class="col-md-5 pull-left"><br /><a href="../../index.php"><h1 class="home">&#10094;&#10094; Back to Samples</h1></a><br /></div> <br />
                  <div class="col-md-4 pull-right"><img src="https://static.payu.co.za/sites/all/themes/regionwithwalletNew/public/images/global/payu@2x.png" class="logo" width="300"/></div> </div>';
                echo '<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">';
            }
            self::$printResultCounter++;
            echo '
            <div class="panel panel-default">
                <div class="panel-heading ' . ($errorMessage ? 'error' : '') . '" role="tab" id="heading-' . self::$printResultCounter . '">
                    <h4 class="panel-title">
                        <a data-toggle="collapse" data-parent="#accordion" href="#step-' . self::$printResultCounter . '" aria-expanded="false" aria-controls="step-' . self::$printResultCounter . '">
                    ' . self::$printResultCounter . '. ' . $title . ($errorMessage ? ' (Failed)' : '') . '</a>
                    </h4>
                </div>
            <div id="step-' . self::$printResultCounter . '" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading-' . self::$printResultCounter . '">
                <div class="panel-body">
            ';

            if ($objectId) {
                echo "<div>" . ($objectName ? $objectName : "Object") . " with ID: $objectId </div>";
            }

            echo '<div class="row hidden-xs hidden-sm hidden-md"><div class="col-xs-12 col-sm-6 col-md-6"><h4>Request Object</h4>';
            self::printObject($request);
            echo '</div><div class="col-xs-12 col-sm-6 col-md-6"><h4 class="' . ($errorMessage ? 'error' : '') . '">Response Object</h4>';
            self::printObject($response, $errorMessage);
            echo '</div></div>';

            echo '<div class="hidden-lg"><ul class="nav nav-tabs" role="tablist">
                        <li role="presentation" ><a href="#step-' . self::$printResultCounter . '-request" role="tab" data-toggle="tab">Request</a></li>
                        <li role="presentation" class="active"><a href="#step-' . self::$printResultCounter . '-response" role="tab" data-toggle="tab">Response</a></li>
                    </ul>
                    <div class="tab-content">
                        <div role="tabpanel" class="tab-pane" id="step-' . self::$printResultCounter . '-request"><h4>Request Object</h4>';
            self::printObject($request);
            echo '</div><div role="tabpanel" class="tab-pane active" id="step-' . self::$printResultCounter . '-response"><h4>Response Object</h4>';
            self::printObject($response, $errorMessage);
            echo '</div></div></div></div>
            </div>
        </div>';
        }
        flush();
    }
public static function printOutput($title, $objectName, $objectId = null, $request = null, $response = null, $errorMessage = null)
    {
        if (PHP_SAPI == 'cli') {
            self::$printResultCounter++;
            printf("\n+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n");
            printf("(%d) %s", self::$printResultCounter, strtoupper($title));
            printf("\n-------------------------------------------------------------\n\n");
            if ($objectId) {
                printf("Object with ID: %s \n", $objectId);
            }
            printf("-------------------------------------------------------------\n");
            printf("\tREQUEST:\n");
            self::printConsoleObject($request);
            printf("\n\n\tRESPONSE:\n");
            self::printConsoleObject($response, $errorMessage);
            printf("\n-------------------------------------------------------------\n\n");
        } else {
            if (self::$printResultCounter == 0) {
                include "header.html";
                echo '
                  <div class="row header"><div class="col-md-5 pull-left"><br /><a href="../../index.php"><h1 class="home">&#10094;&#10094; Back to Samples</h1></a><br /></div> <br />
                  <div class="col-md-4 pull-right"><img src="https://static.payu.co.za/sites/all/themes/regionwithwalletNew/public/images/global/payu@2x.png" class="logo" width="300"/></div> </div>';
                echo '<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">';
            }
            self::$printResultCounter++;
            echo '
            <div class="panel panel-default">
                <div class="panel-heading ' . ($errorMessage ? 'error' : '') . '" role="tab" id="heading-' . self::$printResultCounter . '">
                    <h4 class="panel-title">
                        <a data-toggle="collapse" data-parent="#accordion" href="#step-' . self::$printResultCounter . '" aria-expanded="false" aria-controls="step-' . self::$printResultCounter . '">
                    ' . self::$printResultCounter . '. ' . $title . ($errorMessage ? ' (Failed)' : '') . '</a>
                    </h4>
                </div>
            <div id="step-' . self::$printResultCounter . '" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading-' . self::$printResultCounter . '">
                <div class="panel-body">
            ';

            if ($objectId) {
                echo "<div>" . ($objectName ? $objectName : "Object") . " with ID: $objectId </div>";
            }

            echo '<div class="row hidden-xs hidden-sm hidden-md"><div class="col-xs-12 col-sm-6 col-md-6"><h4>Request Object</h4>';
            self::printObject($request);
            echo '</div><div class="col-xs-12 col-sm-6 col-md-6"><h4 class="' . ($errorMessage ? 'error' : '') . '">Response Object</h4>';
            self::printObject($response, $errorMessage);
            echo '</div></div>';

            echo '<div class="hidden-lg"><ul class="nav nav-tabs" role="tablist">
                        <li role="presentation" ><a href="#step-' . self::$printResultCounter . '-request" role="tab" data-toggle="tab">Request</a></li>
                        <li role="presentation" class="active"><a href="#step-' . self::$printResultCounter . '-response" role="tab" data-toggle="tab">Response</a></li>
                    </ul>
                    <div class="tab-content">
                        <div role="tabpanel" class="tab-pane" id="step-' . self::$printResultCounter . '-request"><h4>Request Object</h4>';
            self::printObject($request);
            echo '</div><div role="tabpanel" class="tab-pane active" id="step-' . self::$printResultCounter . '-response"><h4>Response Object</h4>';
            self::printObject($response, $errorMessage);
            echo '</div></div></div></div>
            </div>
        </div>';
        }
        flush();
    }
public static function printOutput ( $ title , $ objectName , $ objectId = null , $ request = null , $ response = null , $ errorMessage = null ) { if ( PHP_SAPI == 'cli' ) { self :: $ printResultCounter ++ ; printf ( "\n+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\n" ) ; printf ( "(%d) %s" , self :: $ printResultCounter , strtoupper ( $ title ) ) ; printf ( "\n-------------------------------------------------------------\n\n" ) ; if ( $ objectId ) { printf ( "Object with ID: %s \n" , $ objectId ) ; } printf ( "-------------------------------------------------------------\n" ) ; printf ( "\tREQUEST:\n" ) ; self :: printConsoleObject ( $ request ) ; printf ( "\n\n\tRESPONSE:\n" ) ; self :: printConsoleObject ( $ response , $ errorMessage ) ; printf ( "\n-------------------------------------------------------------\n\n" ) ; } else { if ( self :: $ printResultCounter == 0 ) { include "header.html" ; echo '
                  <div class="row header"><div class="col-md-5 pull-left"><br /><a href="../../index.php"><h1 class="home">&#10094;&#10094; Back to Samples</h1></a><br /></div> <br />
                  <div class="col-md-4 pull-right"><img src="https://static.payu.co.za/sites/all/themes/regionwithwalletNew/public/images/global/payu@2x.png" class="logo" width="300"/></div> </div>' ; echo '<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">' ; } self :: $ printResultCounter ++ ; echo '
            <div class="panel panel-default">
                <div class="panel-heading ' . ( $ errorMessage ? 'error' : '' ) . '" role="tab" id="heading-' . self :: $ printResultCounter . '">
                    <h4 class="panel-title">
                        <a data-toggle="collapse" data-parent="#accordion" href="#step-' . self :: $ printResultCounter . '" aria-expanded="false" aria-controls="step-' . self :: $ printResultCounter . '">
                    ' . self :: $ printResultCounter . '. ' . $ title . ( $ errorMessage ? ' (Failed)' : '' ) . '</a>
                    </h4>
                </div>
            <div id="step-' . self :: $ printResultCounter . '" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading-' . self :: $ printResultCounter . '">
                <div class="panel-body">
            ' ; if ( $ objectId ) { echo "<div>" . ( $ objectName ? $ objectName : "Object" ) . " with ID: $objectId </div>" ; } echo '<div class="row hidden-xs hidden-sm hidden-md"><div class="col-xs-12 col-sm-6 col-md-6"><h4>Request Object</h4>' ; self :: printObject ( $ request ) ; echo '</div><div class="col-xs-12 col-sm-6 col-md-6"><h4 class="' . ( $ errorMessage ? 'error' : '' ) . '">Response Object</h4>' ; self :: printObject ( $ response , $ errorMessage ) ; echo '</div></div>' ; echo '<div class="hidden-lg"><ul class="nav nav-tabs" role="tablist">
                        <li role="presentation" ><a href="#step-' . self :: $ printResultCounter . '-request" role="tab" data-toggle="tab">Request</a></li>
                        <li role="presentation" class="active"><a href="#step-' . self :: $ printResultCounter . '-response" role="tab" data-toggle="tab">Response</a></li>
                    </ul>
                    <div class="tab-content">
                        <div role="tabpanel" class="tab-pane" id="step-' . self :: $ printResultCounter . '-request"><h4>Request Object</h4>' ; self :: printObject ( $ request ) ; echo '</div><div role="tabpanel" class="tab-pane active" id="step-' . self :: $ printResultCounter . '-response"><h4>Response Object</h4>' ; self :: printObject ( $ response , $ errorMessage ) ; echo '</div></div></div></div>
            </div>
        </div>' ; } flush ( ) ; }
Prints HTML Output to web page.

@param string $title
@param string $objectName
@param string $objectId
@param mixed $request
@param mixed $response
@param string $errorMessage
Prints HTML Output to web page .