Location: PHPKode > scripts > Email Robot > emailrobot/include/Message/Message.php
<?php

//==================================================
// project: EMailRobot
// version: 0.2
// author: ilya nemihin (hide@address.com)
// date: 27-aug-2002
// url: www.nemilya.narod.ru/erobot/
//==================================================

/*

abstract class from parsing email body
parse() - abstract method

*/

class Message{

var $data;
var $fields;

function Message(){
  $this->data = '';
  $this->fields = array();
}

  function setData( $data ){
    $this->data = trim( $data );
  }

  function parse(){
  // abstract
  }

  function setField( $name, $val ){
    $this->fields[ $name ] = trim( $val );
  }

  function getField( $name ){
    return $this->fields[ $name ];
  }

}

?>
Return current item: Email Robot