Source for file Message.class.php

Documentation is available at Message.class.php

  1. <?php
  2. /**
  3.  * Gumbo Library Framework
  4.  *
  5.  * LICENSE
  6.  * This library is being released under the terms of the New BSD License.  A
  7.  * copy of the license is packaged with the software (LICENSE.txt).  If no
  8.  * copy is found, a copy of the license template can be found at:
  9.  * http://www.opensource.org/licenses/bsd-license.php
  10.  * 
  11.  * @category Gumbo
  12.  * @package Debug
  13.  * @copyright Copyright (c) 2007, iBayou, Michael Luster
  14.  * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
  15.  * @author Michael Luster <mluster79@yahoo.com>
  16.  * @link http://sourceforge.net/projects/phpgumbo
  17.  * @version 0.0.1
  18.  */
  19.  
  20. /**
  21.  * Debug Message Interface
  22.  *
  23.  * @category Gumbo
  24.  * @package Debug
  25.  * @copyright Copyright (c) 2007, iBayou, Michael Luster
  26.  * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
  27.  * @author Michael Luster <mluster79@yahoo.com>
  28.  * @link http://sourceforge.net/projects/phpgumbo
  29.  * @desc Debug Message Interface
  30.  * @version 0.0.1
  31.  */
  32.  
  33.     
  34.     /** MUTATOR METHODS **/
  35.     /**
  36.      * Sets the message contents of the message
  37.      * @param string $mess 
  38.      */
  39.     public function setMessage ($mess);
  40.     
  41.     /**
  42.      * Sets the file where the message occured
  43.      * @precondition file_exists ($file)
  44.      * @param string $file 
  45.      */
  46.     public function setFile ($file);
  47.     
  48.     /**
  49.      * Sets the line number of the message
  50.      * @param int $line 
  51.      */
  52.     public function setLine ($line);
  53.     
  54.     /**
  55.      * Sets the function/method name
  56.      * @precondition function_exists ($func)
  57.      * @param string $func 
  58.      */
  59.     public function setFunction ($func);
  60.     
  61.     /**
  62.      * Sets the class name
  63.      * @precondtion class_exists ($cls)
  64.      * @param string $cls 
  65.      */
  66.     public function setClass ($cls);
  67.     
  68.     /**
  69.      * Sets the time (in seconds) to get to debug message from last message
  70.      * @param num $time 
  71.      */
  72.     public function setSeconds ($time=null);
  73.     
  74.     
  75.     
  76.     /** ACCESSOR METHODS **/
  77.     /**
  78.      * Returns the time when message occured
  79.      * @return num 
  80.      */
  81.     public function getTime ();
  82.     
  83.     /**
  84.      * Returns the message
  85.      * @return string 
  86.      */
  87.     public function getMessage ();
  88.     
  89.     /**
  90.      * Returns the file
  91.      * @return string 
  92.      */
  93.     public function getFile ();
  94.     
  95.     /**
  96.      * Returns the line number
  97.      * @return int 
  98.      */
  99.     public function getLine ();
  100.     
  101.     /**
  102.      * Returns the function/method
  103.      * @return string 
  104.      */
  105.     public function getFunction ();
  106.     
  107.     /**
  108.      * Returns the class name
  109.      * @return string 
  110.      */
  111.     public function getClass ();
  112.     
  113.     /**
  114.      * Returns the time (in seconds) it took to execute the code from last message
  115.      * @param num $time last message time value
  116.      * @return num 
  117.      */
  118.     public function getSeconds ($time=null);
  119.     
  120. }
  121.  
  122. ?>