Location: PHPKode > scripts > Paypal NVP > paypal-nvp/class.TransactionSearchResponseNVP.php
<?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.ResponseNVP.php') ;

class TransactionSearchResponseNVP extends ResponseNVP
{
    function TransactionSearchResponseNVP()
    {
        $this->ResponseNVP() ;
    }

    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) ;
    }
} ;
?>
Return current item: Paypal NVP