Login   Register  
PHP Classes
elePHPant
Icontem

File: bowMessages.inc.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 2004-07-29 10:03
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>");
    }
    
?>