PHP Classes

File: bowMessages.inc.php

Recommend this page to a friend!
  Classes of Jonas Eriksson   BowML   bowMessages.inc.php   Download  
File: bowMessages.inc.php
Role: Auxiliary script
Content type: text/plain
Description: Warning messages for the developer. Very useful for testing
Class: BowML
Parse and create HTML or other markup documents
Author: By
Last change:
Date: 19 years ago
Size: 721 bytes
 

Contents

Class file image Download
<?php

   
function bowPrintObject($pObject)
    {
        print(
"<br><strong>Object to show: </strong><p>
        <pre>"
);print_r($pObject);print("</pre>");
    }
   
    function
programmingError($pMessage, $pObject = null, $pExtra = null)
    {
        print(
"<br><strong>ProgrammingError: </strong><p>
        <pre>
$pMessage.
        <strong>Object:</strong>
        "
);print_r($pObject);
        print(
"<strong>Extra: </strong>
        "
);print_r($pExtra);print("</pre>");
        die();
    }

    function
bowWarning($pMessage, $pObject = null, $pExtra = null)
    {
        print(
"<br><strong>Warning: </strong><p>
        <pre>
$pMessage.
        <strong>Object:</strong>
        "
);print_r($pObject);
        print(
"<strong>Extra: </strong>
        "
);print_r($pExtra);print("</pre>");
    }
   
?>