*/ if (0 > version_compare(PHP_VERSION, '5')) { die('This file was generated for PHP 5'); } /** * include OrderDAO * * @author firstname and lastname of author, */ require_once('class.OrderDAO.php'); /* user defined includes */ // section .:00000000000008E7-includes begin // section .:00000000000008E7-includes end /* user defined constants */ // section .:00000000000008E7-constants begin // section .:00000000000008E7-constants end /** * Short description of class CartService * * @access public * @author firstname and lastname of author, */ class CartService { // --- ATTRIBUTES --- /** * Short description of attribute m_dao * * @access private * @var CartDAO */ private $m_dao = null; /** * Short description of attribute m_cartService * * @access public * @var CartService */ public static $m_cartService = null; // --- OPERATIONS --- /** * Short description of method __construct * * @access public * @author firstname and lastname of author, * @return void */ public function __construct() { // section .:00000000000008D0 begin // section .:00000000000008D0 end } /** * Short description of method getInstance * * @access public * @author firstname and lastname of author, * @return object */ public function getInstance() { $returnValue = null; // section .:00000000000008D2 begin if(!isset(self::$m_cartService)) self::$m_cartService = new CartService(); $returnValue = self::$m_cartService; // section .:00000000000008D2 end return $returnValue; } /** * Short description of method addToCart * * @access public * @author firstname and lastname of author, * @param int * @param int * @param string * @return object */ public function addToCart($product_id, $quantity, $session) { $returnValue = null; // section .:00000000000008D7 begin // section .:00000000000008D7 end return $returnValue; } /** * Short description of method removeFromCart * * @access public * @author firstname and lastname of author, * @param int * @param string * @return object */ public function removeFromCart($product_id, $session) { $returnValue = null; // section .:00000000000008DE begin // section .:00000000000008DE end return $returnValue; } /** * Short description of method editCart * * @access public * @author firstname and lastname of author, * @param int * @param int * @param string * @return object */ public function editCart($product_id, $quantity, $session) { $returnValue = null; // section .:00000000000008E3 begin // section .:00000000000008E3 end return $returnValue; } /** * Short description of method executeOrder * * @access public * @author firstname and lastname of author, * @param int * @return object */ public function executeOrder($order_id) { $returnValue = null; // section .:00000000000008E6 begin // section .:00000000000008E6 end return $returnValue; } /** * Short description of method showCart * * @access public * @author firstname and lastname of author, * @param string * @return object */ public function showCart($session_id) { $returnValue = null; // section .:0000000000000B65 begin $returnValue = $this->m_dao->showCart($session_id); // section .:0000000000000B65 end return $returnValue; } } /* end of class CartService */ ?>