<?php
/*
* Copyright @ 2007, Economic Security Planning, Inc., All rights reserved.
*
* $Author: dickmunroe $
* $Date: 2007/12/30 13:37:34 $
*
* Edit History:
*
* Dick Munroe (hide@address.com) 22-Dec-2007
* Initial Version Created.
*/
/**
* @author Dick Munroe (hide@address.com)
* @copyright copyright @ 2004-2007, Dick Munroe, released under the GPL.
* @license http://www.csworks.com/publications/ModifiedNetBSD.html
* @version 1.0.0
* @package PaypalNVP
*/
include_once('class.RequestNVP.php') ;
class TransactionSearchRequestNVP extends RequestNVP
{
function TransactionSearchRequestNVP(
$theStartDate,
$theEndDate = NULL)
{
$xxx = array('STARTDATE' => $theStartDate) ;
if ($theEndDate !== NULL)
{
$xxx['ENDDATE'] = $theEndDate ;
}
$this->RequestNVP(
'TransactionSearch',
$xxx) ;
}
function getENDDATE()
{
$xxx =& $this->getParameters() ;
return $xxx['ENDDATE'] ;
}
function getSTARTDATE()
{
$xxx =& $this->getParameters() ;
return $xxx['STARTDATE'] ;
}
function setENDDATE(
$theDate)
{
$xxx =& $this->getParameters() ;
$xxx['ENDDATE'] = $theDate ;
}
function setResponse(
$theResponse)
{
$xxx = array() ;
foreach(array_keys($theResponse) as $aKey)
{
if (preg_match('/(.*?)(\d+)/', $aKey, $patterns))
{
$xxx[$patterns[2]][$patterns[1]] = $theResponse[$aKey] ;
}
}
parent::setResponse($xxx) ;
}
function setSTARTDATE(
$theDate)
{
$xxx =& $this->getParameters() ;
$xxx['STARTDATE'] = $theDate ;
}
} ;
?>