/**
  * Overwrite the abstract function from Superclass.
  * If we are on a system which can send e-mails, send 
  * a e-mail to the user's address. 
  */
 public function handleRequestInMain()
 {
     $cart = new CartModel();
     if ($cart->size() <= 0) {
         $this->redirect("cart.php");
     }
     if ($this->sendMail()) {
         $this->getView()->setMsgClass(CSS::MSG_SUCCESS);
         $this->getView()->setMsgKey("success");
         CartController::clean();
     } else {
         $this->getView()->setMsgClass(CSS::MSG_ERROR);
         $this->getView()->setMsgKey("failure");
     }
 }
 /**
  * @return number number of items in cart
  */
 public static function size()
 {
     $cm = new CartModel();
     return $cm->size();
 }