Handler.php

Table of contents

 

<?php
/**
 * @package PayPal
 */

/**
 * Include SDK base class.
 */
require_once 'PayPal.php';

/**
 * The base class for all Profile handlers
 *
 * @package PayPal
 * @abstract
 */
class ProfileHandler
{
    /**
     * @access private
     */
    var $_params;

    function ProfileHandler($parameters)
    {
        $this->_params = $parameters;
    }

    function listProfiles()
    {
        return PayPal::raiseError("Cannot call this method from the base ProfileHandler class");
    }

    function loadProfile($id)
    {
        return PayPal::raiseError("Cannot call this method from the base ProfileHandler class");
    }

    function saveProfile($data)
    {
        return PayPal::raiseError("Cannot call this method from the base ProfileHandler class");
    }

    function getParamInfo()
    {
        return null;
    }

    function deleteProfile($id)
    {
        return PayPal::raiseError("Cannot call this method from the base ProfileHandler class");
    }

    function generateID()
    {
        return md5(uniqid(mt_rand(), true));
    }

    function validateParams()
    {
        return true;
    }

    function &getInstance($params)
    {
        return PayPal::raiseError("Cannot call this method from the base ProfileHandler class");
    }

    function initialize()
    {
        return true;
    }

}

Tag page

Files 1

FileSizeDateAttached by 
 Handler.php
No description
1409 bytes21:13, 13 Jun 2008David PeredniaActions
You must login to post a comment.