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

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

/*

Action for multiplication of two numbers

*/

require_once('../include/Action/Action.php');

class ActionMult extends Action{


function ActionMult(){
  $this->Action();

}

  function make(){
    $a = $this->message->getField('a');
    if ( empty($a) ){
      $this->result = 'missing parametr [a]';
      return;
    }

    $b = $this->message->getField('b');
    if ( empty($b) ){
      $this->result = 'missing parametr [b]';
      return;
    }

    $c = $a * $b;
    $this->result = "$a * $b = $c";
  }

}

?>
Return current item: Email Robot